On Mon, 8 Jan 2007, Huazhong Wang wrote:
i want to calculate the Hx along a line of length 2 in computational cell of 20 X 40. the first method is to calculate the entire area and then extract the data along the line. this method takes more time. i also find another command in meep: (get-field-point c pt). this command gives a component or derived component but at a point, not a line. who has a better method with less computing time to calculate Hx along a line?

Use the (in-volume command, and specify a one-dimensional volume. For example:

(run-until 200 (at-end (in-volume (volume (center 0 0 0) (size 2 0 0))
                          output-hfield-x)))

will output the Hx field along a line of length 2 from (-1 0 0) to (1 0 0).

Cordially,
Steven G. Johnson

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

Reply via email to