Re: [Meep-discuss] E and H for the same point

2008-07-19 Thread Steven G. Johnson
On Jun 3, 2008, at 2:27 AM, Steven G. Johnson wrote: To get the fields for the same *time*, you will need to do some averaging yourself. In particular, each time step first steps H and then steps E (and D), so the E (and D) field is always half a time-step ahead of the H field. So,

Re: [Meep-discuss] E and H for the same point

2008-06-07 Thread Juntao Xi
In two dimensions, the fields (by symmetry since the xy plane is a mirror plane) can be divided into two polarizations, TE (Hz, Ex, Ey) and TM (Ez, Hx, Hy). When you use an Ey source, it only produces TE- polarized fields. You get a magnetic field (and a nonzero stress tensor), but it is in

Re: [Meep-discuss] E and H for the same point

2008-06-05 Thread Steven G. Johnson
On Jun 5, 2008, at 7:47 AM, Juntao Xi wrote: -- From: Steven G. Johnson [EMAIL PROTECTED] Sent: Thursday, June 05, 2008 9:16 PM To: meep-discuss@ab-initio.mit.edu Subject: Re: [Meep-discuss] E and H for the same point Both E and H

Re: [Meep-discuss] E and H for the same point

2008-06-03 Thread Steven G. Johnson
To get the fields for the same point in space, you can just use one of the supplied interpolation routines as defined in the manual, such as get-field-pt. The HDF5 output routines also interpolate all the fields onto the same spatial grid. Also, the built-in field- integration routines

[Meep-discuss] E and H for the same point

2008-06-02 Thread Juntao Xi
Hi, Steven and Meepers, Now, I am working on the optical force simulation project. And mostly, the optical force is presented by the Maxwell stress tensor. (http://en.wikipedia.org/wiki/Maxwell_stress_tensor). As you know, Meep is using FDTD algorithms and the E output and H output have

Re: [Meep-discuss] E and H for the same point

2008-06-02 Thread matt
Do these texts answer your question? http://ab-initio.mit.edu/wiki/index.php/Meep_Introduction#Finite-difference_time-domain_methods http://ab-initio.mit.edu/wiki/index.php/Meep_Introduction#The_illusion_of_continuity_in_Meep Best, Matt On Tue, 3 Jun 2008, Juntao Xi wrote: Hi, Steven and