krebeljk / wedgePlease

A very simple OpenFOAM utility to convert a 2D mesh to axisymmetric.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wedgePlease

wedgePlease

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.

Getting Started

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.

Functionality

  • 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.

Feedback

Any feedback is apreciated - krebeljk()gmail.com.

Author

  • Kristjan Krebelj

License

This project is licensed under the GPU License - see the LICENSE.md file for details.

Acknowledgments

About

A very simple OpenFOAM utility to convert a 2D mesh to axisymmetric.

License:GNU General Public License v3.0


Languages

Language:C++ 56.4%Language:C 29.8%Language:Shell 13.8%