Hi lhu,

When the fields are initialized, meep prints a message:
-----------
Initializing structure...
Working in 2D dimensions.
time for set_epsilon = 0.011 s
-----------

In your case this happens when (add-flux ...)  invokes (init-fields).
You can also check by typing
  fields
or
  structures
after executing a line of the script. 

m.










"Lu Hu" <[EMAIL PROTECTED]> 
Sent by:
[EMAIL PROTECTED]
14-03-2007 01:00

To
meep-discuss <[email protected]>
cc

Subject
[Meep-discuss] Re: test run for thin film does not converge toanalytical 
solutions
Classification







I partially figured out what is wrong: I put (set! resolution ...) too far 
behind in the script. The script ignores the resolution and uses the 
default value 10. Now comes to a related question: 
at what point does meep start to generate the grid in a typical script , 
or where exactly should we set (set! resolution...)? 
;(1)
(set! geometry-lattice ...)
;(2)
(set! geometry ...)
;(3)
(set! sources ...)
;(4)
(set! pml-layers ...)
(set! k-point ...)
etc.


On 3/9/07, Lu Hu <[EMAIL PROTECTED]> wrote:
I am sorry that I have to send this message again. The text message in my
previous post won't show up. 


---------- Forwarded message ----------
From: Lu Hu < [EMAIL PROTECTED]> 
Date: Mar 9, 2007 4:45 PM
Subject: test run for thin film does not converge to analytical solutions
To: meep-discuss < [email protected]>

Hello,

I tried to test meep by calculating reflection from a dielectric thin 
film. 
It looks like the results never converge to the analytical solutions no
matter how fine the grids are. Could anybody point out the mistakes
for me? The ctl file and plot are attached.

lhu

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to