Skip to main content

MYSTRAN finite element analysis solver, pre-built for Python

Project description

mystran

Pre-built MYSTRAN 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

uv add mystran
# or
pip install mystran

Usage

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:

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:

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.

This packaging project is also MIT licensed.

About MYSTRAN

MYSTRAN is developed by Dr. Bill Case and contributors. See the MYSTRAN website and GitHub repository for more information.

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

mystran-18.0.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file mystran-18.0.0.tar.gz.

File metadata

  • Download URL: mystran-18.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.6

File hashes

Hashes for mystran-18.0.0.tar.gz
Algorithm Hash digest
SHA256 203b931dd372d24bc20817fbfaf2c3353180945b82ef1dec9cca095fd4b5094e
MD5 c95e30df6077989e8f6f9943cf96150e
BLAKE2b-256 73fbf84865d84a9921cfe797e7898b26287f6c7c939a6b1e9bc660283026ab16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page