Grid Macro¶

This macro file can be imported to an input file with \$ import grid.mac.

This collection of macros can be used to add different types of grids to the input file.

lowerBounds:
Vector of coordinates for lower edge of grid, lowerBounds = [ XMIN YMIN ZMIN ]
upperBounds:
Vector of coordinates for upper edge of grid, upperBounds = [ XMAX YMAX ZMAX ]
numCells:
Vector of number of cells in grid, numCells = [ NX NY NZ ]
periodicDirections:

List of directions that are periodic

periodicDirections = [ 0 ] (x-direction periodic)
periodicDirections = [ 0 1 ] (x,y-directions periodic)
periodicDirections = [ 0 1 2 ] (x,y,z-directions periodic)


lowerBounds:
Vector of coordinates for lower edge of grid, lowerBounds = [ XMIN YMIN ZMIN ]
upperBounds:
Vector of coordinates for upper edge of grid, upperBounds = [ XMAX YMAX ZMAX ]
numCells:
Vector of number of cells in grid, numCells = [ NX NY NZ ]
periodicDirections:

List of directions that are periodic

periodicDirections = [ 0 ] (x-direction periodic)
periodicDirections = [ 0 1 ] (x,y-directions periodic)
periodicDirections = [ 0 1 2 ] (x,y,z-directions periodic)


lowerBounds:
Vector of coordinates for lower edge of grid, lowerBounds = [ XMIN YMIN ZMIN ]
upperBounds:
Vector of coordinates for upper edge of grid, upperBounds = [ XMAX YMAX ZMAX ]
numCells:
Vector of number of cells in grid, numCells = [ NX NY NZ ]
periodicDirections:

List of directions that are periodic

periodicDirections = [ 0 ] (x-direction periodic)
periodicDirections = [ 0 1 ] (x,y-directions periodic)
periodicDirections = [ 0 1 2 ] (x,y,z-directions periodic)


lowerBounds:
Vector of coordinates for lower edge of grid, lowerBounds = [ XMIN YMIN ZMIN ]
upperBounds:
Vector of coordinates for upper edge of grid, upperBounds = [ XMAX YMAX ZMAX ]
numCells:
Vector of number of cells in grid, numCells = [ NX NY NZ ]
periodicDirections:

List of directions that are periodic

periodicDirections = [ 0 ] (x-direction periodic)
periodicDirections = [ 0 1 ] (x,y-directions periodic)
periodicDirections = [ 0 1 2 ] (x,y,z-directions periodic)


Add a unstructured grid in ExodusII format

name:
Name of grid WITHOUT extension

Add a unstructured grid composed of tetrahedra in ExodusII format

name:
Name of grid WITHOUT extension

Add a unstructured cylindrical grid composed of tetrahedra in ExodusII format

name:
Name of grid WITHOUT extension

Add a unstructured cylindrical grid in ExodusII format

name:
Name of grid WITHOUT extension

Add a unstructured grid in Gmsh format

name:
Name of grid WITHOUT extension

Add a unstructured grid composed of tetrahedra in Gmsh format

name:
Name of grid WITHOUT extension

Add a unstructured cylindrical grid in Gmsh format

name:
Name of grid WITHOUT extension

Add a unstructured cylindrical grid composed of tetrahedra in Gmsh format

name:
Name of grid WITHOUT extension

Specify a variable for defining a body-fitted grid

varName:
Name to assign quantity that is independent of grid position
varValue:
Value to assign quantity that is independent of grid position

Specify a preExpression for defining a body-fitted grid

expression:
A mathematical expression to evaluate. f=f(preExpression,variable,t,x,y,z)

Specify an Expression for defining a body-fitted grid

expression:
A mathematical expression to evaluate. f=f(preExpression,variable,t,x,y,z)

Specify a variable for defining a mask on the grid

newEntityNameVar:
Name of the new entity
varName:
Name to assign quantity that is independent of grid position
varValue:
Value to assign quantity that is independent of grid position

Specify a preExpression for defining a mask on the grid

expression:
A mathematical expression to evaluate. f=f(preExpression,variable,t,x,y,z)

Specify an Expression for defining a mask on the grid

expression:
A mathematical expression to evaluate. f=f(preExpression,variable,t,x,y,z)

Create a new entity within the grid based on mask function

newEntityNameVar:
Name of the new entity

newEntityNameVar:
entityToCreateFromVar: