Skip to main content

Meshes and differential operators in Python

Project description

Build and tests codecov

pytristan is a Python package, based on NumPy, that provides tools for numerical solution of partial differential equations, such as

  • Multi-dimensional meshes
  • (coming soon) Multi-dimensional differential operators (DO), constructed using different approximation techniques, such as
    • Fourier spectral method
    • Chebyshev collocation method
    • Finite-differences method

Main features

Meshes and differential operators are NumPy arrays

The dedicated mesh's (Grid) and DO's (FourMat, ChebMat, FinDiffMat) objects subclass numpy.ndarray, benefitting from all of its powerful tools and allowing for convenient and intuitive usage.

Simple API to treat cases of special geometry

pytristan provides simplified interfaces to treat some specific cases, such as, for instance, polar geometry. Besides, there are pre-defined mapping functions in case the user aims to build a non-uniform mesh. It is also possible to define custom mappers and apply them as easily as the pre-defined ones.

For complete flexibility and control over the program, the user can opt for a more manual approach to construct the same objects using a generic interface.

Re-usage of once allocated objects

If it's necessary to re-use the same mesh or DO multiple times in the same program, pytristan spares a user the need to reconstruct them or repeatedly pass their variables between functions. Once allocated, they can be extracted from memory by calling a dedicated getter function with a simple interface anywhere in the same program.

Installation

You can install pytristan using pip:

pip install pytristan

Alternatively, the source code is available on GitHub.

Dependencies

License

MIT

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

pytristan-0.2.0a2.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

pytristan-0.2.0a2-py2.py3-none-any.whl (11.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytristan-0.2.0a2.tar.gz.

File metadata

  • Download URL: pytristan-0.2.0a2.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for pytristan-0.2.0a2.tar.gz
Algorithm Hash digest
SHA256 0ce45b601aee8cb672e2e781a3cb33e78c89a68da0c67d86009dd6bd2e3502bc
MD5 db8cf9be293d4caafd07718fdf51a43f
BLAKE2b-256 b7094945a4a7ae7be50d73f2d849a70ab0508d721adfb6bfa7bdc64dd00f22bd

See more details on using hashes here.

File details

Details for the file pytristan-0.2.0a2-py2.py3-none-any.whl.

File metadata

  • Download URL: pytristan-0.2.0a2-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for pytristan-0.2.0a2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2a6568380f67183538784926027f6aa70b543b9734c694e33db2f870c79c1c2c
MD5 894d6dca44a08a3f2801f9e6ed3019f1
BLAKE2b-256 7e9bc805de765bb973c159e5bb66fc68f7aa0ed1229db209fb96b8241eac4ac5

See more details on using hashes here.

Supported by

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