Skip to content

Adding propertylib and meshplotlib

Florian Zill requested to merge FZill/ogstools:plot_tools into main

Purpose

propertylib provides a base class to handle common mesh properties in a systematic way (e.g. temperature, pressure, displacement, ...). meshplotlib makes use of this and serves to provide an easy way to create high quality contourplots of 2D or 3D mesh data.

Features

propertylib

  • a base class to handle common mesh properties in a systematic way
  • a place to store often needed functions for transforming data before visualizing (propertylib/_mathfuncs.py, propertylib/_engfuncs.py)
  • unit conversion

meshplotlib

  • plotting of point or cell data
  • plotting mutliple meshes in a subplot grid
  • projections of arbitrarily oriented 2D meshes
  • isometric views of 3D meshes
  • show region/material boundaries (optionally with labels)
  • show element boundaries
  • streamlines of vector data
  • sensible default colormaps
  • nicely formatted colorbars
  • a temporary interface class for Meshes
  • a temporary interface class for MeshSeries (.pvd or .xdmf)

Application background

  • physical properties uses pint for unit conversion
  • meshplotlib makes heavy use of pyvista and meshplotlib

Categories

  • preprocessing
  • postprocessing
  • visualization
  • HPC
  • application specific scripts
  • add your own category...

Example

image image image

Edited by Florian Zill

Merge request reports

Loading