Skip to main content

DOI VTUinterface codecov DOI

VTUinterface

VTUinterface is a python package for easy accessing VTU/PVD files as outputed by Finite Element software like OpenGeoSys. It uses the VTK python wrapper and linear interpolation between time steps and grid points to access any points in space and time within the simulation domain.

VTUinterface together with ogs6py can be viewed in action here:

IMAGE ALT TEXT HERE

0. Installation

Note: VTUinterface requires the vtk wrapper for python. Alternatively, a version based on MESHIO is also under development. clone the repository and use pip to install the package

# pip install [--user] https://github.com/joergbuchwald/VTUinterface/archive/refs/heads/master.zip

1. Documentation for VTUinterface

You can find the documentation under https://joergbuchwald.github.io/VTUinterface-doc/

2. Quick start

CAUTION: naming style of methods has changed (2021-05-20)

Basic Usage (python)

Although, a python package, VTUinterface is tested to work through PyCall under julia as well:

Basic Usage (julia)

Unittests can be run via

# python tests/test_vtuinterface.py

from the project root directory.

3. FAQ/Troubleshooting

Installation:

As the input data is triangulated with QHull for the linear interpolation it might fail at boundaries or if a wrong input dimension is given. Possible solutions:

  • In order for interpolation to work correctly providing the correct dimension (set via dim keyword) of the problem is crucial.
  • As the dim keyword specifies also the coordinates to use, VTUinterface assumes that dim=1 refers to the x coordinate and dim=2 implies that the problem lies in the xy-plane by default. This can be changed by specifying one_d_axis for one dimension or two_d_planenormal for two dimensions.
  • For some meshes it might help to adjust the number of points taken into account by the triangulation, which can be done using the nneighbors keyword. Default value is 20.
  • Especially along boundaries, linear interpolation with the QHULL method often fails, this can be resolved by using nearest neighbor interpolation.
  • Alternatively, you can change now the interpolation_backend from scipy to vtk and try out different interpolation kernels.

Release files for VTUinterface 0.704

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for VTUinterface 0.704
File Interpreter ABI Platform
VTUinterface-0.704-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / VTUinterface-0.704-py2.py3-none-any.whl

Download URL VTUinterface-0.704-py2.py3-none-any.whl
Size 12.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1f79f547bd89bc1d9d2ca9b27a0489ba71e3dd3399de9cb423fae19acec4e9db
BLAKE2b-256 checksum
How to use checksums
f1559bf087231ea3bdcd79fccb28da95d763e06589652a19b0ab8aef124c1f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.704 This release

1 release file

0.703

1 release file

0.701

1 release file

0.700

1 release file

0.692

1 release file

0.691

1 release file

0.681

1 release file

0.69

1 release file

0.67

1 release file

0.66

2 release files

0.65

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page