Skip to main content

Multi-model plasma physics package

Project description

Struphy - Structure-preserving hybrid codes

A Python package for plasma physics PDEs.

Join the Struphy mailing list and stay informed on updates.

Documentation

See the Struphy pages for details regarding installation, tutorials, use and development.

Quick install

Use a virtual environment:

python3 -m pip install --upgrade virtualenv
python3 -m venv struphy_env
source struphy_env/bin/activate

Install latest release:

pip install --no-cache-dir --upgrade struphy

Compile kernels:

struphy compile

Quick help:

struphy -h

In case of problems visit Trouble shooting.

Run tests from the command-line

Run available verification tests for Struphy models:

struphy test models --verification --fast --show-plots 

The corresponding parameter files are in struphy/io/inp/verification/. The corresponding diagnostics functions are in struphy/models/tests/verification.py. You can repeat the verification run of a single <model_name> by typing

struphy test <model_name> --verification --fast --show-plots 

Tutorial notebooks

Struphy tutorials are available in the form of Jupyter notebooks.

Reference paper

Contact

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

struphy-2.4.5.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

struphy-2.4.5-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

Details for the file struphy-2.4.5.tar.gz.

File metadata

  • Download URL: struphy-2.4.5.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for struphy-2.4.5.tar.gz
Algorithm Hash digest
SHA256 7d9332e120862c1c28328a171c26faad9618bcdc67554a6ffe6bc29f1ff6ba33
MD5 cbc34906746d1e6dcb56d080a64bd3c2
BLAKE2b-256 651bd1ff5aea5ca0ba61ac40dfbc5fdeffa6843b4f11750f411785b602f21491

See more details on using hashes here.

File details

Details for the file struphy-2.4.5-py3-none-any.whl.

File metadata

  • Download URL: struphy-2.4.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for struphy-2.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3789ce0ae1538ec6901463fab3b29e1191eba8b9b3c5454f04ed15c19350ec99
MD5 a6553ef6c5c427deb6cc39af2e57f24e
BLAKE2b-256 f0e7af74d45acda2bd5d8aca90fe1ff04471e351b09ea9004ad2a5c16dee278b

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