FileMeshGenerator

Read a mesh from a file.

Supported File Formats

The FileMeshGenerator is the default type for MOOSE and as the name suggests it reads the mesh from an external file. MOOSE supports reading and writing a large number of formats and could be extended to read more.

ExtensionDescription
.e, .exdSandia's ExodusII format
.datTecplot ASCII file
.froACDL's surface triangulation file
.gmvLANL's GMV (General Mesh Viewer) format
.matMatlab triangular ASCII file (read only)
.mshGMSH ASCII file
.n, .nemSandia's Nemesis format
.pltTecplot binary file (write only)
.node, .ele; .polyTetGen ASCII file (read; write)
.inpAbaqus .inp format (read only)
.ucdAVS's ASCII UCD format
.unvI-deas Universal format
.xda, .xdrlibMesh formats
.vtk, .pvtuVisualization Toolkit
.cprCheckpoint file

When reading a mesh file in Sandia's ExodusII format, users can use parameter exodus_extra_element_integers to load elemental variables for setting extra element integers of the mesh. The names of the extra element integers will be the same as the names of the element variables in the mesh file. This generator can also be used for restarting variables from the Exodus file format. In order to indicate that the mesh file can be used to restart variables, simply set the parameter use_for_exodus_restart = true. The initial_from_file_var parameter must also be set in the variables sub-block as described in Restart in order to perform variable restart.

Further FileMeshGenerator Documentation

Input Parameters

  • fileThe filename to read.

    C++ Type:MeshFileName

    Options:

    Description:The filename to read.

Required Parameters

  • exodus_extra_element_integersThe variable names in the mesh file for loading extra element integers

    C++ Type:std::vector<std::string>

    Options:

    Description:The variable names in the mesh file for loading extra element integers

  • show_infoFalseWhether or not to show mesh info after generating the mesh (bounding box, element types, sidesets, nodesets, subdomains, etc)

    Default:False

    C++ Type:bool

    Options:

    Description:Whether or not to show mesh info after generating the mesh (bounding box, element types, sidesets, nodesets, subdomains, etc)

  • use_for_exodus_restartFalseTrue to indicate that the mesh file this generator is reading can be used for restarting variables

    Default:False

    C++ Type:bool

    Options:

    Description:True to indicate that the mesh file this generator is reading can be used for restarting variables

Optional Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector<std::string>

    Options:

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Options:

    Description:Set the enabled status of the MooseObject.

Advanced Parameters

Input Files