ocmw.design.gmshTools module

Tools for manupulating GMsh ASCII mesh files (*.msh).

get_mesh_nodes

Load mesh node locations from *.msh file.

isTag

Identify line in *.msh as starting with a tag

isScalar

Test if line in *.msh file contains a single value

mshBathy

Interpolate bathymetry onto mesh nodes and add to *.msh file.

Tools for manupulating GMsh ASCII mesh files.

Chris Old IES, School of Engineering, University of Edinburgh Aug 2023

ocmw.design.gmshTools.get_mesh_nodes(inmeshfile)[source]

Load mesh node locations from *.msh file.

ocmw.design.gmshTools.isTag(astr)[source]

Identify line in *.msh as starting with a tag

ocmw.design.gmshTools.isScalar(astr)[source]

Test if line in *.msh file contains a single value

ocmw.design.gmshTools.mshBathy(datapath, meshfile, bathyfile, newmeshfile, interp_radius, boffsets=[0.0, 0.0, 0.0])[source]

Interpolate bathymetry onto mesh nodes and add to *.msh file.