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.
| Name | Description & Links | PyGeM used classes | Input geometries |
|---|---|---|---|
| Tutorial 1 | Free-form deformation to morph a spherical mesh. Links: .ipynb, .py, .html | pygem.FFD |
numpy.ndarray |
| Tutorial 2 | Free-form deformation to morph a cylinder. Links: .ipynb, .py, .html | pygem.cad.FFD |
IGES file |
| Tutorial 3 | Radial basis function to morph a cubic mesh. Links: .ipynb, .py, .html | pygem.RBF |
numpy.ndarray |
| Tutorial 4 | Inverse distance weighting to deform a cubic mesh. Links: .ipynb, .py, .html | pygem.IDW |
numpy.ndarray |
| Tutorial 5 | Free-form deformation to deform an object in a file. Links: .ipynb, .py, .html | pygem.FFD |
.vtp file, .stl file |
| Tutorial 6 | Interpolation of an OpenFOAM mesh after a deformation. Links: .ipynb, .py, .html | pygem.FFD/RBF |
OpenFOAM |
| Tutorial 7 | Constrained free-form deformation. Links: .ipynb, .py, .html | pygem.CFFD/BFFD/VFFD |
.stl file |
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.
.ipynb This tutorial shows how to deform a UNV file with prescribed continuity using Free Form Deformation.
.ipynb, .py This tutorial demonstrates how to deform an LS-Dyna K file with prescribed continuity using Free Form Deformation.
.ipynb, .py This tutorial demonstrates how to deform a Kratos Multiphysics MDPA file with prescribed continuity using Free Form Deformation.
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!