This is a very simple OpenFOAM utility for converting a 2D mesh to axisymmetric.
It is a modification of the flattenMesh utility distributed with OpenFOAM.
The supplied examples are a modification of the case that comes with the more elaborate utility makeAxialMesh.
One supplied example uses wedgePlease
to convert a blockMesh to an OpenFOAM axialMesh.
The other example uses it to convert a fluentMesh.
The supplied examples deal with the associated mesh cleanup (collapse 0-length edges, remove 0-face patches) which is the same as in the case of makeAxialMesh
.
Last changes were made using OpenFOAM v7.0.
This software is not part of OpenFOAM. See the OpenFOAM website openfoam.org, unofficial wiki openfoamwiki.net and the community forum cfd-online.com.
An OpenFOAM installation is required to run the code.
Run Allwmake
in the utility directory to compile it.
Run Allmesh
in the caseBM
or caseFM
directory to convert the mesh. Then run paraFoam
in the case directory to view the results.
- Assumes a 2D mesh in the XY plane.
- The Y axis becomes the axis of symmetry.
- The command
wedgePlease -angle 5
reshapes the mesh points to form the wedge. - For older versions of OpenFOAM git-checkout the of3 tag.
Any feedback is apreciated - krebeljk()gmail.com.
- Kristjan Krebelj
This project is licensed under the GPU License - see the LICENSE.md file for details.
- The work was supported by the Laboratory for Numerical Modelling and Simulation - LNMS.