Public Member Functions | Private Member Functions | Private Attributes
cartesian2DMeshGenerator Class Reference
Collaboration diagram for cartesian2DMeshGenerator:
Collaboration graph
[legend]

Public Member Functions

 cartesian2DMeshGenerator (const Time &)
 Construct from time. More...
 
 ~cartesian2DMeshGenerator ()
 
void writeMesh () const
 write the mesh More...
 

Private Member Functions

void createCartesianMesh ()
 create cartesian mesh More...
 
void surfacePreparation ()
 prepare mesh surface More...
 
void mapMeshToSurface ()
 map mesh to the surface and untangle surface More...
 
void extractPatches ()
 capture edges and corners More...
 
void mapEdgesAndCorners ()
 capture edges and corners More...
 
void optimiseMeshSurface ()
 optimise surface mesh More...
 
void generateBoundaryLayers ()
 add boundary layers More...
 
void refBoundaryLayers ()
 refine boundary layers More...
 
void replaceBoundaries ()
 replace boundaries More...
 
void renumberMesh ()
 renumber the mesh More...
 
void generateMesh ()
 generate mesh More...
 
 cartesian2DMeshGenerator (const cartesian2DMeshGenerator &)
 Disallow default bitwise copy construct. More...
 
void operator= (const cartesian2DMeshGenerator &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const Timedb_
 reference to Time More...
 
const triSurfsurfacePtr_
 pointer to the surface More...
 
const triSurfmodSurfacePtr_
 pointer to the modified surface mesh More...
 
IOdictionary meshDict_
 IOdictionary containing information about cell sizes, etc.. More...
 
meshOctreeoctreePtr_
 pointer to the octree More...
 
polyMeshGen mesh_
 mesh More...
 
workflowControls controller_
 workflow controller More...
 

Detailed Description

Definition at line 55 of file cartesian2DMeshGenerator.H.

Constructor & Destructor Documentation

◆ cartesian2DMeshGenerator() [1/2]

Disallow default bitwise copy construct.

◆ cartesian2DMeshGenerator() [2/2]

cartesian2DMeshGenerator ( const Time time)

◆ ~cartesian2DMeshGenerator()

Member Function Documentation

◆ createCartesianMesh()

void createCartesianMesh ( )
private

create cartesian mesh

create polyMesh from octree boxes

Definition at line 63 of file cartesian2DMeshGenerator.C.

References cartesianMeshExtractor::createMesh(), cartesianMeshExtractor::decomposeSplitHexes(), dictionary::found(), dictionary::lookup(), cartesian2DMeshGenerator::mesh_, cartesian2DMeshGenerator::meshDict_, cartesian2DMeshGenerator::octreePtr_, and Foam::readBool().

Referenced by cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ surfacePreparation()

void surfacePreparation ( )
private

prepare mesh surface

removes unnecessary cells and morph the boundary such that there is only one boundary face per cell It also checks topology of cells after morphing is performed

Definition at line 77 of file cartesian2DMeshGenerator.C.

References checkIrregularSurfaceConnections::checkAndFixIrregularConnections(), checkBoundaryFacesSharingTwoEdges::improveTopology(), and cartesian2DMeshGenerator::mesh_.

Referenced by cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapMeshToSurface()

void mapMeshToSurface ( )
private

map mesh to the surface and untangle surface

calculate mesh surface

pre-map mesh surface

map mesh surface on the geometry surface

Definition at line 102 of file cartesian2DMeshGenerator.C.

References meshSurfaceMapper2D::adjustZCoordinates(), Foam::deleteDemandDrivenData(), meshSurfaceMapper2D::mapVerticesOntoSurface(), cartesian2DMeshGenerator::mesh_, cartesian2DMeshGenerator::octreePtr_, and meshSurfaceMapper2D::preMapVertices().

Referenced by cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extractPatches()

void extractPatches ( )
private

capture edges and corners

Definition at line 120 of file cartesian2DMeshGenerator.C.

References meshSurfaceEdgeExtractor2D::distributeBoundaryFaces(), cartesian2DMeshGenerator::mesh_, and cartesian2DMeshGenerator::octreePtr_.

Referenced by cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapEdgesAndCorners()

void mapEdgesAndCorners ( )
private

capture edges and corners

Definition at line 125 of file cartesian2DMeshGenerator.C.

References cartesian2DMeshGenerator::mesh_, cartesian2DMeshGenerator::octreePtr_, and meshSurfaceEdgeExtractor2D::remapBoundaryPoints().

Referenced by cartesian2DMeshGenerator::generateBoundaryLayers(), and cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ optimiseMeshSurface()

void optimiseMeshSurface ( )
private

optimise surface mesh

Definition at line 130 of file cartesian2DMeshGenerator.C.

References cartesian2DMeshGenerator::mesh_, cartesian2DMeshGenerator::octreePtr_, meshSurfaceOptimizer::optimizeSurface2D(), and meshSurfaceOptimizer::untangleSurface2D().

Referenced by cartesian2DMeshGenerator::generateBoundaryLayers(), and cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateBoundaryLayers()

void generateBoundaryLayers ( )
private

◆ refBoundaryLayers()

void refBoundaryLayers ( )
private

◆ replaceBoundaries()

void replaceBoundaries ( )
private

replace boundaries

Definition at line 188 of file cartesian2DMeshGenerator.C.

References cartesian2DMeshGenerator::mesh_, and cartesian2DMeshGenerator::meshDict_.

Referenced by cartesian2DMeshGenerator::generateMesh().

Here is the caller graph for this function:

◆ renumberMesh()

void renumberMesh ( )
private

renumber the mesh

Definition at line 193 of file cartesian2DMeshGenerator.C.

References cartesian2DMeshGenerator::mesh_, and polyMeshGenModifier::renumberMesh().

Referenced by cartesian2DMeshGenerator::generateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateMesh()

void generateMesh ( )
private

◆ operator=()

void operator= ( const cartesian2DMeshGenerator )
private

Disallow default bitwise assignment.

◆ writeMesh()

void writeMesh ( ) const

write the mesh

Definition at line 362 of file cartesian2DMeshGenerator.C.

References cartesian2DMeshGenerator::mesh_, and polyMeshGen::write().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ db_

const Time& db_
private

reference to Time

Definition at line 59 of file cartesian2DMeshGenerator.H.

Referenced by cartesian2DMeshGenerator::cartesian2DMeshGenerator().

◆ surfacePtr_

const triSurf* surfacePtr_
private

◆ modSurfacePtr_

const triSurf* modSurfacePtr_
private

◆ meshDict_

IOdictionary meshDict_
private

◆ octreePtr_

meshOctree* octreePtr_
private

◆ mesh_

polyMeshGen mesh_
private

◆ controller_

workflowControls controller_
private

workflow controller

Definition at line 77 of file cartesian2DMeshGenerator.H.

Referenced by cartesian2DMeshGenerator::generateMesh().


The documentation for this class was generated from the following files: