Public Member Functions | Static Public Member Functions | List of all members
backgroundMeshDecomposition Class Reference

Store a background polyMesh to use for the decomposition of space and queries for parallel conformalVoronoiMesh. More...

Public Member Functions

 ClassName ("backgroundMeshDecomposition")
 
 backgroundMeshDecomposition (const Time &runTime, Random &rndGen, const conformationSurfaces &geometryToConformTo, const dictionary &coeffsDict, const fileName &decompDictFile="")
 
 ~backgroundMeshDecomposition ()=default
 
autoPtr< mapDistributePolyMeshdistribute (volScalarField &cellWeights)
 
template<class PointType >
autoPtr< mapDistributedistributePoints (List< PointType > &points) const
 
bool positionOnThisProcessor (const point &pt) const
 
boolList positionOnThisProcessor (const List< point > &pts) const
 
bool overlapsThisProcessor (const treeBoundBox &box) const
 
bool overlapsThisProcessor (const point &centre, const scalar radiusSqr) const
 
pointIndexHit findLine (const point &start, const point &end) const
 
pointIndexHit findLineAny (const point &start, const point &end) const
 
template<class PointType >
labelList processorPosition (const List< PointType > &pts) const
 
labelList processorNearestPosition (const List< point > &pts) const
 
List< List< pointIndexHit > > intersectsProcessors (const List< point > &starts, const List< point > &ends, bool includeOwnProcessor=false) const
 
bool overlapsOtherProcessors (const point &centre, const scalar &radiusSqr) const
 
labelList overlapProcessors (const point &centre, const scalar radiusSqr) const
 
const fvMeshmesh () const
 
const indexedOctree< treeDataBPatch > & tree () const
 
const treeBoundBoxprocBounds () const
 
const labelListcellLevel () const
 
const labelListpointLevel () const
 

Static Public Member Functions

static autoPtr< mapDistributebuildMap (const List< label > &toProc)
 

Detailed Description

Store a background polyMesh to use for the decomposition of space and queries for parallel conformalVoronoiMesh.

The requirements are:

Source files

Definition at line 90 of file backgroundMeshDecomposition.H.

Constructor & Destructor Documentation

◆ backgroundMeshDecomposition()

backgroundMeshDecomposition ( const Time runTime,
Random rndGen,
const conformationSurfaces geometryToConformTo,
const dictionary coeffsDict,
const fileName decompDictFile = "" 
)

◆ ~backgroundMeshDecomposition()

Member Function Documentation

◆ ClassName()

ClassName ( "backgroundMeshDecomposition"  )

◆ buildMap()

static autoPtr<mapDistribute> buildMap ( const List< label > &  toProc)
static

◆ distribute()

autoPtr<mapDistributePolyMesh> distribute ( volScalarField cellWeights)

◆ distributePoints()

autoPtr<mapDistribute> distributePoints ( List< PointType > &  points) const

◆ positionOnThisProcessor() [1/2]

bool positionOnThisProcessor ( const point pt) const

◆ positionOnThisProcessor() [2/2]

boolList positionOnThisProcessor ( const List< point > &  pts) const

◆ overlapsThisProcessor() [1/2]

bool overlapsThisProcessor ( const treeBoundBox box) const

◆ overlapsThisProcessor() [2/2]

bool overlapsThisProcessor ( const point centre,
const scalar  radiusSqr 
) const

◆ findLine()

pointIndexHit findLine ( const point start,
const point end 
) const

◆ findLineAny()

pointIndexHit findLineAny ( const point start,
const point end 
) const

◆ processorPosition()

labelList processorPosition ( const List< PointType > &  pts) const

◆ processorNearestPosition()

labelList processorNearestPosition ( const List< point > &  pts) const

◆ intersectsProcessors()

List<List<pointIndexHit> > intersectsProcessors ( const List< point > &  starts,
const List< point > &  ends,
bool  includeOwnProcessor = false 
) const

◆ overlapsOtherProcessors()

bool overlapsOtherProcessors ( const point centre,
const scalar &  radiusSqr 
) const

◆ overlapProcessors()

labelList overlapProcessors ( const point centre,
const scalar  radiusSqr 
) const

◆ mesh()

const Foam::fvMesh & mesh ( ) const
inline

Definition at line 23 of file backgroundMeshDecompositionI.H.

◆ tree()

const Foam::indexedOctree< Foam::treeDataBPatch > & tree ( ) const
inline

Definition at line 30 of file backgroundMeshDecompositionI.H.

◆ procBounds()

const Foam::treeBoundBox & procBounds ( ) const
inline

Definition at line 37 of file backgroundMeshDecompositionI.H.

References UPstream::myProcNo().

Here is the call graph for this function:

◆ cellLevel()

const Foam::labelList & cellLevel ( ) const
inline

Definition at line 43 of file backgroundMeshDecompositionI.H.

◆ pointLevel()

const Foam::labelList & pointLevel ( ) const
inline

Definition at line 49 of file backgroundMeshDecompositionI.H.


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