Fields block

Fields block#

This block contains information about the EM fields specified at the start of the simulation. See EPOC++ input deck for more information on the input deck.

This block allows you to specify the electric and magnetic fields at any point in the domain. An example block is shown below:

begin:fields
   ex = sin(pi * x / length_x)
   ey = cos(pi * x / length_x)
   ez = 0
   bx = 1.0
   by = -1.0
   bz = 0
end:fields

Once again, this is a very simple block needing only limited explanation. All field variables are accessible by name and can be read back using the appropriate commands from the maths parser (see here). The possible parameters are as follows:

  • ex,ey,ez - The electric field vectors pointing in all three directions. The default value is zero.

  • bx,by,bz - The magnetic field vectors pointing in all three directions. The default value is zero.

Any valid maths parser expression can be used to set up the fields, and no check is made to ensure that the \(\nabla.B = 0\) is satisfied.