Dear Dr. Johnson and meep users,
I am very new to meep. I'm trying to simulate a 3d structure (a rectangular
block) but the following error appears:
ERROR: In procedure vector-ref:
ERROR: Wrong type argument in position 1: #f
Charalampos Mavidis
The ctl file:
(define-param polym_th 4) ; thickness of block (100*1nm)
(define-param eps_r6g 2.56) ;
(define-param s 6) ; size
; OTHER PARAMETERS
(define-param dpml 1) ; PML thickness
; #############################################################
; GEOMETRY
(set! geometry-lattice (make lattice (size s s 18)))
(set! geometry
(make block (center 0 0 0) (size s s polym_th)
(material (make dielectric (epsilon eps_r6g)))))
; ##############################################################
; PML layers
(set! pml-layers (list (make pml (thickness dpml))))
; SIMULATION RESOLUTION
(set-param! resolution 20)
; SOURCE
(define-param fcen 0.25) ; pulse center frequency
(define-param df 0.1) ; pulse width (in frequency)
(define-param nfreq 500) ; number of frequencies at which to compute flux
(set! sources (list
(make source
(src (make gaussian-src (frequency fcen) (fwidth df)))
(component Ey) (center 0 0 8) (size 6 6 0) )))
(run-sources+ 400
(at-beginning output-epsilon)
)
(define trans ; transmitted flux
(add-flux fcen df nfreq
(make flux-region
(center 0 0 -7) (size 6 6 0) )))
; display the flux
(display-fluxes trans)
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss