On Mon, 16 Oct 2006, João Luis Silva wrote:
I thought I was specifying the electric field, not the current (oops!). So I
used flux-in-box passing a plane perpendicular to the wave. However, with
real field no averaging will be done, and (flux-in-box ...) cannot be used
as a step function. So I'm trying to use (electric-energy-in-box ...) for
the whole volume, at a time point when the field is all inside the box,
which leads me to the following questions:

You can always run flux-in-box over a period and do the average.


Assuming the same conditions described in the last post (length in microns /
n2 in um^2/W) I have two questions:

* In what units will the value returned by (electric-energy-in-box) be?

The units are all internally consistent. So if you decide that the units of power (flux) are Watts, then the unit of energy is Watts * (Meep time). Meeps time units are a/c, where "a" is your unit of distance.

* How is it affected by a 2D vs 3D volume of the box?

If you use a 2D volume (i.e. one dimension has zero thickness), then Meep computes the energy density (energy/distance) in that plane. If you use a 1D volume (i.e. two dimensions have zero thickness) then it computes the energy/area. If you use a 0d volume (a point), then it just gives you the energy/volume at that point.

i.e. Meep takes the energy density (per unit volume) in the field and integrates it with a d-dimensional integral for a d-dimensional box.

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

Reply via email to