FileMesh

Parameters

  • Required:
    • app (godzilla::LateRef<godzilla::CoreApp>) - Application we are part of

    • file (std::filesystem::__cxx11::path) - The name of the file.

  • Optional:
    • comm (mpicpp_lite::Communicator) - MPI communicator

    • distributed (Boolean) - Is the mesh pre-distributed?

    • interpolate (Boolean) - Interpolate the mesh

    • name (godzilla::String) - Name of the object

class FileMesh : public godzilla::Object

Object for loading meshes from files.

Public Functions

explicit FileMesh(const Parameters &pars)

Construct a FileMesh object.

Parameters:

pars – Parameters to build the object

fs::path get_file_name() const

Return file name.

Returns:

Name of the file

fs::path get_distributed_file_name(int rank) const

Return distributed file name for given rank.

Parameters:

rank – MPI rank

Returns:

Name of the distributed file for rank

FileFormat get_file_format() const

Get mesh file format.

Returns:

Mesh file format

bool is_distributed() const

Is the mesh pre-distributed.

Returns:

true if the mesh is distributed, false otherwise

Qtr<UnstructuredMesh> create_mesh()

Create UnstructuredMesh object.

Returns:

UnstructuredMesh object