Functions
improveMeshQuality.C File Reference

Performs point relocations in the mesh (smoothing) in order to improve quality measures. It does not make the mesh invalied. More...

Include dependency graph for improveMeshQuality.C:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Detailed Description

Performs point relocations in the mesh (smoothing) in order to improve quality measures. It does not make the mesh invalied.

Original source file improveMeshQuality.C

Definition in file improveMeshQuality.C.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

read the settings

load the mesh from disk

construct the smoother

lock cells in constrainedCellSet

find boundary faces which shall be locked

clear geometry information before volume smoothing

perform optimisation using the laplace smoother and

perform optimisation of worst quality faces

check the mesh again and untangl bad regions if any of them exist

Definition at line 38 of file improveMeshQuality.C.

References args, polyMeshGenCells::cells(), polyMeshGenCells::cellsInSubset(), polyMeshGenCells::cellSubsetIndex(), polyMeshGenCells::clearAddressingData(), Foam::endl(), forAll, Foam::Info, meshOptimizer::lockCellsInSubset(), meshOptimizer::optimizeMeshFV(), meshOptimizer::optimizeMeshFVBestQuality(), argList::options(), polyMeshGen::read(), Foam::readLabel(), Foam::readScalar(), cellListPMG::size(), meshOptimizer::untangleMeshFV(), argList::validArgs, argList::validOptions, and polyMeshGen::write().

Here is the call graph for this function: