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.4.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.4-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: struphy-2.4.4.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.4.tar.gz
Algorithm Hash digest
SHA256 25a24285d108dd21215e56f5464dacc6686f75046837a590a201c53610eaa124
MD5 ecc9c986ba7c88d8d0ba1fb4d5903521
BLAKE2b-256 f5fd1e9d7981891f8513defcf27e36d581ecc1f14a58e074d2975950f2141008

See more details on using hashes here.

File details

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

File metadata

  • Download URL: struphy-2.4.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54e5a3fd835be1bd7bb8e9badc940b8243c07b8e3628c570bcc9e6f2d6e051ec
MD5 fc6323193714c74cc06865f99ab4f62c
BLAKE2b-256 990f13cddf94ec64d7f57ad875a87697818e25ff803d87f44681e813c5caacfb

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