Skip to content

Commit 2caeaa6

Browse files
committed
tutorial 6: mesh deformation using FFD and RBF
1 parent fb6bbbd commit 2caeaa6

File tree

12 files changed

+881716
-0
lines changed

12 files changed

+881716
-0
lines changed

docs/source/_tutorials/tutorial-6-ffd-rbf.html

Lines changed: 14726 additions & 0 deletions
Large diffs are not rendered by default.

tutorials/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ In this folder we collect several useful tutorials in order to understand the pr
1010
| Tutorial3 [[.ipynb](https://github.com/mathLab/PyGeM/blob/master/tutorials/tutorial3/tutorial-3-rbf.ipynb), [.py](https://github.com/mathLab/PyGeM/blob/master/tutorials/tutorial3/tutorial-3-rbf.py), [.html](http://mathlab.github.io/PyGeM/tutorial-3-rbf.html)] | radial basis function to morph a cubic mesh | `pygem.RBF` | `numpy.ndarray` |
1111
| Tutorial4 [[.ipynb](https://github.com/mathLab/PyGeM/blob/master/tutorials/tutorial4/tutorial-4-idw.ipynb), [.py](https://github.com/mathLab/PyGeM/blob/master/tutorials/tutorial4/tutorial-4-idw.py), [.html](http://mathlab.github.io/PyGeM/tutorial-4-idw.html)] | inverse distance weighting to deform a cubic mesh | `pygem.IDW` | `numpy.ndarray` |
1212
| Tutorial5 [[.ipynb](https://github.com/mathLab/PyGeM/blob/master/tutorials/tutorial5/tutorial-5-file.ipynb), [.py](https://github.com/mathLab/PyGeM/blob/master/tutorials/tutorial5/tutorial-5-file.py), [.html](http://mathlab.github.io/PyGeM/tutorial-5-file.html)] | free-form deformation to deform an object contained to file | `pygem.FFD` | `.vtp` file, `.stl` file |
13+
| Tutorial6 [[.ipynb](https://github.com/fAndreuzzi/PyGeM/blob/master/tutorials/tutorial6/tutorial-6-ffd-rbf.ipynb), [.py](https://github.com/fAndreuzzi/PyGeM/blob/master/tutorials/tutorial6/tutorial-6-ffd-rbf.py), [.html](http://mathlab.github.io/PyGeM/tutorial-6-ffd-rbf.html)] | interpolation of an OpenFOAM mesh after a deformation | `pygem.FFD/RBF` | OpenFOAM |
1314

1415

1516

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 8
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class polyBoundaryMesh;
13+
location "constant/polyMesh";
14+
object boundary;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
6
19+
(
20+
inlet
21+
{
22+
type patch;
23+
nFaces 100;
24+
startFace 143280;
25+
}
26+
outlet
27+
{
28+
type patch;
29+
nFaces 100;
30+
startFace 143380;
31+
}
32+
top
33+
{
34+
type wall;
35+
inGroups List<word> 1(wall);
36+
nFaces 420;
37+
startFace 143480;
38+
}
39+
bottom
40+
{
41+
type wall;
42+
inGroups List<word> 1(wall);
43+
nFaces 420;
44+
startFace 143900;
45+
}
46+
obstacle
47+
{
48+
type wall;
49+
inGroups List<word> 1(wall);
50+
nFaces 400;
51+
startFace 144320;
52+
}
53+
frontAndBack
54+
{
55+
type empty;
56+
inGroups List<word> 1(empty);
57+
nFaces 144000;
58+
startFace 144720;
59+
}
60+
)
61+
62+
// ************************************************************************* //

0 commit comments

Comments
 (0)