pyopensn.mesh.FromFileMeshGenerator

class pyopensn.mesh.FromFileMeshGenerator

From file mesh generator.

Wrapper of opensn::FromFileMeshGenerator.

Execute(self: pyopensn.mesh.MeshGenerator) pyopensn.mesh.MeshContinuum

Final execution step.

__init__(self: pyopensn.mesh.FromFileMeshGenerator, **kwargs) None

Construct a from-file mesh generator.

Parameters:
  • scale (float, default=1.0) – Uniform scale to apply to the mesh after reading.

  • inputs (List[pyopensn.mesh.MeshGenerator], default=[]) – A list of MeshGenerator objects.

  • partitioner (pyopensn.mesh.GraphPartitioner, default=None) – Handle to a GraphPartitioner object to use for parallel partitioning. This will default to PETScGraphPartitioner with a “parmetis” setting.

  • replicated_mesh (bool, default=False) – Flag, when set, makes the mesh appear in full fidelity on each process.

  • filename (str) – Path to the file.

  • block_id_fieldname (str, default='BlockID') – The name of the field storing cell block/block ids. Only really used for .vtu, .pvtu and .e files.

  • boundary_id_fieldname (str, default='') – The name of the field storing boundary-ids.

  • coord_sys ({'cartesian', 'cylindrical', 'spherical'}) – The coordinate system of the mesh.