Skip to main content

Wrappers for reading/writing DOLFINx meshes/functions with ADIOS2

Project description

ADIOS2Wrappers for DOLFINx

MIT Read Latest Documentation

This is an experimental library for checkpoint with DOLFINx using ADIOS2.

Docker

ADIOS2 is installed in the official DOLFINx containers. To get access to the Python interface of ADIOS2 (inside dolfinx docker images), you might have to extend your Python-path:

docker run -ti -v $(pwd):/root/shared -w /root/shared --name=dolfinx-checkpoint ghcr.io/fenics/dolfinx/dolfinx:nightly
export PYTHONPATH=/usr/local/lib/python3/dist-packages:$PYTHONPATH

Conda

To use with conda (DOLFINx release v0.6.1 works with v0.1.0 of ADIOS4DOLFINx)

conda create -n dolfinx-checkpoint python=3.10
conda activate dolfinx-checkpoint
conda install -c conda-forge fenics-dolfinx pip adios2 numba
python3 -m pip install git+https://github.com/jorgensd/adios4dolfinx@v0.1.0

Long term plan

The long term plan is to get this library merged into DOLFINx (rewritten in C++ with appropriate Python-bindings).


Functionality

DOLFINx

  • Reading and writing meshes, using adios4dolfinx.read/write_mesh
  • Reading checkpoints for any element (serial and parallel, one checkpoint per file). Use adios4dolfinx.read/write_function.

Legacy DOLFIN

Only checkpoints for Lagrange or DG functions are supported from legacy DOLFIN

  • Reading meshes from the DOLFIN HDF5File-format
  • Reading checkpoints from the DOLFIN HDF5File-format (one checkpoint per file only)
  • Reading checkpoints from the DOLFIN XDMFFile-format (one checkpoint per file only, and only uses the .h5 file)

See the API for more information.


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

adios4dolfinx-0.4.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

adios4dolfinx-0.4.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file adios4dolfinx-0.4.0.tar.gz.

File metadata

  • Download URL: adios4dolfinx-0.4.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for adios4dolfinx-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c2676b8774f867f449a17d04d1d1710808f857ae73b3200180f6164631609be9
MD5 4217b2cdf4e615d3ee5c27e90562b321
BLAKE2b-256 f29dc463d31eff990ee883d0dd65140c85ee2d399ff5ce99d6d0a580b9732ed4

See more details on using hashes here.

Provenance

File details

Details for the file adios4dolfinx-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for adios4dolfinx-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a101006762ff4aaefc85915f80a811720c68879838d54159bb00e37f70033d
MD5 566ce0056e0026159dd4eb5642f0b9c1
BLAKE2b-256 a3d27a2958004b2d7838fb1fb1d0c5dfb5bcb703d77ab125d01b57d846bebaf1

See more details on using hashes here.

Provenance

Supported by

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