conformalVoronoiMesh Class Reference
Inheritance diagram for conformalVoronoiMesh:
Collaboration diagram for conformalVoronoiMesh:

Public Types

enum  dualMeshPointType {
  internal = 0, surface = 1, featureEdge = 2, featurePoint = 3,
  constrained = 4
}
 
typedef Delaunay::Vertex_handle Vertex_handle
 
typedef Delaunay::Cell_handle Cell_handle
 
typedef Delaunay::Edge Edge
 
typedef Delaunay::Facet Facet
 
typedef Delaunay::Point Point
 
typedef List< DynamicList< Pair< labelPair > > > labelPairPairDynListList
 
typedef Tuple2< pointIndexHit, labelpointIndexHitAndFeature
 
typedef List< pointIndexHitAndFeaturepointIndexHitAndFeatureList
 
typedef DynamicList< pointIndexHitAndFeaturepointIndexHitAndFeatureDynList
 
- Public Types inherited from DistributedDelaunayMesh< Delaunay >
typedef Delaunay ::Vertex_handle Vertex_handle
 
typedef Delaunay ::Cell_handle Cell_handle
 
typedef Delaunay ::Point Point
 
typedef Delaunay ::Finite_vertices_iterator Finite_vertices_iterator
 
typedef Delaunay ::Finite_cells_iterator Finite_cells_iterator
 
typedef Delaunay ::All_cells_iterator All_cells_iterator
 
typedef DelaunayMesh< Delaunay >::labelPairHashSet labelPairHashSet
 
- Public Types inherited from DelaunayMesh< Delaunay >
typedef Delaunay ::Cell_handle Cell_handle
 
typedef Delaunay ::Vertex_handle Vertex_handle
 
typedef Delaunay ::Edge Edge
 
typedef Delaunay ::Point Point
 
typedef Delaunay ::Facet Facet
 
typedef Delaunay ::Finite_vertices_iterator Finite_vertices_iterator
 
typedef Delaunay ::Finite_cells_iterator Finite_cells_iterator
 
typedef Delaunay ::Finite_facets_iterator Finite_facets_iterator
 
typedef HashSet< Pair< label >, FixedList< label, 2 >::Hash<> > labelPairHashSet
 
typedef HashTable< label, labelPair, FixedList< label, 2 >::Hash<> > labelTolabelPairHashTable
 

Public Member Functions

 ClassName ("conformalVoronoiMesh")
 Runtime type information. More...
 
 conformalVoronoiMesh (const Time &runTime, const dictionary &foamyHexMeshDict)
 Construct from Time and foamyHexMeshDict. More...
 
 conformalVoronoiMesh (const conformalVoronoiMesh &)=delete
 Disallow default bitwise copy construction. More...
 
 ~conformalVoronoiMesh ()
 Destructor. More...
 
void initialiseForMotion ()
 
void initialiseForConformation ()
 
void move ()
 Move the vertices according to the controller, re-conforming to the. More...
 
const Timetime () const
 Return the Time object. More...
 
RandomrndGen () const
 Return the random number generator. More...
 
const searchableSurfacesallGeometry () const
 Return the allGeometry object. More...
 
const conformationSurfacesgeometryToConformTo () const
 Return the conformationSurfaces object. More...
 
const backgroundMeshDecompositiondecomposition () const
 Return the backgroundMeshDecomposition. More...
 
const cellShapeControlcellShapeControls () const
 Return the cellShapeControl object. More...
 
const cvControlsfoamyHexMeshControls () const
 Return the foamyHexMeshControls object. More...
 
scalar pointPairDistance (const Foam::point &pt) const
 Return the local point pair separation at the given location. More...
 
scalar mixedFeaturePointDistance (const Foam::point &pt) const
 Return the local mixed feature point placement distance. More...
 
scalar featurePointExclusionDistanceSqr (const Foam::point &pt) const
 Return the square of the local feature point exclusion distance. More...
 
scalar featureEdgeExclusionDistanceSqr (const Foam::point &pt) const
 Return the square of the local feature edge exclusion distance. More...
 
scalar surfacePtExclusionDistanceSqr (const Foam::point &pt) const
 Return the square of the local surface point exclusion distance. More...
 
scalar surfaceSearchDistanceSqr (const Foam::point &pt) const
 Return the square of the local surface search distance. More...
 
scalar maxSurfaceProtrusion (const Foam::point &pt) const
 Return the local maximum surface protrusion distance. More...
 
void createEdgePointGroup (const extendedFeatureEdgeMesh &feMesh, const pointIndexHit &edHit, DynamicList< Vb > &pts) const
 Call the appropriate function to conform to an edge. More...
 
void timeCheck (const string &description=string::null) const
 
void writeMesh (const fileName &instance)
 Prepare data and call writeMesh for polyMesh and. More...
 
void writeMesh (const word &meshName, const fileName &instance, pointField &points, labelList &boundaryPts, faceList &faces, labelList &owner, labelList &neighbour, const wordList &patchNames, const PtrList< dictionary > &patchDicts, const pointField &cellCentres, PackedBoolList &boundaryFacesToRemove) const
 Write mesh to disk. More...
 
void writeCellSizes (const fvMesh &mesh) const
 Calculate and write a field of the target cell size,. More...
 
void writeCellAlignments (const fvMesh &mesh) const
 
void writeCellCentres (const fvMesh &mesh) const
 Calculate and write the cell centres. More...
 
labelHashSet findRemainingProtrusionSet (const polyMesh &mesh) const
 Find the cellSet of the boundary cells which have points that. More...
 
void operator= (const conformalVoronoiMesh &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from DistributedDelaunayMesh< Delaunay >
 DistributedDelaunayMesh (const Time &runTime)
 Construct from components. More...
 
 DistributedDelaunayMesh (const Time &runTime, const word &meshName)
 
 DistributedDelaunayMesh (const DistributedDelaunayMesh< Delaunay > &)=delete
 Disallow default bitwise copy construction. More...
 
 ~DistributedDelaunayMesh ()
 Destructor. More...
 
scalar calculateLoadUnbalance () const
 
bool distribute (const boundBox &bb)
 
autoPtr< distributionMapdistribute (const backgroundMeshDecomposition &decomposition, List< Foam::point > &points)
 
void sync (const boundBox &bb)
 Refer vertices so that the processor interfaces are consistent. More...
 
void sync (const boundBox &bb, PtrList< labelPairHashSet > &referralVertices, labelPairHashSet &receivedVertices, bool iterateReferral=true)
 Refer vertices so that the processor interfaces are consistent. More...
 
labelPairHashSet rangeInsertReferredWithInfo (PointIterator begin, PointIterator end, bool printErrors=true)
 Inserts points into the triangulation if the point is within. More...
 
void operator= (const DistributedDelaunayMesh< Delaunay > &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from DelaunayMesh< Delaunay >
 DelaunayMesh (const Time &runTime)
 Construct from components. More...
 
 DelaunayMesh (const Time &runTime, const word &meshName)
 
 DelaunayMesh (const DelaunayMesh< Delaunay > &)=delete
 Disallow default bitwise copy construction. More...
 
 ~DelaunayMesh ()
 Destructor. More...
 
const Timetime () const
 Return a reference to the Time object. More...
 
void timeCheck (const string &description, const bool check=true) const
 Write the cpuTime to screen. More...
 
label getNewCellIndex () const
 Create a new unique cell index and return. More...
 
label getNewVertexIndex () const
 Create a new unique vertex index and return. More...
 
label cellCount () const
 Return the cell count (the next unique cell index) More...
 
label vertexCount () const
 Return the vertex count (the next unique vertex index) More...
 
void resetCellCount ()
 Set the cell count to zero. More...
 
void resetVertexCount ()
 Set the vertex count to zero. More...
 
void reset ()
 Clear the entire triangulation. More...
 
Map< labelinsertPoints (const List< Vb > &vertices, const bool reIndex)
 Insert the list of vertices (calls rangeInsertWithInfo) More...
 
Map< labelrangeInsertWithInfo (PointIterator begin, PointIterator end, bool printErrors=false, bool reIndex=true)
 Function inserting points into a triangulation and setting the. More...
 
void printInfo (Ostream &os) const
 Write mesh statistics to stream. More...
 
void printVertexInfo (Ostream &os) const
 Write vertex statistics in the form of a table to stream. More...
 
autoPtr< polyMeshcreateMesh (const fileName &name, labelTolabelPairHashTable &vertexMap, labelList &cellMap, const bool writeDelaunayData=true) const
 Create an fvMesh from the triangulation. More...
 
void operator= (const DelaunayMesh< Delaunay > &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static void timeCheck (const Time &runTime, const string &description=string::null, const bool check=true)
 Write the elapsedCpuTime and memory usage, with an optional. More...
 
- Static Public Member Functions inherited from DistributedDelaunayMesh< Delaunay >
static autoPtr< distributionMapbuildMap (const List< label > &toProc)
 Build a distributionMap for the supplied destination processor data. More...
 

Static Public Attributes

static const NamedEnum< dualMeshPointType, 5 > dualMeshPointTypeNames_
 

Detailed Description

Member Typedef Documentation

◆ Vertex_handle

typedef Delaunay::Vertex_handle Vertex_handle

Definition at line 101 of file conformalVoronoiMesh.H.

◆ Cell_handle

typedef Delaunay::Cell_handle Cell_handle

Definition at line 102 of file conformalVoronoiMesh.H.

◆ Edge

typedef Delaunay::Edge Edge

Definition at line 103 of file conformalVoronoiMesh.H.

◆ Facet

typedef Delaunay::Facet Facet

Definition at line 104 of file conformalVoronoiMesh.H.

◆ Point

typedef Delaunay::Point Point

Definition at line 105 of file conformalVoronoiMesh.H.

◆ labelPairPairDynListList

◆ pointIndexHitAndFeature

◆ pointIndexHitAndFeatureList

◆ pointIndexHitAndFeatureDynList

Member Enumeration Documentation

◆ dualMeshPointType

Enumerator
internal 
surface 
featureEdge 
featurePoint 
constrained 

Definition at line 115 of file conformalVoronoiMesh.H.

Constructor & Destructor Documentation

◆ conformalVoronoiMesh() [1/2]

conformalVoronoiMesh ( const Time runTime,
const dictionary foamyHexMeshDict 
)

Construct from Time and foamyHexMeshDict.

◆ conformalVoronoiMesh() [2/2]

Disallow default bitwise copy construction.

◆ ~conformalVoronoiMesh()

Destructor.

Member Function Documentation

◆ ClassName()

ClassName ( "conformalVoronoiMesh"  )

Runtime type information.

◆ initialiseForMotion()

void initialiseForMotion ( )

◆ initialiseForConformation()

void initialiseForConformation ( )

◆ move()

void move ( )

Move the vertices according to the controller, re-conforming to the.

surface as required

◆ time()

const Foam::Time & time ( ) const
inline

Return the Time object.

Definition at line 530 of file conformalVoronoiMeshI.H.

◆ rndGen()

Foam::Random & rndGen ( ) const
inline

Return the random number generator.

Definition at line 536 of file conformalVoronoiMeshI.H.

◆ allGeometry()

const Foam::searchableSurfaces & allGeometry ( ) const
inline

Return the allGeometry object.

Definition at line 543 of file conformalVoronoiMeshI.H.

◆ geometryToConformTo()

const Foam::conformationSurfaces & geometryToConformTo ( ) const
inline

Return the conformationSurfaces object.

Definition at line 550 of file conformalVoronoiMeshI.H.

◆ decomposition()

const Foam::backgroundMeshDecomposition & decomposition ( ) const
inline

Return the backgroundMeshDecomposition.

Definition at line 557 of file conformalVoronoiMeshI.H.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and UPstream::parRun().

Here is the call graph for this function:

◆ cellShapeControls()

const Foam::cellShapeControl & cellShapeControls ( ) const
inline

Return the cellShapeControl object.

Definition at line 571 of file conformalVoronoiMeshI.H.

◆ foamyHexMeshControls()

◆ pointPairDistance()

Foam::scalar pointPairDistance ( const Foam::point pt) const
inline

Return the local point pair separation at the given location.

Definition at line 137 of file conformalVoronoiMeshI.H.

References conformalVoronoiMesh::foamyHexMeshControls(), conformalVoronoiMesh::mixedFeaturePointDistance(), and cvControls::pointPairDistanceCoeff().

Referenced by conformalVoronoiMesh::mixedFeaturePointDistance().

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

◆ mixedFeaturePointDistance()

Foam::scalar mixedFeaturePointDistance ( const Foam::point pt) const
inline

Return the local mixed feature point placement distance.

Definition at line 146 of file conformalVoronoiMeshI.H.

References conformalVoronoiMesh::featurePointExclusionDistanceSqr(), conformalVoronoiMesh::foamyHexMeshControls(), cvControls::mixedFeaturePointPPDistanceCoeff(), and conformalVoronoiMesh::pointPairDistance().

Referenced by conformalVoronoiMesh::pointPairDistance().

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

◆ featurePointExclusionDistanceSqr()

Foam::scalar featurePointExclusionDistanceSqr ( const Foam::point pt) const
inline

Return the square of the local feature point exclusion distance.

Definition at line 157 of file conformalVoronoiMeshI.H.

References conformalVoronoiMesh::featureEdgeExclusionDistanceSqr(), conformalVoronoiMesh::foamyHexMeshControls(), and Foam::sqr().

Referenced by conformalVoronoiMesh::mixedFeaturePointDistance().

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

◆ featureEdgeExclusionDistanceSqr()

Foam::scalar featureEdgeExclusionDistanceSqr ( const Foam::point pt) const
inline

Return the square of the local feature edge exclusion distance.

Definition at line 171 of file conformalVoronoiMeshI.H.

References conformalVoronoiMesh::foamyHexMeshControls(), Foam::sqr(), and conformalVoronoiMesh::surfacePtExclusionDistanceSqr().

Referenced by conformalVoronoiMesh::featurePointExclusionDistanceSqr().

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

◆ surfacePtExclusionDistanceSqr()

Foam::scalar surfacePtExclusionDistanceSqr ( const Foam::point pt) const
inline

Return the square of the local surface point exclusion distance.

Definition at line 185 of file conformalVoronoiMeshI.H.

References conformalVoronoiMesh::foamyHexMeshControls(), Foam::sqr(), and conformalVoronoiMesh::surfaceSearchDistanceSqr().

Referenced by conformalVoronoiMesh::featureEdgeExclusionDistanceSqr().

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

◆ surfaceSearchDistanceSqr()

Foam::scalar surfaceSearchDistanceSqr ( const Foam::point pt) const
inline

Return the square of the local surface search distance.

Definition at line 199 of file conformalVoronoiMeshI.H.

References conformalVoronoiMesh::foamyHexMeshControls(), conformalVoronoiMesh::maxSurfaceProtrusion(), and Foam::sqr().

Referenced by conformalVoronoiMesh::surfacePtExclusionDistanceSqr().

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

◆ maxSurfaceProtrusion()

◆ createEdgePointGroup()

void createEdgePointGroup ( const extendedFeatureEdgeMesh feMesh,
const pointIndexHit edHit,
DynamicList< Vb > &  pts 
) const

Call the appropriate function to conform to an edge.

◆ timeCheck() [1/2]

static void timeCheck ( const Time runTime,
const string description = string::null,
const bool  check = true 
)
static

Write the elapsedCpuTime and memory usage, with an optional.

description

◆ timeCheck() [2/2]

void timeCheck ( const string description = string::null) const

◆ writeMesh() [1/2]

void writeMesh ( const fileName instance)

Prepare data and call writeMesh for polyMesh and.

tetDualMesh

◆ writeMesh() [2/2]

void writeMesh ( const word meshName,
const fileName instance,
pointField points,
labelList boundaryPts,
faceList faces,
labelList owner,
labelList neighbour,
const wordList patchNames,
const PtrList< dictionary > &  patchDicts,
const pointField cellCentres,
PackedBoolList boundaryFacesToRemove 
) const

Write mesh to disk.

◆ writeCellSizes()

void writeCellSizes ( const fvMesh mesh) const

Calculate and write a field of the target cell size,.

target cell volume, actual cell volume and equivalent actual cell size (cbrt(actual cell volume)).

◆ writeCellAlignments()

void writeCellAlignments ( const fvMesh mesh) const

◆ writeCellCentres()

void writeCellCentres ( const fvMesh mesh) const

Calculate and write the cell centres.

◆ findRemainingProtrusionSet()

labelHashSet findRemainingProtrusionSet ( const polyMesh mesh) const

Find the cellSet of the boundary cells which have points that.

protrude out of the surface beyond a tolerance.

◆ operator=()

void operator= ( const conformalVoronoiMesh )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ dualMeshPointTypeNames_

const NamedEnum<dualMeshPointType, 5> dualMeshPointTypeNames_
static

Definition at line 124 of file conformalVoronoiMesh.H.


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