Hello, steven
 
Thank you for your reply.
I still have some questions.
First, if I want to get scattered fields, I did the simulation twice. One has 
object, one without object.
Then I use the fields (Ez, Hx, Hy) that I got with object subtract the fields 
without the object. These fields are the scattered fields, right?
 
Second, for my ntf code, I want to make the code match the data gotten by meep.
 I set the parameters like this: 

Eps0=1

Mu0=1

Z (intrinsic impedance of free space) =1

K=1 (the wave vector of incident wave)

Omiga (angular frequency)=1

Wavelength=a=1 (also a=wavelength)

Wl=40 (resolution)

Are these parameters right?

Especially for the omiga, for my ntf code I used to set eps0, mu0... as the 
real value (8.85e-12...) and omiga=pi/wl, so now how should I set the omiga 
then it can match the data from meep? 

 

Thank you very much,

 

Lei

 


________________________________

From: [EMAIL PROTECTED] on behalf of Steven G. Johnson
Sent: Fri 8/1/2008 3:36 PM
To: [email protected]
Subject: Re: [Meep-discuss] Questions about using meep to do near to farfield 
transformation.


On Jul 31, 2008, at 12:33 PM, Zhu, Lei wrote:

        
        In fact, I just need the scattered E and H fields tangential to a 
virtual rectangle shape surface completely surrounding the object or scatterer.
        Is this right?


Yes, I believe so.


        
        Below is my code. Can I take the E and H at the same timestep 300 or I 
should take E at timestep 300 and get the average value of H at 299.5 and 
300.5?  


You should use the (synchronized-magnetic ...) function, new in Meep 0.20, 
which will due the averaging of H for you, in order to get E and H at the same 
time.  See:

http://ab-initio.mit.edu/wiki/index.php/Synchronizing_the_magnetic_and_electric_fields

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

Reply via email to