Hi Serge, Yes it is possible, just use the second formula in my email...
I don't think integrating in MEEP is necessary... I'm not sure, but I think output-dpwr already gives you the average power, IF you use complex fields The following thread seems to confirm this: http://osdir.com/ml/science.electromagnetism.meep.general/2006-05/msg00010.html Best regards, Milan -----Original Message----- From: Serge Solntsev [mailto:suns...@gmail.com] Sent: donderdag 14 oktober 2010 17:04 To: Marell, M.J.H. Subject: Re: [Meep-discuss] How to find average energy density? Hi Milan, Thank you for the reference. Is it possible also to calculate abs for non-dispersive materials using complex eps(w)? I use complex fields because I use dispersive materials. Yes, may be somebody can say how to integrate over time in meep or to find a maximum over a period. sincerely yours, Serge Solntsev E-mail: suns...@gmail.com, s.solnt...@tudelft.nl Skype: SunSerg On 14 October 2010 16:51, Marell, M.J.H. <m.j.h.mar...@tue.nl> wrote: > Maybe, for this to be correct (for this to actually be the average) you need > to set the use-complex-fields? parameter to TRUE. > Let's see if you get more replies > > Best regards, > > Milan > > > -----Original Message----- > From: meep-discuss-boun...@ab-initio.mit.edu > [mailto:meep-discuss-boun...@ab-initio.mit.edu] On Behalf Of Marell, M.J.H. > Sent: donderdag 14 oktober 2010 16:41 > To: Serge Solntsev > Cc: meep-discuss@ab-initio.mit.edu > Subject: Re: [Meep-discuss] How to find average energy density? > > Hi Serge, > > I'm working on a similar problem, I have a resonant cavity... > What I do is, I excite the cavity with a pulse and wait for the fields to > settle down. > As soon as the fields have settled down, I know extract Q factor of my cavity > plus the |E|^2 field distribution. > > R. Loudon's paper back in the 70s > (http://iopscience.iop.org/0022-3689/3/3/008) states that the average energy > (W) in a material is equal to: > > W= (epsilon_0 / 2) * (n^2 + 2*omega*n*k/gamma) * |E|^2 (for dispersive media) > > or > > W= (epsilon_0 / 2) * n^2 * |E|^2 (for > non-dispersive media) > > The latter is the same as output-dpwr on the MEEP website, as far as I can > tell... > > Best regards, > > Milan > > > > -----Original Message----- > From: meep-discuss-boun...@ab-initio.mit.edu > [mailto:meep-discuss-boun...@ab-initio.mit.edu] On Behalf Of Serge Solntsev > Sent: donderdag 14 oktober 2010 11:02 > To: meep-discuss@ab-initio.mit.edu > Subject: [Meep-discuss] How to find average energy density? > > Dear MEEP users and Dr. Johnson, > > I'm trying to calculate absorption in the device. I start simulation with CW > source, wait for a while... this is OK. > Then I output electric-field energy density using (output-dpwr). Using > average energy I can calculate the absorption. > But as far as I understood I got momentary values of the energy from > (output-dpwr). > > So my question is: How to find average (or maximum) of the energy for > certain points of the device? > > I would really appreciate your help, > > Serge Solntsev, > TU Delft > > > > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss > _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss