Skip to main content

Re-introduction of a simple plot function for Dolfinx.

Project description

pyvista4dolfinx

build status Coverage MIT License PyPI Sphinx black

Re-introduction of a simple plot function for Dolfinx. Documentation can be found here.

Description

FEniCSx' design principles prioritize parallel efficiency, and (in an effort to avoid opaque performance pitfalls) favor fine-grained control over a high-level interface. Consequently, simple, general-purpose plotting routines are no-longer in the standard library. Instead users are deferred to pyvista for their plotting needs. Unfortunately, quite a bit of boiler-plate code is required to interface dolfinx and pyvista. At a prototyping stage one often desires quick-and-dirty visualization with a simple interface. To facilitate this, pyvista4dolfinx provides a single plot function that can be used to plot most of dolfinx visualizable data-structures; scalar- and vector-valued Function, Mesh, FacetMarker, and even integration Measure. The function returns a pyvista.Plotter instance, such that the user still has full access to pyvista's full range of capabilities.

Installation

This library is available through PyPi, to install simply run the following commands:

pip install pyvista4dolfinx

Although you might have to be mindfull of the version. pyvista4dolfinx maintains the same version numbering as dolfinx. So, if you're not using the latest dolfinx release, you might have to install a particular tagged version:

pip install pyvista4dolfinx==0.9.2

Contributing

Feel free to make requests through opening an issue, or, better yet, if you want to contribute directly:

  1. Fork the project.
  2. Create a new branch (git checkout -b feature/my-feature).
  3. Add your new feature or bugfix.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature/my-feature).
  6. Open a merge request.

To publish:

  1. Bump version number in pyproject toml
  2. If dolfinx version change, then also update gitlab-ci image and push updated docker image pyvista4dolfinx:v___-dev to hub.
  3. Push
  4. Create git tag (git tag <new_tag>)
  5. Push tag (git push origin --tags)
  6. If dolfinx version change, then also build and push docker image pyvista4dolfinx:v___

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

pyvista4dolfinx-0.10.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

pyvista4dolfinx-0.10.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pyvista4dolfinx-0.10.1.tar.gz.

File metadata

  • Download URL: pyvista4dolfinx-0.10.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyvista4dolfinx-0.10.1.tar.gz
Algorithm Hash digest
SHA256 c4bab0b1733f48d96a61829611d3bb1545ee4dd37388c757cdfa9ad8503b67a9
MD5 9e0bcdc1f5fbb827e3bf2193e147e209
BLAKE2b-256 a0239b7f496a81a127ed50e0076e164020f27b1d42d0f01e5dbc8cc24e9db3ed

See more details on using hashes here.

File details

Details for the file pyvista4dolfinx-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyvista4dolfinx-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32df47c47544c0aebbd900e1bf2c1ed050376c5329cda03a14e5b36efa5e390c
MD5 88eaff7064eb38e10f4783fd2863ec0e
BLAKE2b-256 cf0f7a167b22fbcb8126924d8b736ef4e3070dba68d0d50399a7c9965d8dd12e

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