Dec 10, 2011

meep program in CAELINUX2011

meep program in CAElinux2011
official support can be found @ Installation, Tutorial, Reference 

(set! geometry-lattice (make lattice (size 1 1 no-size
x, y, z
)))

(set! geometry (list
       (make block (center -0.2 -0.2) (size 0.2 0.2)
all format is 3d: (x,y z) or 2d: (x,y) and must be in lattice
             (material (make dielectric (epsilon 12)
or (material metal)
))
)))

(set! sources (list
       (make source
             (src (make continuous-src (wavelength 0.1224
frequency 8.167 (2.45GHz when lattice=1m, frequency in meep=lattice size/real lambda) or wavelength lambda
)))
             (component Ez
can be
)
             (center -0.4 0
must be in lattice
))))

(set! pml-layers (list (make pml (thickness 0.1
size should be smaller than lattice and better have pml
))))

(set! resolution 100
final resolution of file is resolution*lattice_size
)

(run-until 200
simulation time
      (at-every 0.6
output step
            (output-png Ez "-Zc bluered")))

No comments: