Go to the documentation of this file.
250 catch(
const std::string& message)
258 "void cartesian2DMeshGenerator::generateMesh()"
259 ) <<
"Meshing process terminated!" <<
endl;
269 modSurfacePtr_(NULL),
292 surfaceFile =
".."/surfaceFile;
310 Info <<
"Writting surface with subsets to file "
311 <<
"badSurfaceWithSubsets.fms" <<
endl;
325 const triSurf* surfaceWithPatches =
bool runCurrentStep(const word &)
shall the process run the current step
void generateBoundaryLayers()
add boundary layers
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void refineLayers()
performs refinement based on the given settings
const triSurf * surfacePtr_
pointer to the surface
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling file names.
void mapEdgesAndCorners()
capture edges and corners
~cartesian2DMeshGenerator()
Given list of cells to remove insert all the topology changes.
Template functions to aid in the implementation of demand driven data.
bool checkAndFixIrregularConnections()
find invalid connections and fix them on the fly
void mapMeshToSurface()
map mesh to the surface and untangle surface
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.
void generateMesh()
generate mesh
void renumberMesh()
renumber the mesh
Ostream & endl(Ostream &os)
Add newline and flush stream.
label size() const
Size of the active part of the list.
cartesian2DMeshGenerator(const cartesian2DMeshGenerator &)
Disallow default bitwise copy construct.
const edgeLongList & featureEdges() const
access to feature edges
bool isDict(const word &) const
Check if entry is a sub-dictionary.
void deleteDemandDrivenData(DataPtr &dataPtr)
const triSurf * modSurfacePtr_
pointer to the modified surface mesh
void refBoundaryLayers()
refine boundary layers
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
meshOctree * octreePtr_
pointer to the octree
void optimizeSurface2D(const label nIterations=5)
optimize the surface of a 2D mesh
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 untangleSurface2D()
untangle the surface of a 2D mesh
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 preMapVertices(const label nIterations=2)
void mapVerticesOntoSurface()
IOdictionary meshDict_
IOdictionary containing information about cell sizes, etc..
const Time & db_
reference to Time
workflowControls controller_
workflow controller
void renumberMesh()
reorder the cells and faces to reduce the matrix bandwidth
void extractPatches()
capture edges and corners
void revertGeometryModification()
revert modification of coorinates
void writeMesh() const
write the mesh
fileName path() const
Return path.
const triSurf * modifyGeometry() const
modify coordinates
bool is2DSurface() const
checks if the surface is a 2D triangulation
void createSubsets()
create subset containing invalid facets
void writeSurface(const fileName &) const
void surfacePreparation()
prepare mesh surface
void createCartesianMesh()
create cartesian mesh
#define WarningIn(functionName)
Report a warning using Foam::Warning.
void activate2DMode()
activate 2D layer refinement
void replaceBoundaries()
replace boundaries
static void readSettings(const dictionary &, refineBoundaryLayers &)
read the settings from dictionary
void optimiseMeshSurface()
optimise surface mesh
int system(const std::string &command)
Execute the specified command.
void adjustZCoordinates()
adjust z coordinates of the mesh to the ones in the surface mesh
bool add(entry *, bool mergeEntry=false)
Add a new entry.