Metadata-Version: 2.4
Name: mystran
Version: 18.0.0
Summary: MYSTRAN finite element analysis solver, pre-built for Python
Project-URL: Homepage, https://www.mystran.com
Project-URL: Repository, https://github.com/MystranSolver/MYSTRANSolver
Project-URL: Tracker, https://github.com/MystranSolver/MYSTRANSolver/issues
License-Expression: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Fortran
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# mystran

Pre-built [MYSTRAN](https://www.mystran.com) finite element analysis solver,
packaged for easy installation via pip/uv.

MYSTRAN is an open-source structural analysis program compatible with NASTRAN
input files. This package bundles the pre-built executable so you don't need a
Fortran compiler.

## Installation

```bash
uv add mystran
# or
pip install mystran
```

## Usage

```python
import mystran

# Get the path to the mystran executable
exe = mystran.get_mystran_binary()
print(exe)  # e.g. /path/to/.venv/lib/python3.13/site-packages/mystran/_data/bin/mystran
```

Then use the executable path to run MYSTRAN:

```python
import subprocess
result = subprocess.run([str(exe), "model.dat"], capture_output=True, text=True)
```

Or from the command line, you can find the binary location:

```bash
python -c "import mystran; print(mystran.get_mystran_binary())"
```

## Supported Platforms

- Linux x86_64 (manylinux)
- Windows x86_64

## License

MYSTRAN is licensed under the [MIT License](https://github.com/MystranSolver/MYSTRANSolver/blob/main/LICENSE.txt).

This packaging project is also MIT licensed.

## About MYSTRAN

MYSTRAN is developed by Dr. Bill Case and contributors.
See the [MYSTRAN website](https://www.mystran.com) and
[GitHub repository](https://github.com/MystranSolver/MYSTRANSolver) for more information.
