Skip to main content

A bridge between pyhip and meshio

Project description

Yet another mesh I/O

yamio aims to bridge meshio and pyhip.

Both projects support various formats for representing unstructured grids. Nevertheless, they were unable to communicate without loss of information. yamio extends meshio by adding treatment to boundary patches through extension of the meshio.Mesh object and by defining a direct writer to pyhip main format (.mesh.xmf). Additionally, yamio adds support for Ensight's gold files.

Install with

pip install yamio

The basic usage is very similar to meshio.

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

Additionally to meshio, the following formats are available: .mesh.xmf (pyhip main format) and .geo.

Note: after you have a .mesh.xmf mesh, you can rely on pyhip to do additional mesh conversions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yamio-0.1.3.tar.gz (12.0 kB view hashes)

Uploaded source

Built Distribution

yamio-0.1.3-py3-none-any.whl (13.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page