Go to the documentation of this file.
124 if( bndLayers.
found(
"nLayers") )
131 else if( bndLayers.
found(
"patchBoundaryLayers") )
134 bndLayers.
subDict(
"patchBoundaryLayers");
137 forAll(createLayers, patchI)
146 bool enforceConstraints(
false);
154 if( enforceConstraints )
289 catch(
const std::string& message)
297 "void tetMeshGenerator::generateMesh()"
298 ) <<
"Meshing process terminated!" <<
endl;
309 modSurfacePtr_(NULL),
350 const triSurf* surfaceWithPatches =
void optimizeMeshFV(const label numLaplaceIterations=5, const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2)
final optimisation
bool runCurrentStep(const word &)
shall the process run the current step
void createTetMesh()
create cartesian mesh
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void refineLayers()
performs refinement based on the given settings
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void pointsInBndLayer(labelLongList &)
provide the list of points in the boundary layer
void optimizeLowQualityFaces(const label maxNumIterations=10)
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
void optimiseFinalMesh()
mesh optimisation
void untangleBoundaryLayer()
Template functions to aid in the implementation of demand driven data.
void lockPoints(const labelListType &)
lock points which shall not be moved
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
void generateMesh()
generate mesh
const Time & runTime_
reference to Time
Ostream & endl(Ostream &os)
Add newline and flush stream.
label size() const
Size of the active part of the list.
void replaceBoundaries()
replace boundaries
void optimiseMeshSurface()
optimise surface mesh
const edgeLongList & featureEdges() const
access to feature edges
void refBoundaryLayers()
refine boundary layers
bool isDict(const word &) const
Check if entry is a sub-dictionary.
void writeMesh() const
write the mesh
void deleteDemandDrivenData(DataPtr &dataPtr)
bool untangleSurface(const labelLongList &activeBoundaryPoints, const label nAdditionalLayers=0)
runs a surface smoother on the selected boundary points
void renumberMesh()
renumber the mesh
void extractPatches()
capture edges and corners
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 clearAddressingData() const
clear addressing data
const triSurf * surfaceWithPatches(IOdictionary *meshDictPtr=NULL, const word prefix="patch_", const bool forceOverwrite=false) const
store regions into subsets with a given prefix
void createOctreeWithRefinedBoundary(const direction maxLevel, const label nTrianglesInLeaf=15)
IOdictionary meshDict_
IOdictionary containing information about cell sizes, etc..
void workflowCompleted()
set the workflow completed flag
void addLayerForAllPatches()
add layers for all patches
void createOctreeBoxes()
create octree boxes
const dictionary & metaData() const
return a constant reference to metaDict
A list of keyword definitions, which are a keyword followed by any number of values (e....
void enforceConstraints(const word subsetName="badPoints")
void renumberMesh()
reorder the cells and faces to reduce the matrix bandwidth
void optimizeSurface(const label nIterations=5)
optimize boundary nodes after boundary regions are created
void revertGeometryModification()
revert modification of coorinates
tetMeshGenerator(const tetMeshGenerator &)
Disallow default bitwise copy construct.
const triSurf * surfacePtr_
pointer to the surface
void untangleMeshFV(const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2, const bool relaxedCheck=false)
fileName path() const
Return path.
const triSurf * modifyGeometry() const
modify coordinates
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)
workflowControls controller_
workflow controller
label readLabel(Istream &is)
void optimizeSurface(const meshOctree &)
smooth surface vertices
void surfacePreparation()
prepare mesh surface
void mapVerticesOntoSurface()
void projectSurfaceAfterBackScaling()
re-project points back on the surface mesh after back-scaling
meshOctree * octreePtr_
pointer to the octree
void mapMeshToSurface()
map mesh to the surface and untangle surface
#define WarningIn(functionName)
Report a warning using Foam::Warning.
wordList toc() const
Return the table of contents.
static void readSettings(const dictionary &, refineBoundaryLayers &)
read the settings from dictionary
const triSurf * modSurfacePtr_
pointer to the modified surface mesh
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void mapEdgesAndCorners()
capture edges and corners
void generateBoundaryLayers()
add boundary layers
int system(const std::string &command)
Execute the specified command.
bool add(entry *, bool mergeEntry=false)
Add a new entry.