You don't have to define the field yourself. It is passed into your function as one of the arguments, depending on what components you request in the component list. The integration routine will handle the integral (which will be done in cylindrical coordinates). See the example in the Meep manual:
http://ab-initio.mit.edu/wiki/index.php/Meep_field-function_examples As for the modal volume, actually there is a built-in-function that computes the modal volume according to the Purcell-effect definition (which may or may not be relevant, depending on what you are interested in): integral of epsilon*|E|^2 divided by max epsilon*|E| ^2. It is a somewhat lower-level function, and doesn't have a nice Scheme wrapper defined for it, but the syntax is: (meep-fields-modal-volume-in-box fields (volume ...)) where you pass it the integration volume you want it to use. Or you can just implement this yourself using the field integration functions, especially if you want to use a different definition of modal volume. Steven On May 6, 2008, at 8:35 AM, carolineagle wrote: > > i want to calculate the volume mode in a cylinder coordinate. i > wanted to use the function "integrate-field-function cs func [where] > [fields-var]) "and "max-abs-field-function cs func [where] [fields- > var]". how could i define E(r) ? the source i have used is a > gaussian-src (component Ez). should the integral must be > intergrated in cartesian coordinate or it can be calculate in > cylinder coordinate? > is there any function defined in meep to calculate the volume mode? > thank you very much. _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

