Functions
generateBoundaryLayers.C File Reference

Generates boundary layers in the existing mesh, based on the settings given in meshDict. It also performs necessary quality optimisation. More...

Include dependency graph for generateBoundaryLayers.C:

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[])
 

Detailed Description

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.

Function Documentation

◆ generateLayer()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ meshOptimisation()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ layerRefinement()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function: