stellarmesh.DAGMCModel¶
- class DAGMCModel(core_or_file: str | bytes | PathLike | Core)Source¶
DAGMC Model.
- create_group(group_name: str) DAGMCGroupSource¶
Create new group.
- Parameters:
group_name – Name assigned to the new group
- Returns:
Group object.
- create_surface(global_id: int | None = None) DAGMCSurfaceSource¶
Create new surface.
- Parameters:
global_id – Global ID.
- Returns:
Surface object.
- create_volume(global_id: int | None = None) DAGMCVolumeSource¶
Create new volume.
- Parameters:
global_id – Global ID.
- Returns:
Volume object.
- classmethod from_mesh(mesh: Mesh) DAGMCModelSource¶
Compose DAGMC MOAB .h5m file from mesh.
- Parameters:
mesh – Mesh from which to build DAGMC geometry.
- classmethod make_from_mesh(mesh: Mesh) DAGMCModelSource¶
Compose DAGMC MOAB .h5m file from mesh.
- Parameters:
mesh – Mesh from which to build DAGMC geometry.
- static make_watertight(input_filename: str | bytes | PathLike, output_filename: str | bytes | PathLike, binary_path: str = 'make_watertight')Source¶
Make mesh watertight.
- Parameters:
input_filename – Input .h5m filename.
output_filename – Output watertight .h5m filename.
binary_path – Path to make_watertight or default to find in path. Defaults to
"make_watertight".