- Field
Field
Field object code block contained between the tags:
<Field *nameOfThisField*>
</Field>
Field Parameters
- kind (string, default = regular)
Type of field algorithm; one of:
regularWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
Sets its guard cells values by communication or boundary conditions.
regularCrossDevWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
Sets its guard cells values by communication or boundary conditions. This is compatible with CrossDev updaters.
interiorWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
Field whose guard cells are expected to be invalid; when the field is shifted in a moving window simulation, (newly) interior cells in a domain are filled from the (formerly) interior cells on other domains.
depFieldWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
Field that fills guard cells and interior cells (during messaging) by adding together the values for a cell on all domains that have that cell (either as interior or a guard cell). Particles are written into
depFields.funcFieldWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
Field that fills guard cells, or newly interior cells in a moving window simulation, by calculating their values from a function.
Each of these kinds is explained in detail in the following sections. If no kind is given, the default (and usually correct choice for most simulations) will be used by Vorpal.
- numComponents (integer, default = 1)
Number of field components. Other field component values include:
1: scalar field3: vector field4: edge4v vector9: tensor field
- offset (string)
Offset positions where the field values are located within a cell. offset values include:
noneCorner with lowest coordinates.
centerCenter of cell.
edgeComponent j is at the center of the lowest edge parallel to the jth direction.
faceComponent j is at the center of the lowest face perpendicular to the jth direction.
edge4vFor rhoJ, 0-component is at node, 1 is at x-center-edge, 2 at y-center-edge, 3 at z-center-edge
- overlap (integer vector)
depField default =
[1 2], default for all others =[1 1]Number of lower and upper guard cells. The guard cells are important if higher order particles are near the simulation boundaries or for communications when running in parallel.
- dumpPeriod (integer, default = Multifield dumpPeriod setting)
How often to dump the Field data relative to that set by the global variable
globalvariables.dumpPeriod. For example, if a simulation generates 10 dumps, then setting the Field’sdumpPeriodto3will dump the Field data on the 3rd, 6th, and 9th dumps. SettingdumpPeriod = 0will suppress dumping. IfdumpPeriodis omitted from the attribute set, Field will inherit its parent MultiField’sdumpPeriodsetting. If Field and its parent MultiField have different values ofdumpPeriod, Field will only dump when both its owndumpPeriodand its parent MultiField’sdumpPeriodcoincide, that is, it will not dump at a time when there is no MultiField dump.For more dumping options, see the Dumping Fields, Particles, and GridBoundaries section in the VSim User Guide.
- interpolation (string)
No offset default = linearFromNodalFields, default for all others = esirk1stOrder. Defines the interpolation method used for particles. Values include:
linearFromNodalFieldsWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
polynomialWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
esirkHalfSineWorks with VSimPD and VSimPA licenses.
esirkGaussianWorks with VSimPD and VSimPA licenses.
esirk1stOrderWorks with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.
esirk2ndOrder, …esirk7thOrderWorks VSimPD and VSimPA licenses.
No offset default = linearFromNodalFields, default for all others = esirk1stOrder
The default for offset = none is linearFromNodalFields, otherwise the default is esirk1stOrder. When using higher order particles,
maxIntDepHalfWidthmust be set accordingly in the Grid block
See the “Additional Attributes for Particle Simulations” section in the Reference manual.
- dumpOnly (integer)
If set to true
1in a Field block ofkind=depFieldthen depositors depositing into that field will only execute at dump time. This is useful for occurrences ofdepFieldthat are dumped but not needed for the update, such as charge density for EM PIC.
- skipChecks (integer, default = 0)
When restoring a simulation with static fields or other fields that do not dump regularly, Vorpal performs an automated check on the local
dumpStepsline or Expression block to ensure that restoring from an older .h5 dump will not adversely impact the simulation. The user can set this attribute to1to signal that the field is safe to restore from any dump step and thus ignore these checks.For more dumping options, see the Dumping Fields, Particles and the “HDF5 Format Data Output Files” section in the User Guide manual.
Blocks Contained Within a Field Block
- BoundaryCondition (block)
Boundary condition for the field.
- InitialCondition (block)
Initial condition for the field.
- Source (block)
A source for the field. This is the same as a BoundaryCondition for the field, however may be more useful for introducing a condition over a region of the domain rather than a plane or line as you would expect from a boundary condition.