- EMField-funcEmField
funcEmField¶
Defines an EM field using a block to describe the characteristics of the EM field. funcEmField requires use of a code block.
funcEmField Block Parameters¶
STFunc
(block)
The function that sets the value for a specific field component. The name of the block determines which component. E0,E1,E2 sets the x,y and z components of the electric field and B0,B1,B2 does the same for the magnetic field. See STFunc Block.
Example funcEmField Block¶
<EmField myExternalField>
kind = funcEmField
<STFunc E0>
kind = expression
expression = EX_1 * cos(K_PE * x) * H( DRIVE_TIME - t )
</STFunc>
</EmField>