Re-introduction of a simple plot function for Dolfinx.
Project description
pyvista4dolfinx
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:
- Fork the project.
- Create a new branch (git checkout -b feature/my-feature).
- Add your new feature or bugfix.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/my-feature).
- Open a merge request.
To publish:
- Bump version number in pyproject toml
- If dolfinx version change, then also update gitlab-ci image and push updated docker image to hub.
- Push
- Create git tag (
git tag <new_tag>) - Push tag (
git push origin --tags)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvista4dolfinx-0.10.0.tar.gz.
File metadata
- Download URL: pyvista4dolfinx-0.10.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7f4986bf6d094df5bfbfb62e0877b4eb4b36fb03798e24097621b1c0547358f
|
|
| MD5 |
25bee8d84a83f82d83ea26a452b659e3
|
|
| BLAKE2b-256 |
b833957e9e5cc21f12b26dcb30d72ccfb9f5480f103f2593b90dc51103f31abb
|
File details
Details for the file pyvista4dolfinx-0.10.0-py3-none-any.whl.
File metadata
- Download URL: pyvista4dolfinx-0.10.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c72cdc64dd0bd836455b0e11aeee3fc5214cb0d0371d9c6c1f19a307f1e442e
|
|
| MD5 |
7a61cf70d9e1efa987d03f5bc2a83f20
|
|
| BLAKE2b-256 |
aaf55fc493f4e30a3608b80e18892ec4001dbb9a254a820fe3f504c282f09406
|