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:
objectLoad coordinates and connectivity without simulation fields.
- Parameters:
load_dir (
Path) – Directory containing the mesh files.coords_file (
str | Path) – Coordinate file name relative toload_diror 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 isNone.enforce_convention (
bool, optional) – Convert supported legacy connectivity into the common PyVale mesh convention, by defaultTrue.