You can use the Grid
block to define the simulation grid. You
can either use variables or the desired values directly for
parameters such as numCells, lengths, etc.
<Grid globalGrid>
kind = uniCartGrid
numCells = [NX NY NZ]
lengths = [LX LY LZ]
startPositions = [XBGN YBGN ZBGN]
</Grid>
A full description of all grid types and parameters can be found in the Grid section of VSim Reference.
You can set the simulation grid to be in cylindrical coordinates simply by setting
coordinateSystem = Cylindrical
Expressions will switch from relying on x and y coordinates to z and r automatically. You should still use x and y in the actual expressions.
More information can be found in the Cylindrical Coordinates section of VSim Reference.
You can use the decomp
block to define the decomposition to
be used in the simulation, particularly if you want something
other than Vorpal’s default decomposition method. It is also in
this block that you can ensure periodic boundary conditions are
incorporated in your simulation.
<Decomp decomp>
kind = regular
periodicDirs = [1 2]
</Decomp>
More details on decomposition and related parameters can be found in the Decomp section of VSim Reference.