Hi everyone
It’s me again :)
I have some questions about meep simulation
My ctl file is below.
(reset-meep)
(define sio (make dielectric (index 1.5))) ; silicon oxide refractive index
(set! geometry-lattice (make lattice (size 20 16 no-size) ; computational
cell
(set! geometry
(append
(list
(make block (center 0 -1.5) (size infinity 3 infinity)
(material (make dielectric (index 1.5))))
(make block (center 0 1) (size infinity 2 infinity)
(material (make dielectric (index 2))))
(make block (center 0 2.5) (size infinity 1 infinity)
(material (make dielectric (index 1.9))))
(make block (center 0 3.5) (size infinity 1 infinity)
(material (make dielectric (index 1.8))))
(make block (center 0 4.5) (size infinity 1 infinity)
(material (make dielectiric (epsilon -1e20))))
(make block (center 9.5 0.5) (size 1 7 infinity)
(material (make dielectric (epsilon -1e20))))
(make block (center -9.5 0.5) (size 1 7 infinity)
(material (make dielectric (index -1e 20)))))
(geometric-object-duplicates (vector3 1 0) 0 9
(make block (center 0.5 0) (size 0.5 1 infinity)
(material sio)))
(geometric-object-duplicates (vector3 -1 0) 0 9
(make block (center -0.5 0) (size 0.5 1 infinity)
(material sio))))) ; grating
(set! pml-layers (list (make pml (thickness 1) (direction Y)))) ; pml layer
(set! sources
(list
(make source
(src (make continuous-src (frequency 1)))
(component Ez) (center 0 3.9) (size 5 0)))) ; line source
(run-until 40
(at-beginning output-epsilon)
(to-appended “ez” (at-every 0.1 output-efield-z)))
(1)
I simulated light propagation in dielectric material with grating.
I placed metals (very large negative epsilon) at three sides of
computational cell except the up side.
And after simulation,
I got the image(png file) and movie(gif flie) of Ez (z-axis field)
( Command :
h5ls rect-flux1-ez.h5
h5topng -t 0:399 -R -Zc dkbluered -a yarg -A rect-flux1-eps-000000.00.h5
rect-flux1-ez.h5
convert rect-flux1-ez.t*.png rect-flux1.gif )
But the geometry I designed disappears, however Ez behaves as if the
geometry exists.
How can I make the geometry appear with Ez simulation for this condition?
(2)
And I want to place a mirror at the side of computational cell,
so I put metals at the side of computational cell
This method is correct? Is it a right way to use as a mirror condition?
Or is there another way for mirror condition?
(3)
My source is continuous-src with frequency 1 (because period of grating is
1)
I want to set the display or lighting source (OLED or LED).
How should I set the source condition??
Like, should it be point source or line source?
What type of amplitude function should I use?
Etc….
Thank you in advance.
Hwanhee Cho.
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss