Go to the documentation of this file.
156 if( bndLayers.
found(
"nLayers") )
163 else if( bndLayers.
found(
"patchBoundaryLayers") )
166 bndLayers.
subDict(
"patchBoundaryLayers");
169 forAll(createLayers, patchI)
202 bool enforceConstraints(
false);
214 if( enforceConstraints )
224 if( enforceConstraints )
349 catch(
const std::string& message)
357 "void voronoiMeshGenerator::generateMesh()"
358 ) <<
"Meshing process terminated!" <<
endl;
368 modSurfacePtr_(NULL),
370 pointRegionsPtr_(NULL),
408 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 createVoronoiMesh()
create voronoi 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.
void refBoundaryLayers()
refine boundary layer
void projectSurfaceAfterBackScaling()
re-project points back on the surface mesh after back-scaling
#define forAll(list, i)
Loop across all elements in list.
void untangleBoundaryLayer()
meshOctree * octreePtr_
pointer to the octree
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.
IOdictionary meshDict_
IOdictionary containing information about cell sizes, etc..
Ostream & endl(Ostream &os)
Add newline and flush stream.
label size() const
Size of the active part of the list.
void generateBoudaryLayers()
add boundary layers
const edgeLongList & featureEdges() const
access to feature edges
const triSurf * modSurfacePtr_
pointer to the modifier surface
bool isDict(const word &) const
Check if entry is a sub-dictionary.
void optimiseMeshSurface()
optimise surface mesh
void surfacePreparation()
prepare mesh surface
void renumberMesh()
renumber the mesh
void deleteDemandDrivenData(DataPtr &dataPtr)
bool untangleSurface(const labelLongList &activeBoundaryPoints, const label nAdditionalLayers=0)
runs a surface smoother on the selected boundary points
~voronoiMeshGenerator()
Construct from time and desired cell size.
void writeMesh() const
write the mesh
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)
void addLayerForAllPatches()
add layers for all patches
void createOctreeBoxes()
create octree boxes
const dictionary & metaData() const
return a constant reference to metaDict
void replaceBoundaries()
replace boundaries
void mapMeshToSurface()
map mesh to the surface and untangle surface
A list of keyword definitions, which are a keyword followed by any number of values (e....
void preMapVertices(const label nIterations=3)
void enforceConstraints(const word subsetName="badPoints")
void renumberMesh()
reorder the cells and faces to reduce the matrix bandwidth
const triSurf * surfacePtr_
pointer to the surface
errorManipArg< error, int > exit(error &err, const int errNo=1)
labelList * pointRegionsPtr_
pointer to the list patches for boundary vertices
void optimizeSurface(const label nIterations=5)
optimize boundary nodes after boundary regions are created
void revertGeometryModification()
revert modification of coorinates
void enforceConstraints(const word subsetName="badPoints")
void untangleMeshFV(const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2, const bool relaxedCheck=false)
fileName path() const
Return path.
const Time & runTime_
reference to Time
void optimiseFinalMesh()
mesh optimisation
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)
label readLabel(Istream &is)
workflowControls controller_
workflow controller
void mapVerticesOntoSurface()
#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 dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void extractPatches()
assign patches to boundary faces
int system(const std::string &command)
Execute the specified command.
void mapEdgesAndCorners()
capture edges and corners
void generateMesh()
generate mesh
voronoiMeshGenerator(const voronoiMeshGenerator &)
Disallow default bitwise copy construct.
bool add(entry *, bool mergeEntry=false)
Add a new entry.