Skip to content

lerouxl/Deformation_dataset

Repository files navigation

Deformation_dataset

Description


This script is used generate a dataset of random cubes with a physique deformation label. As this dataset is intended for an AI needing a fix number of edges, all generated mesh will have the same number of edges. The deformation is computed using Fenics and is made to look like additive manufacturing deformation.

Use:

This code is using the fenics library, if you are on windows, I recommand you to use the fenics docker images.

  1. Install fenics (Or download the docker image)
  2. Clone this repository
  3. Install the required library python3 -m pip install -r requirements.txt
  4. Edit dataset_generator.py to have the dataset as you want
  5. Launch dataset_generator.py

Examples

Here is an example of a mesh and his deformation. The vtk files can be opened using Paraview. Glyph Glyph

Thanks

Many thanks to Dr Pierre Kerfriden for coding the inherent strain code deforming the mesh. Many thanks to Pierre L for his stl to msh code

About

Code used during my thesis to apply a simple inherent strain deformation to meshes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published