Go to the documentation of this file.
167 bool enforceConstraints(
false);
179 if( enforceConstraints )
189 if( enforceConstraints )
301 catch(
const std::string& message)
309 "void cartesianMeshGenerator::generateMesh()"
310 ) <<
"Meshing process terminated!" <<
endl;
320 modSurfacePtr_(NULL),
343 surfaceFile =
".."/surfaceFile;
363 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 projectSurfaceAfterBackScaling()
re-project points back on the surface mesh after back-scaling
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 extractPatches()
capture edges and corners
void optimizeLowQualityFaces(const label maxNumIterations=10)
A class for handling file names.
void untangleBoundaryLayer()
Given list of cells to remove insert all the topology changes.
workflowControls controller_
workflow controller
const triSurf * surfacePtr_
pointer to the surface
Template functions to aid in the implementation of demand driven data.
bool checkAndFixIrregularConnections()
find invalid connections and fix them on the fly
void lockPoints(const labelListType &)
lock points which shall not be moved
void replaceBoundaries()
replace boundaries
static bool & parRun()
Is this a parallel run?
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
cartesianMeshGenerator(const cartesianMeshGenerator &)
Disallow default bitwise copy construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label size() const
Size of the active part of the list.
const edgeLongList & featureEdges() const
access to feature edges
const Time & db_
reference to Time
bool isDict(const word &) const
Check if entry is a sub-dictionary.
void generateBoundaryLayers()
add boundary layers
void deleteDemandDrivenData(DataPtr &dataPtr)
bool untangleSurface(const labelLongList &activeBoundaryPoints, const label nAdditionalLayers=0)
runs a surface smoother on the selected boundary points
void generateMesh()
generate mesh
void optimiseMeshSurface()
optimise surface mesh
void mapEdgesAndCorners()
map points at feature edges and corners
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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 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....
~cartesianMeshGenerator()
IOdictionary meshDict_
IOdictionary containing information about cell sizes, etc..
void preMapVertices(const label nIterations=3)
const triSurf * modSurfacePtr_
pointer to the modified surface
void mapMeshToSurface()
map mesh to the surface and untangle surface
void renumberMesh()
renumber the mesh
void enforceConstraints(const word subsetName="badPoints")
void renumberMesh()
reorder the cells and faces to reduce the matrix bandwidth
void surfacePreparation()
prepare mesh surface
void optimizeSurface(const label nIterations=5)
optimize boundary nodes after boundary regions are created
meshOctree * octreePtr_
pointer to the octree
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 triSurf * modifyGeometry() const
modify coordinates
void createCartesianMesh()
create cartesian mesh
void optimiseFinalMesh()
mesh optimisation
void optimizeBoundaryLayer(const bool addBufferLayer=true)
void mapVerticesOntoSurface()
#define WarningIn(functionName)
Report a warning using Foam::Warning.
static void readSettings(const dictionary &, refineBoundaryLayers &)
read the settings from dictionary
int system(const std::string &command)
Execute the specified command.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
void writeMesh() const
write the mesh
void refBoundaryLayers()
refine boundary layers