Go to the documentation of this file.
52 if( meshDict.
found(
"boundaryLayers") )
56 if( bndLayers.
found(
"nLayers") )
63 else if( bndLayers.
found(
"patchBoundaryLayers") )
66 bndLayers.
subDict(
"patchBoundaryLayers");
69 forAll(createLayers, patchI)
92 if( meshDict.
isDict(
"boundaryLayers") )
104 int main(
int argc,
char *argv[])
127 bool is2DLayer(
false);
void optimizeMeshFV(const label numLaplaceIterations=5, const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2)
final optimisation
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void refineLayers()
performs refinement based on the given settings
void optimizeLowQualityFaces(const label maxNumIterations=10)
#define forAll(list, i)
Loop across all elements in list.
void untangleBoundaryLayer()
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void meshOptimisation(polyMeshGen &mesh)
bool isDict(const word &) const
Check if entry is a sub-dictionary.
int main(int argc, char *argv[])
const Foam::HashTable< string > & options() const
Return options.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
void addLayerForPatch(const label patchLabel)
create a bnd layer for a given patch
void generateLayer(polyMeshGen &mesh, const dictionary &meshDict, const bool layers2D)
void addLayerForAllPatches()
add layers for all patches
static HashTable< string > validOptions
A list of valid options.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void untangleMeshFV(const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2, const bool relaxedCheck=false)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void optimizeBoundaryLayer(const bool addBufferLayer=true)
label readLabel(Istream &is)
wordList toc() const
Return the table of contents.
static void readSettings(const dictionary &, refineBoundaryLayers &)
read the settings from dictionary
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Foam::argList args(argc, argv)
void layerRefinement(polyMeshGen &mesh, const dictionary &meshDict)