unstructured

Reads an unstructured grid generated by an external tool into USim. Currently USim does not do its own decomposition so it is assumed that the decomposition data is stored in the grid. Details on generating grids using GMSH and CUBIT/Trelis are given in Solving Problems on Unstructured Meshes in USim.

Parameters

Creator (block)

Defines the what type of grid will be read in. USim currently supports 2 different types of grids: Exodus meshes (frequently generated by CUBIT or Trelis):

<Creator ctor>
  kind = exodus
  ndim = 3
  file = NElementCube_1000.g
</Creator>

or

<Creator ctor>
  kind = exodus
  ndim = 3
  file = NElementCube_1000.exo
</Creator>

and meshes generated with gmsh:

<Creator ctor>
  kind = gmsh
  ndim = 2
  file = rampgeom.msh
</Creator>
isRadial (boolean)
Defines whether or not coordinates are radial (r, \(\theta\), z) or Cartesian (x, y, z). Defaults to false or cartesian coordinates
ghostLayers (integer)
Tell USim how many ghost layers the grid should use. The default value is 1.
writeGeom (boolean)
Tell USim whether or not to write out geometrical data. Defaults to false.
writeConn (boolean)
Tell USim whether or not to write out connectivity data. Defaults to false.
writeHalos (boolean)
Tell USim whether the halo data and grid should be dumped. Defaults to false. Useful for debugging.

Example

Sample code block

<Grid domain>
  kind = unstructured

  ghostLayers = 2

  <Creator ctor>
    kind = gmsh
    ndim = 2
    file = rampgeom.msh
  </Creator>
</Grid>