############################################################################## # 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 # ##############################################################################
symbol= QUAN_ISOL
:
quantity= QUAN
:
solution= ISOL
:
bbxlow=,bbxhigh=,bbylow=bbyhigh=,bbzlow=,bbzhigh=
:
If the integrated field was an electric field, the result of the computation is stored in the symbolic variable @eenergy. If the integrated field was a magnetic field, the result of the compuation is stored in the symbolic variable @henergy.
(2.1) |
(2.2) |
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 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 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