phipict.meshing.read_blockmeshdict
- phipict.meshing.read_blockmeshdict(path: str | Path, ndims: int | None = None, rel_tol: float = 0.0001) Mesh[source]
Read a blockMeshDict as a
Mesh.- Parameters:
path (str or pathlib.Path) – The blockMeshDict.
ndims (int or None, optional) – 2 or 3; None reads meshes with one cell between empty patches as 2D.
rel_tol (float, optional) – Face matching tolerance, see
Mesh. Default is 1e-4.
- Returns:
The mesh with its connections, periodic (cyclic) connections and patches.
- Return type:
- Raises:
FoamParseError – If the file uses unsupported features.