pyvale.dataio.meshloader module

Load mesh coordinates and connectivity into simulation data.

class MeshLoader(load_dir, coords_file, connect_files, load_opts=None, enforce_convention=True)[source]

Bases: object

Load coordinates and connectivity without simulation fields.

Parameters:
  • load_dir (Path) – Directory containing the mesh files.

  • coords_file (str | Path) – Coordinate file name relative to load_dir or its complete path.

  • connect_files (str | list[str]) – Connectivity file pattern or an explicit list of file names.

  • load_opts (SimLoadOpts | None, optional) – Text and array loading options. Default options are created when this argument is None.

  • enforce_convention (bool, optional) – Convert supported legacy connectivity into the common PyVale mesh convention, by default True.

__init__(load_dir, coords_file, connect_files, load_opts=None, enforce_convention=True)[source]
load_mesh()[source]

Load and return mesh coordinates and connectivity.

Returns:

SimData – Simulation data containing only coordinates and connectivity.