Generates boundary layers in the existing mesh, based on the settings given in meshDict. It also performs necessary quality optimisation. More...
Go to the source code of this file.
Functions | |
void | generateLayer (polyMeshGen &mesh, const dictionary &meshDict, const bool layers2D) |
void | meshOptimisation (polyMeshGen &mesh) |
void | layerRefinement (polyMeshGen &mesh, const dictionary &meshDict) |
int | main (int argc, char *argv[]) |
Generates boundary layers in the existing mesh, based on the settings given in meshDict. It also performs necessary quality optimisation.
Original source file generateBoundaryLayers.C
Definition in file generateBoundaryLayers.C.
void generateLayer | ( | polyMeshGen & | mesh, |
const dictionary & | meshDict, | ||
const bool | layers2D | ||
) |
Definition at line 41 of file generateBoundaryLayers.C.
References boundaryLayers::activate2DMode(), boundaryLayers::addLayerForAllPatches(), boundaryLayers::addLayerForPatch(), forAll, dictionary::found(), dictionary::lookup(), mesh, Foam::readLabel(), dictionary::subDict(), and dictionary::toc().
Referenced by main().
void meshOptimisation | ( | polyMeshGen & | mesh | ) |
Definition at line 79 of file generateBoundaryLayers.C.
References mesh, meshOptimizer::optimizeBoundaryLayer(), meshOptimizer::optimizeLowQualityFaces(), meshOptimizer::optimizeMeshFV(), and meshOptimizer::untangleMeshFV().
Referenced by main().
void layerRefinement | ( | polyMeshGen & | mesh, |
const dictionary & | meshDict | ||
) |
Definition at line 90 of file generateBoundaryLayers.C.
References dictionary::isDict(), mesh, refineBoundaryLayers::readSettings(), refineBoundaryLayers::refineLayers(), and meshOptimizer::untangleBoundaryLayer().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
load the mesh from disk
generate the initial boundary layer
optimisation of mesh quality
perform layer refinement
Definition at line 104 of file generateBoundaryLayers.C.
References args, Foam::endl(), generateLayer(), Foam::Info, layerRefinement(), meshOptimisation(), IOobject::MUST_READ, IOobject::NO_WRITE, argList::options(), polyMeshGen::read(), argList::validOptions, and polyMeshGen::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.