next up previous contents
Next: -lintegral: computes line integrals Up: gd1.pp Previous: -2dplot: Plot a component   Contents

-energy: compute energy in E or H fields

In this section you may compute the stored energy for an electric or magnetic field. The result of the computation is stored in symbolic variables that may be used eg. for computation of user defined figures of merit.
 ##############################################################################
 # Flags: nomenu, noprompt, nomessage,                                        #
 ##############################################################################
 # section: -energy                                                           #
 ##############################################################################
 # symbol   = h_1                                                             #
 # quantity = h                                                               #
 # solution = 1                                                               #
 # bbxlow =    -1.0000e+30, bbylow =    -1.0000e+30, bbzlow =    -1.0000e+30  #
 # bbxhigh=     1.0000e+30, bbyhigh=     1.0000e+30, bbzhigh=     1.0000e+30  #
 #                                                                            #
 #                                                                            #
 # @henergy : undefined                 (symbol: undefined, m: 1)             #
 # @eenergy : undefined                 (symbol: undefined, m: 1)             #
 ##############################################################################
 # doit, ?, return, end, help, ls                                             #
 ##############################################################################
The energy for a magnetic field is computed as:
\begin{displaymath}
@henergy = \frac{1}{2m} \int \mu H^2 \; dV
\end{displaymath} (2.1)

The energy for an electric field is computed as:
\begin{displaymath}
@eenergy = \frac{1}{2m} \int \varepsilon E^2 \; dV
\end{displaymath} (2.2)

The time-averaging factor m is 2 for resonant fields, and 1 for nonresonant fields.

When you are computing resonant fields without periodic boundary conditions, the fields that gd1.pp processes are the electric fields at a time t=0 and the magnetic fields at a time t=T/4, where T=1/f. This means, you 'see' both the electric and magnetic fields at a time where they are at a maximum. To get the total stored energy for resonant fields, one has to integrate $ (1/2) \mu H^2 + (1/2) \varepsilon E^2 $ over the volume at one instant time. But E and H are not at the same time. They are offset by T/4. The factor of 1/m, with m=2 for resonant fields, accounts for the effect of integrating both the electric and magnetic fields at their (time) peak values.

When you are computing time dependent fields, the fields that gd1.pp (normally) processes are electric and magnetic fields at (almost) the same time (almost, because there is a time-offset of half of the used timestep, but the used timestep is very small). For time dependent fields, the electric and magnetic fields are not at their time-peak values, but more important, the electric and magnetic fields are at the same time. The stored energy can therefore be expressed directly by integrating $ (1/2) \mu H^2 + (1/2) \varepsilon E^2 $ over the volume. No factor 'm' is needed.

You cannot and do not need to specify that 'm'. gd1.pp does this for you.


Example To compute the stored energy in the first electric field found in the database, we say:

 -energy, symbol= e_1, doit


next up previous contents
Next: -lintegral: computes line integrals Up: gd1.pp Previous: -2dplot: Plot a component   Contents