[Meep-discuss] flux-in-box and field-energy-in-box

2010-05-05 Thread Kuan
Is there a reason why flux-in-box works inside a print statement but not inside a variable assignment? The following statement works: (print \nflux is: (flux-in-box X (volume (center 0 0) (size 1 1 But the following statements croak: (define foo 0) (define (set-variables) (set! foo

[Meep-discuss] flux-in-box in 1D simulation

2009-06-10 Thread Bernd Schmid
Dear meep users I am just starting to use meep and want to simulate nonlinear structures in 1D (currently just one material, source is a gaussian with Ex that propagates in z). To visualize time domain signal I found the flux-in-box. However, as an output I get a singel number: 0.0. Shouldn't

[Meep-discuss] flux-in-box

2008-01-05 Thread Manoj Rajagopalan
Hi all, Regarding the flux-in-box function, it needs a direction, and a box-shaped volume. I don't clearly understand this. The example in the documentation presents a y-z cross-section of unit size and defines 'dir' to be X. I understand this to be a box whose x-length spans the

Re: [Meep-discuss] flux-in-box

2008-01-05 Thread Steven G. Johnson
On Sat, 5 Jan 2008, Manoj Rajagopalan wrote: Regarding the flux-in-box function, it needs a direction, and a box-shaped volume. I don't clearly understand this. The example in the documentation presents a y-z cross-section of unit size and defines 'dir' to be X. I understand this to be a box