Tutorials

November 28, 2025 ยท View on GitHub

In this folder we collect several useful tutorials to understand the principles and the potential of PyGeM. Please read the following table for details about the tutorials.

NameDescription & LinksPyGeM used classesInput geometries
Tutorial 1Free-form deformation to morph a spherical mesh. Links: .ipynb, .py, .htmlpygem.FFDnumpy.ndarray
Tutorial 2Free-form deformation to morph a cylinder. Links: .ipynb, .py, .htmlpygem.cad.FFDIGES file
Tutorial 3Radial basis function to morph a cubic mesh. Links: .ipynb, .py, .htmlpygem.RBFnumpy.ndarray
Tutorial 4Inverse distance weighting to deform a cubic mesh. Links: .ipynb, .py, .htmlpygem.IDWnumpy.ndarray
Tutorial 5Free-form deformation to deform an object in a file. Links: .ipynb, .py, .htmlpygem.FFD.vtp file, .stl file
Tutorial 6Interpolation of an OpenFOAM mesh after a deformation. Links: .ipynb, .py, .htmlpygem.FFD/RBFOpenFOAM
Tutorial 7Constrained free-form deformation. Links: .ipynb, .py, .htmlpygem.CFFD/BFFD/VFFD.stl file

Old Version Tutorials

Below are the tutorials from previous releases. We will update them for the latest version of PyGeM. Meanwhile, they may still be useful for users.

Tutorial 3: Deforming a UNV File

.ipynb This tutorial shows how to deform a UNV file with prescribed continuity using Free Form Deformation.

Tutorial 6: Deforming LS-Dyna K File

.ipynb, .py This tutorial demonstrates how to deform an LS-Dyna K file with prescribed continuity using Free Form Deformation.

Tutorial 7: Deforming Kratos MDPA File

.ipynb, .py This tutorial demonstrates how to deform a Kratos Multiphysics MDPA file with prescribed continuity using Free Form Deformation.

More to Come

We plan to add more tutorials. If you want to contribute a notebook for a feature not yet covered, we will be happy to help and support you in editing!