Metadata-Version: 2.4
Name: Ansyas
Version: 0.9.16
Summary: Ansyas automates the 3D simulation in Ansys Maxwell and Icepak of any magnetic component described in MAS language.
Project-URL: Homepage, https://we-online.com
Project-URL: Repository, https://github.com/WurthElektronik/Ansyas
Project-URL: Contact, https://www.linkedin.com/in/alfonso-martinez-de-la-torre/
Author-email: Alfonso Martinez <Alfonso.Martinez@we-online.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Requires-Dist: cadquery
Requires-Dist: numpy
Requires-Dist: openmagneticsvirtualbuilder
Requires-Dist: pyaedt
Requires-Dist: pymkf
Description-Content-Type: text/markdown

# Ansyas

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)

**Ansyas** automates 3D FEM simulation in **Ansys Maxwell** and **Icepak** for any magnetic component described in [MAS language](https://github.com/OpenMagnetics/MAS). Developed by [Wuerth Elektronik eiSos](https://www.we-online.com).

## Installation

```bash
pip install Ansyas
```

## Quick Start

```python
from Ansyas import AnsyasMasLoader
loader = AnsyasMasLoader()
loader.load("component.json")
loader.simulate()
```

## Testing

```bash
pytest tests/ -m "not ansys"   # unit tests
pytest tests/ --run-ansys       # integration tests
```

## Configuration

| Parameter | Default | Constraint |
|-----------|---------|------------|
| `number_segments_arcs` | 12 | >= 3 |
| `initial_mesh_configuration` | 5 | 1-5 |
| `maximum_error_percent` | 3.0 | > 0 |
| `maximum_passes` | 40 | >= 1 |
| `refinement_percent` | 30.0 | (0, 100] |
| `scale` | 1.0 | > 0 |

## License

MIT. Contact: Alfonso.Martinez@we-online.com
