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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for struphy-2.5.0.tar.gz
Algorithm Hash digest
SHA256 ab883d4c26d87b5f97032d360333d8168b81de5d889180ca4db6c0df923e3fa8
MD5 53ca3a44eebe9e30239045ae25eda048
BLAKE2b-256 4b4fcb54bde1ce54498277cc1df3b1e40bb268b7f32923992b1ab949b9536d3c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for struphy-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c16f272b963615ab4ce95c671c63dec21a951677f26b628d2e058d0c123c38
MD5 8da85256da82099394cf4497f81c019c
BLAKE2b-256 8d7cb6870934d4e7a453310b6de32f57c81324ddf5a925ce7b4ecaa9687bc52b

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