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

Uploaded Python 3

File details

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

File metadata

  • Download URL: struphy-2.4.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a4848dadcaaee167241af8c863adf77f922f4d9e43d2302fac854929bf672fb5
MD5 c8963928eb248e11285369264caa9c84
BLAKE2b-256 b764a55152133e841b43f1e23040a77c2358de04409ce1a4e8206c8aa90b071b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: struphy-2.4.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8d38331ab7fef4932dd7bf8b9df4c0de19007d550a52b0680c29229ea24004
MD5 be784ceb9137aa3225d9b8529a8ba194
BLAKE2b-256 0becc56cf98cd28b3864ebedd411bed8e0f33725c60f2e6efa33bf742b1c8dfb

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