stellarmesh.MOABModel

class MOABModel(core_or_file: str | bytes | PathLike | Core)Source

MOAB Model.

This class holds a generic MOAB mesh, which could be a 2D surface mesh used in DAGMC, a 3D tetrahedral mesh, etc.

property category_tag: TagSource

Category tag.

property faceting_tol_tag: TagSource

Faceting tolerance tag.

classmethod from_mesh(mesh: Mesh) MOABModelSource

Create MOAB model from mesh.

Parameters:

mesh – Mesh from which to build MOAB mesh.

Returns:

Initialized model.

property geom_dimension_tag: TagSource

Geometry dimension tag.

property id_tag: TagSource

Global ID tag.

property name_tag: TagSource

Name tag.

classmethod read_file(h5m_file: str | bytes | PathLike) MOABModelSource

Initialize model from .h5m file.

Parameters:

h5m_file – File to load.

Returns:

Initialized model.

property root_set: uint64Source

Get handle of MOAB root entity set.

property surf_sense_tag: TagSource

Surface sense tag.

property tets: RangeSource

Get range of tetrahedral elements.

property triangles: RangeSource

Get range of triangle elements.

write(filename: str | bytes | PathLike)Source

Write MOAB model to .h5m, .vtk, or other file.

Parameters:

filename – Filename with format-appropriate extension.