Mondaic

salvus.mesh.layered_meshing.serialization.read_from_h5

salvus.mesh.layered_meshing.serialization.read_from_h5 salvus mesh layered_meshing serialization read_from_h5

Functionality to read meshing protocols, layered models, and materials from HDF5 files.

Functions

read_from_h5()

def read_from_h5(
    filename: pathlib.Path | str,
) -> MeshingProtocol | LayeredModel | Material: ...

Read a meshing protocol, layered model, or material from disk.

Parameters
  • filename pathlib.Path | str — Filename to read from.
Returns MeshingProtocol | LayeredModel | Material — The read object.

read_layered_model_from_h5()

def read_layered_model_from_h5(
    filename: pathlib.Path | str,
) -> LayeredModel: ...

Read a layered model from disk.

Parameters
  • filename pathlib.Path | str — Filename to read from.
Returns LayeredModel — The layered model.

read_material_from_h5()

def read_material_from_h5(filename: pathlib.Path | str) -> Material: ...

Read a material from disk.

Parameters
  • filename pathlib.Path | str — Filename to read from.
Returns Material — The material.

read_meshing_protocol_from_h5()

def read_meshing_protocol_from_h5(
    filename: pathlib.Path | str,
) -> MeshingProtocol: ...

Read a meshing protocol from disk.

Parameters
  • filename pathlib.Path | str — Filename to read from.
Returns MeshingProtocol — The meshing protocol.