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.7.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

adios4dolfinx-0.7.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adios4dolfinx-0.7.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for adios4dolfinx-0.7.0.tar.gz
Algorithm Hash digest
SHA256 b6a0223287677c0594e8dfdaee93489a04fdccb18d5a410c2ebc2a2e0c997192
MD5 eab429d64ef1624f14a1d702f83f791c
BLAKE2b-256 f3daa5c15467a18db8d909b45f3bcfdb78996cea07c271ea024aa6abe7124030

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for adios4dolfinx-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fad32a0d4131a09bb58e466a1da3a4d60e616d9ee5a852da5ec5141a7af654a
MD5 a6fa40e4ee8f1e88d928c12aac02cbaa
BLAKE2b-256 a923a854495a28579862c547b170fedabd451242f0035a8faea7258f4eebda13

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