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 whose x-length spans the > simulation region along the x-axis. > > Suppose I provide a box that is bounded completely, say with (size 1 > 1 1). Then what is the use of this 'dir' parameter?
The flux is the integral of the Poynting vector over the specified box. It only integrates one component of the poynting vector, and the dir parameter tells you which component. (Most commonly, you want to compute the flux over a 2d box, and choose dir be the orthogonal direction. However, there are cases where it is useful to integrate the flux over a 3d box.) Regards, Steven G. Johnson _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

