Skip to content

Instantly share code, notes, and snippets.

@maxnuf
maxnuf / gist:5669273
Created May 29, 2013 10:05
calculate dipolemoment of silver nanosphere in meep
;******************* OPTIONS
;(set! eps-averaging? false)
;(set! force-complex-fields? false)
;(set! output-single-precision? true)
;******************* PARAMETERS
(define-param res 32)
(define-param scale 100)
(define-param r 25) ; radius of sphere