Welcome to PyGeM’s documentation!

_images/logo_PyGeM.png

Python utilities for geometrical morphing.

Description

PyGeM is a python library using Free Form Deformation, Radial Basis Functions and Inverse Distance Weighting to parametrize and morph complex geometries. It is ideally suited for actual industrial problems, since it allows to handle:

  • Computer Aided Design files (in .iges and .stl formats)
  • Mesh files (in .unv and OpenFOAM formats)
  • Output files (in .vtk format)
  • LS-Dyna Keyword files (.k format)

By now, it has been used with meshes with up to 14 milions of cells. Try with more and more complicated input files!

Installation

To install the pygem package, open the terminal/command line and clone the repository with the command

git clone https://github.com/mathLab/PyGeM

For a complete list of dependencies to be installed via conda please refer to the official repository. After installing the dependencies you can navigate into the PyGeM folder (where the setup.py file is located) and run the command

python setup.py install

You should now be able to import the pygem library in Python scripts and interpreters with the command import pygem.

Tutorials

We made some tutorial examples:

  • Tutorial 1 shows how to deal with stl files and FFD.
  • Turorial 2 shows how to deal with iges files and FFD.
  • Turorial 3 shows how to deal with unv files and how to set the desired continuity to the geometry using FFD.
  • Turorial 4 shows how to perform RBF interpolation.
  • Turorial 5 shows how to perform IDW interpolation.

Indices and tables