Re: [Meep-discuss] incorrect reflection coeff. calculation

2007-03-27 Thread Steven G. Johnson
On Tue, 27 Mar 2007, matt wrote: My simple meep example is coming up with an incorrect result. I found some posts on the list regarding similar problems (incorrect reflection coefficient calculation), where the recommendation was to move the flux planes away from the source, by at least a wave

Re: [Meep-discuss] about the nonlinear source

2007-03-27 Thread Steven G. Johnson
On Tue, 20 Mar 2007, ? ? wrote:    Our group of photonic crystal has encountered a vital problem involving the Kerr nonlinearity.    It seems that we could define the source only through amplitude. If we want to set the power of the source as 1GW/cm^2, how to define our source in MEEP? See

Re: [Meep-discuss] problems with "load-minus-flux"

2007-03-27 Thread Steven G. Johnson
On Tue, 20 Mar 2007, Lydie Ferrier wrote: I have a problem with the function "load-minus-flux". After saving the fourier transformed fields from the normalisation run, i did the second run where i included the "load-minus-flux" function to compute the relection spectra. Th second run doesn't wo

RE: [Meep-discuss] question on decaying current source

2007-03-27 Thread Steven G. Johnson
On Mon, 12 Mar 2007, #YIP CHAN HOE# wrote: I am trying to figure out the decaying function of gaussian-src or continuous-src, and hope to hear your advice. The default source end-time[] is infinity (never turn off) according to MEEP reference. And, the default cutoff[] is 3.0 and it is the n

Re: [Meep-discuss] How to change the position of the waist of a gaussian beam?

2007-03-27 Thread Steven G. Johnson
On Sun, 11 Mar 2007, Andrew Andrew wrote: I write a ctl according to some codes that Steven have given on this list, but I can't change the position of the waist of a gaussian beam. (define ( (my-amp sigma k x0) x) (exp (- (* 0+2i pi (vector3-dot k (vector3+ x x0) )) (/ (vector3-dot (vecto

Re: [Meep-discuss] Uniaxial material in meep

2007-03-27 Thread Steven G. Johnson
Although Meep supports anisotropic materials internally (they are required for its subpixel averaging technique), there is currently no interface to specify this externally; we are working on this. On Sat, 10 Mar 2007, Daniel Hu wrote: I am trying to simulate light propagation in a unixial mat

Re: [Meep-discuss] how to get the intensity at one point?

2007-03-27 Thread Steven G. Johnson
On Sun, 18 Mar 2007, Andrew Andrew wrote: I think I can use (get-field-point c pt) to get amplitude and then calculate intensity by myself. Yes, that will work. ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi

Re: [Meep-discuss] How to calculate mode volume of a cavity?

2007-03-27 Thread Steven G. Johnson
On Thu, 15 Mar 2007, hb wrote: I want to calculate the mode volume of a cavity. Could anyone tell me how to calculate it using meep? First, you have to decide what definition of modal volume you want to use. For example, one definition that is relevant for the Purcell effect (spontaneous

Re: [Meep-discuss] a question about symmetry

2007-03-27 Thread Steven G. Johnson
On Wed, 14 Mar 2007, Jun She wrote: If I put a circular polarizied source (Ex + i*Ey) at the center of a slab, how to define the symmetry? This source has no symmetry, so you can't exploit it. (More precisely, it doesn't transform as any single representation of the symmetry group. For a sla

Re: [Meep-discuss] Output of electric-energiy-in-box to h5-file

2007-03-27 Thread Steven G. Johnson
On Wed, 14 Mar 2007, Robert Koester wrote: Hello, I need to calculate the energie of an electric field in a certain volume. After defining the dielectric function I wrote this to output the values on teh screen and it works perfect. The screen-output doesn't satisfy me and I wan to make a outp

Re: [Meep-discuss] Re: test run for thin film does not converge to analytical solutions

2007-03-27 Thread Steven G. Johnson
On Tue, 13 Mar 2007, Lu Hu wrote: behind in the script. The script ignores the resolution and uses the default value 10. Now comes to a related question: at what point does meep start to generate the grid in a typical script , or where exactly should we set (set! resolution...)? The grid gets

Re: [Meep-discuss] integrate-field-functions

2007-03-27 Thread Steven G. Johnson
On Sun, 11 Mar 2007, Mischa Megens wrote: I thought we might try figuring out the units by making the integrand a constant. Suppose our system is two dimensional, 3 furlong wide and 4 furlong high: (set! geometry-lattice (make lattice (size 3 4))) (set! resolution 20) (init-fields) (integrate-fi

Re: [Meep-discuss] integrate-field-functions

2007-03-27 Thread Steven G. Johnson
On Sat, 10 Mar 2007, Christine Kreuzer wrote: What are the units of the integration volume if I integrate over the whole computational cell? If I want to calculate the mode volume, for example. I use (integrate-field-function) to get the integral(eps*|E|²) over the whole computational cell and

Re: [Meep-discuss] Re: Loading a stored field file

2007-03-27 Thread Steven G. Johnson
On Fri, 9 Mar 2007, Nicholas Smith wrote: I actually had an application for this... In some simulations that I would like to run, the metal structure might change over time due to heat or other effects, but as far as I know meep cannot simulate a time-dependent structure, and so the way to do i

Re: [Meep-discuss] test run for thin film does not converge to analytical solutions

2007-03-27 Thread Steven G. Johnson
On Fri, 9 Mar 2007, Lu Hu wrote: I tried to test meep by calculating reflection from a dielectric thin film. It looks like the results never converge to the analytical solutions no matter how fine the grids are. Could anybody point out the mistakes for me? The ctl file and plot are attached. It

Re: [Meep-discuss] how to set the amplitude of the source according to the power

2007-03-27 Thread Steven G. Johnson
On Tue, 27 Mar 2007, ? ? wrote: I¡¯m sorry to trouble you again. In MEEP we could not specify the power of the source. Rather we could specify the amplitude only. If I want to set a source with a power 4w, what is the amplitude of the source? Is it simply obtained by 4^0.5 = 2? However, it seem

Re: [Meep-discuss] band structure

2007-03-27 Thread Steven G. Johnson
On Fri, 2 Mar 2007, xqhuang wrote: I want to calculate the SW(surface waves) band structure of a dispersive slab.I can get the rigorous result by TMM.But the result calculated by Meep is not consistent with the theoretical result. I don't know why.Attachment is the ctl file. Thanks in advance!

[Meep-discuss] incorrect reflection coeff. calculation

2007-03-27 Thread matt
Hello, My simple meep example is coming up with an incorrect result. I found some posts on the list regarding similar problems (incorrect reflection coefficient calculation), where the recommendation was to move the flux planes away from the source, by at least a wavelength. This did not s