Loading...
Searching...
No Matches
conformalVoronoiMesh Class Reference

#include <conformalVoronoiMesh.H>

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< labelPairPair > > labelPairPairDynListList
typedef Tuple2< pointIndexHit, label > pointIndexHitAndFeature
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
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

Public Member Functions

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

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.
Static Public Member Functions inherited from DistributedDelaunayMesh< Delaunay >
static autoPtr< mapDistributebuildMap (const labelUList &toProc)
 Build a mapDistribute for the supplied destination processor data.

Static Public Attributes

static const Enum< dualMeshPointTypedualMeshPointTypeNames_

Detailed Description

Member Typedef Documentation

◆ Vertex_handle

typedef Delaunay::Vertex_handle Vertex_handle

Definition at line 97 of file conformalVoronoiMesh.H.

◆ Cell_handle

typedef Delaunay::Cell_handle Cell_handle

Definition at line 98 of file conformalVoronoiMesh.H.

◆ Edge

typedef Delaunay::Edge Edge

Definition at line 99 of file conformalVoronoiMesh.H.

◆ Facet

typedef Delaunay::Facet Facet

Definition at line 100 of file conformalVoronoiMesh.H.

◆ Point

typedef Delaunay::Point Point

Definition at line 101 of file conformalVoronoiMesh.H.

◆ labelPairPairDynListList

◆ pointIndexHitAndFeature

Definition at line 105 of file conformalVoronoiMesh.H.

◆ pointIndexHitAndFeatureList

◆ pointIndexHitAndFeatureDynList

Member Enumeration Documentation

◆ dualMeshPointType

Enumerator
internal 
surface 
featureEdge 
featurePoint 
constrained 

Definition at line 111 of file conformalVoronoiMesh.H.

Constructor & Destructor Documentation

◆ conformalVoronoiMesh()

conformalVoronoiMesh ( const Time & runTime,
const dictionary & foamyHexMeshDict,
const fileName & decompDictFile = "" )

Construct from Time and foamyHexMeshDict.

References runTime.

◆ ~conformalVoronoiMesh()

~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 519 of file conformalVoronoiMeshI.H.

◆ rndGen()

Foam::Random & rndGen ( ) const
inline

Return the random number generator.

Definition at line 525 of file conformalVoronoiMeshI.H.

◆ allGeometry()

const Foam::searchableSurfaces & allGeometry ( ) const
inline

Return the allGeometry object.

Definition at line 532 of file conformalVoronoiMeshI.H.

◆ geometryToConformTo()

const Foam::conformationSurfaces & geometryToConformTo ( ) const
inline

Return the conformationSurfaces object.

Definition at line 539 of file conformalVoronoiMeshI.H.

◆ decomposition()

const Foam::backgroundMeshDecomposition & decomposition ( ) const
inline

Return the backgroundMeshDecomposition.

Definition at line 546 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 560 of file conformalVoronoiMeshI.H.

◆ foamyHexMeshControls()

const Foam::cvControls & foamyHexMeshControls ( ) const
inline

Return the foamyHexMeshControls object.

Definition at line 567 of file conformalVoronoiMeshI.H.

Referenced by featureEdgeExclusionDistanceSqr(), featurePointExclusionDistanceSqr(), maxSurfaceProtrusion(), mixedFeaturePointDistance(), pointPairDistance(), surfacePtExclusionDistanceSqr(), and surfaceSearchDistanceSqr().

Here is the caller graph for this function:

◆ pointPairDistance()

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

Return the local point pair separation at the given location.

Definition at line 132 of file conformalVoronoiMeshI.H.

References foamyHexMeshControls().

Referenced by 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 141 of file conformalVoronoiMeshI.H.

References foamyHexMeshControls(), and pointPairDistance().

Here is the call 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 152 of file conformalVoronoiMeshI.H.

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

Here is the call 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 166 of file conformalVoronoiMeshI.H.

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

Here is the call 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 180 of file conformalVoronoiMeshI.H.

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

Here is the call 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 194 of file conformalVoronoiMeshI.H.

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

Here is the call graph for this function:

◆ maxSurfaceProtrusion()

Foam::scalar maxSurfaceProtrusion ( const Foam::point & pt) const
inline

Return the local maximum surface protrusion distance.

Definition at line 208 of file conformalVoronoiMeshI.H.

References foamyHexMeshControls().

Here is the call graph for this function:

◆ createEdgePointGroup()

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

Call the appropriate function to conform to an edge.

References pts.

◆ timeCheck() [1/2]

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

References Foam::check(), string::null, and runTime.

Here is the call graph for this function:

◆ timeCheck() [2/2]

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

References string::null.

◆ 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,
bitSet & boundaryFacesToRemove ) const

Write mesh to disk.

References patchDicts, patchNames(), and points.

Here is the call graph for this function:

◆ 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)).

References mesh.

◆ writeCellAlignments()

void writeCellAlignments ( const fvMesh & mesh) const

References mesh.

◆ writeCellCentres()

void writeCellCentres ( const fvMesh & mesh) const

Calculate and write the cell centres.

References mesh.

◆ 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.

References mesh.

Member Data Documentation

◆ dualMeshPointTypeNames_

const Enum<dualMeshPointType> dualMeshPointTypeNames_
static

Definition at line 120 of file conformalVoronoiMesh.H.


The documentation for this class was generated from the following files:
  • applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.H
  • applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshI.H