A bridge between pyhip and meshio
Yet another mesh I/O
Both projects support various formats for representing unstructured grids. Nevertheless, they were unable to communicate without loss of information.
meshio by adding treatment to boundary patches through extension of the
meshio.Mesh object and by defining a direct writer to
pyhip main format (
yamio adds support for Ensight's gold files.
pip install yamio
The basic usage is very similar to
To read a mesh
import yamio mesh = yamio.read(filename) # extension inferred
To write a mesh
import yamio mesh = yamio.write(filename, mesh) # extension inferred
meshio, the following formats are available:
pyhip main format) and
Note: after you have a
.mesh.xmf mesh, you can rely on
pyhip to do additional mesh conversions.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.