Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
conformalVoronoiMesh Class Reference
Inheritance diagram for conformalVoronoiMesh:
Inheritance graph
[legend]
Collaboration diagram for conformalVoronoiMesh:
Collaboration graph
[legend]

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 ()
 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...
 
- Public Member Functions inherited from DistributedDelaunayMesh< Delaunay >
 DistributedDelaunayMesh (const Time &runTime)
 Construct from components. More...
 
 DistributedDelaunayMesh (const Time &runTime, const word &meshName)
 
 ~DistributedDelaunayMesh ()
 Destructor. More...
 
scalar calculateLoadUnbalance () const
 
bool distribute (const boundBox &bb)
 
autoPtr< mapDistributedistribute (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...
 
- Public Member Functions inherited from DelaunayMesh< Delaunay >
 DelaunayMesh (const Time &runTime)
 Construct from components. More...
 
 DelaunayMesh (const Time &runTime, const word &meshName)
 
 ~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...
 

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< mapDistributebuildMap (const List< label > &toProc)
 Build a mapDistribute for the supplied destination processor data. More...
 

Static Public Attributes

static const NamedEnum< dualMeshPointType, 5 > dualMeshPointTypeNames_
 

Detailed Description

Source files

Definition at line 97 of file conformalVoronoiMesh.H.

Member Typedef Documentation

typedef Delaunay::Vertex_handle Vertex_handle

Definition at line 103 of file conformalVoronoiMesh.H.

typedef Delaunay::Cell_handle Cell_handle

Definition at line 104 of file conformalVoronoiMesh.H.

typedef Delaunay::Edge Edge

Definition at line 105 of file conformalVoronoiMesh.H.

typedef Delaunay::Facet Facet

Definition at line 106 of file conformalVoronoiMesh.H.

typedef Delaunay::Point Point

Definition at line 107 of file conformalVoronoiMesh.H.

Definition at line 109 of file conformalVoronoiMesh.H.

Definition at line 111 of file conformalVoronoiMesh.H.

Definition at line 112 of file conformalVoronoiMesh.H.

Definition at line 113 of file conformalVoronoiMesh.H.

Member Enumeration Documentation

Enumerator
internal 
surface 
featureEdge 
featurePoint 
constrained 

Definition at line 117 of file conformalVoronoiMesh.H.

Constructor & Destructor Documentation

conformalVoronoiMesh ( const Time runTime,
const dictionary foamyHexMeshDict 
)

Construct from Time and foamyHexMeshDict.

Destructor.

Member Function Documentation

ClassName ( "conformalVoronoiMesh"  )

Runtime type information.

void initialiseForMotion ( )
void initialiseForConformation ( )
void move ( )

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

surface as required

const Foam::Time & time ( ) const
inline

Return the Time object.

Definition at line 530 of file conformalVoronoiMeshI.H.

Foam::Random & rndGen ( ) const
inline

Return the random number generator.

Definition at line 536 of file conformalVoronoiMeshI.H.

const Foam::searchableSurfaces & allGeometry ( ) const
inline

Return the allGeometry object.

Definition at line 543 of file conformalVoronoiMeshI.H.

const Foam::conformationSurfaces & geometryToConformTo ( ) const
inline

Return the conformationSurfaces object.

Definition at line 550 of file conformalVoronoiMeshI.H.

const Foam::backgroundMeshDecomposition & decomposition ( ) const
inline

Return the backgroundMeshDecomposition.

Definition at line 557 of file conformalVoronoiMeshI.H.

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

Here is the call graph for this function:

const Foam::cellShapeControl & cellShapeControls ( ) const
inline

Return the cellShapeControl object.

Definition at line 575 of file conformalVoronoiMeshI.H.

const Foam::cvControls & foamyHexMeshControls ( ) const
inline
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:

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:

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:

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:

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:

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:

Foam::scalar maxSurfaceProtrusion ( const Foam::point pt) const
inline
void createEdgePointGroup ( const extendedFeatureEdgeMesh feMesh,
const pointIndexHit edHit,
DynamicList< Vb > &  pts 
) const

Call the appropriate function to conform to an edge.

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

void timeCheck ( const string description = string::null) const
void writeMesh ( const fileName instance)

Prepare data and call writeMesh for polyMesh and.

tetDualMesh

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.

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

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.

protrude out of the surface beyond a tolerance.

Member Data Documentation

const NamedEnum<dualMeshPointType, 5> dualMeshPointTypeNames_
static

Definition at line 126 of file conformalVoronoiMesh.H.


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