Class MeshIO

Class Documentation

class MeshIO

Public Static Functions

static std::shared_ptr<UnpartitionedMesh> FromExodusII(const UnpartitionedMesh::Options &options)
static std::shared_ptr<UnpartitionedMesh> FromVTU(const UnpartitionedMesh::Options &options)
static std::shared_ptr<UnpartitionedMesh> FromPVTU(const UnpartitionedMesh::Options &options)
static std::shared_ptr<UnpartitionedMesh> FromEnsightGold(const UnpartitionedMesh::Options &options)
static std::shared_ptr<UnpartitionedMesh> FromOBJ(const UnpartitionedMesh::Options &options)
static std::shared_ptr<UnpartitionedMesh> FromGmsh(const UnpartitionedMesh::Options &options)
static void ToOBJ(const std::shared_ptr<MeshContinuum> &grid, const char *file_name, bool per_material = false)

Write grid cells into an OBJ file

Parameters:
  • grid – Grid to be stored

  • file_name – Name of the output file

  • per_material – Create one file per material

static void ToExodusII(const std::shared_ptr<MeshContinuum> &grid, const std::string &file_name, bool write_node_sets = true, bool write_side_sets = true)

Write grid cells into an ExodusII file

Parameters:
  • grid – Grid to be stored

  • file_name – Name of the output file

  • per_material – Create one file per material

  • write_node_sets – Write node sets into the file

  • write_side_sets – Write side sets into the file

static void ToPVTU(const std::shared_ptr<MeshContinuum> &grid, const std::string &file_base_name)

Write grid cells into PVTU format.

Parameters:
  • grid – Grid to be stored

  • file_base_name – Base name of the output file