Metadata-Version: 2.1
Name: yamio
Version: 0.1.3
Summary: A bridge between pyhip and meshio
Home-page: https://github.com/lpereira95/yamio
Author: L. F. Pereira
Author-email: luisfgpereira95@gmail.com
License: UNKNOWN
Project-URL: Homepage, https://github.com/lpereira95/yamio
Project-URL: Bug Tracker, https://github.com/lpereira95/yamio/issues
Keywords: mesh,file formats,scientific computing,finite elements
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: vis
License-File: LICENSE

Yet another mesh I/O
====================

`yamio` aims to bridge [`meshio`](https://pypi.org/project/meshio/) and [`pyhip`](https://pypi.org/project/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](https://dav.lbl.gov/archive/NERSC/Software/ensight/doc/Manuals/UserManual.pdf).



Install with


```bash
pip install yamio
```


The basic usage is very similar to `meshio`. 

To read a mesh

```python
import yamio

mesh = yamio.read(filename)  # extension inferred
```

To write a mesh

```python
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.


