Metadata-Version: 2.4
Name: mesh_converter
Version: 0.1.0
Summary: Mesh converter from Exodus2 to XDMF
Author-email: "Jørgen S. Dokken" <dokken@simula.no>
License: MIT License
        
        Copyright (c) 2024 Jørgen Schartum Dokken
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: adios2
Requires-Dist: netCDF4
Requires-Dist: h5py
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: coverage; extra == "test"
Provides-Extra: dev
Requires-Dist: pdbpp; extra == "dev"
Requires-Dist: ipython; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Provides-Extra: all
Dynamic: license-file

# A mesh converter from EXODUS 2 to XDMF

Supports reading Facet-markers and Cell-markers from EXODUS 2 into an XDMFFile that can be read by DOLFINx.
Supports both facet blocks and side sets from cubit

## Installation

Install the package by calling

```bash
python3 -m pip install .
```

The package requires ADIOS2 for writing data.

### Conda

If you use conda as an environment, please install all dependencies with

```bash
conda install -c conda-forge adios2=*=mpi_* mpich mpi4py netcdf4
```

and then install this package with

```bash
python3 -m pip install -e . --no-deps
```

## Example

```python
from mesh_converter import read_exodus2_data, xdmf

in_mesh = read_exodus2_data("test_mesh_2_vols_blocks_and_sidesets.e")
xdmf.write(in_mesh, "out_mesh2.xdmf")
```

or using the command line interface:

```bash
mesh-converter -i input.e -o output.xdmf
```
