PrimitiveOldTimePatch< FaceList, PointField > Class Template Reference
Inheritance diagram for PrimitiveOldTimePatch< FaceList, PointField >:
Collaboration diagram for PrimitiveOldTimePatch< FaceList, PointField >:

Public Member Functions

 PrimitiveOldTimePatch (const FaceList &faces, const Field< PointType > &points, const Field< PointType > &points0)
 Construct from components. More...
 
 PrimitiveOldTimePatch (const PrimitivePatch< FaceList, PointField > &patch, const Field< PointType > &points0)
 Construct from patch and old-time points. More...
 
 PrimitiveOldTimePatch (const FaceList &faces, const Field< PointType > &points)
 Construct from components without old-time points. More...
 
 PrimitiveOldTimePatch (const PrimitivePatch< FaceList, PointField > &patch)
 Construct from patch without old-time points. More...
 
 PrimitiveOldTimePatch (const PrimitiveOldTimePatch &patch)
 Copy constructor. More...
 
 PrimitiveOldTimePatch (PrimitiveOldTimePatch &&patch)
 Move constructor. More...
 
autoPtr< PrimitiveOldTimePatch< FaceList, PointField > > clone () const
 Construct and return a clone. More...
 
virtual ~PrimitiveOldTimePatch ()
 Destructor. More...
 
bool has0 () const
 Return whether or not old-time geometry is available. More...
 
const Field< PointType > & points0 () const
 Return reference to old-time global points. More...
 
const Field< PointType > & localPoints0 () const
 Return pointField of old-time points in patch. More...
 
const Field< PointType > & faceCentres0 () const
 Return old-time face centres for patch. More...
 
const Field< PointType > & faceAreas0 () const
 Return old-time face areas for patch. More...
 
const Field< PointType > & faceNormals0 () const
 Return old-time face normals for patch. More...
 
const Field< PointType > & pointNormals0 () const
 Return old-time point normals for patch. More...
 
void clearOut ()
 ... More...
 
void clearGeom ()
 ... More...
 
virtual void movePoints0 (const Field< PointType > &)
 Correct patch after moving points. More...
 
void operator= (const PrimitiveOldTimePatch &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from PrimitivePatch< FaceList, PointField >
 PrimitivePatch (const FaceList &faces, const Field< PointType > &points)
 Construct from components. More...
 
 PrimitivePatch (FaceList &&faces, Field< PointType > &&points)
 Move constructor from components. More...
 
 PrimitivePatch (FaceList &faces, Field< PointType > &points, const bool reuse)
 Construct from components, reuse storage. More...
 
 PrimitivePatch (const PrimitivePatch< FaceList, PointField > &)
 Copy constructor. More...
 
 PrimitivePatch (PrimitivePatch< FaceList, PointField > &&)
 Move constructor. More...
 
autoPtr< PrimitivePatch< FaceList, PointField > > clone () const
 Construct and return a clone. More...
 
 ~PrimitivePatch ()
 Destructor. More...
 
const Field< PointType > & points () const
 Return reference to global points. More...
 
label nPoints () const
 Return number of points supporting patch faces. More...
 
label nEdges () const
 Return number of edges in patch. More...
 
const edgeListedges () const
 Return list of edges, address into LOCAL point list. More...
 
label nInternalEdges () const
 Number of internal edges. More...
 
bool isInternalEdge (const label edgeI) const
 Is internal edge? More...
 
const labelListboundaryPoints () const
 Return list of boundary points,. More...
 
const labelListListfaceFaces () const
 Return face-face addressing. More...
 
const labelListListedgeFaces () const
 Return edge-face addressing. More...
 
const labelListListfaceEdges () const
 Return face-edge addressing. More...
 
const labelListListpointEdges () const
 Return point-edge addressing. More...
 
const labelListListpointFaces () const
 Return point-face addressing. More...
 
const List< FaceType > & localFaces () const
 Return patch faces addressing into local point list. More...
 
const labelListmeshPoints () const
 Return labelList of mesh points in patch. They are constructed. More...
 
const Map< label > & meshPointMap () const
 Mesh point map. Given the global point index find its. More...
 
const Field< PointType > & localPoints () const
 Return pointField of points in patch. More...
 
const labelListlocalPointOrder () const
 Return orders the local points for most efficient search. More...
 
label whichPoint (const label gp) const
 Given a global point index, return the local point index. More...
 
label whichEdge (const edge &) const
 Given an edge in local point labels, return its. More...
 
labelList meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
 Return labels of patch edges in the global edge list using. More...
 
labelList meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const
 Return labels of patch edges in the global edge list using. More...
 
const Field< PointType > & faceCentres () const
 Return face centres for patch. More...
 
const Field< PointType > & faceAreas () const
 Return face areas for patch. More...
 
const Field< PointType > & faceNormals () const
 Return face normals for patch. More...
 
const Field< PointType > & pointNormals () const
 Return point normals for patch. More...
 
template<class ToPatch >
List< objectHitprojectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const
 Project vertices of patch onto another patch. More...
 
template<class ToPatch >
List< objectHitprojectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const
 Project vertices of patch onto another patch. More...
 
const labelListListedgeLoops () const
 Return list of closed loops of boundary vertices. More...
 
surfaceTopo surfaceType () const
 Calculate surface type formed by patch. More...
 
bool checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const
 Check surface formed by patch for manifoldness (see above). More...
 
bool checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const
 Checks primitivePatch for faces sharing point but not edge. More...
 
void clearOut ()
 
void clearGeom ()
 
void clearTopology ()
 
void clearPatchMeshAddr ()
 
void operator= (const PrimitivePatch< FaceList, PointField > &)
 Assignment operator. More...
 
void operator= (PrimitivePatch< FaceList, PointField > &&)
 Move assignment operator. More...
 
template<class ToPatch >
Foam::List< Foam::objectHitprojectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const
 
template<class ToPatch >
Foam::List< Foam::objectHitprojectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const
 

Additional Inherited Members

- Public Types inherited from PrimitivePatch< FaceList, PointField >
enum  surfaceTopo { MANIFOLD , OPEN , ILLEGAL }
 Enumeration defining the surface type. Used in check routines. More...
 
typedef FaceList FaceListType
 
typedef std::remove_reference< FaceList >::type::value_type FaceType
 
typedef PointField PointFieldType
 
typedef std::remove_reference< PointField >::type::value_type PointType
 

Detailed Description

template<class FaceList, class PointField>
class Foam::PrimitiveOldTimePatch< FaceList, PointField >

Source files

Definition at line 62 of file PrimitiveOldTimePatch.H.

Constructor & Destructor Documentation

◆ PrimitiveOldTimePatch() [1/6]

PrimitiveOldTimePatch ( const FaceList &  faces,
const Field< PointType > &  points,
const Field< PointType > &  points0 
)

Construct from components.

Definition at line 31 of file PrimitiveOldTimePatch.C.

◆ PrimitiveOldTimePatch() [2/6]

PrimitiveOldTimePatch ( const PrimitivePatch< FaceList, PointField > &  patch,
const Field< PointType > &  points0 
)

Construct from patch and old-time points.

Definition at line 47 of file PrimitiveOldTimePatch.C.

◆ PrimitiveOldTimePatch() [3/6]

PrimitiveOldTimePatch ( const FaceList &  faces,
const Field< PointType > &  points 
)

Construct from components without old-time points.

Definition at line 61 of file PrimitiveOldTimePatch.C.

◆ PrimitiveOldTimePatch() [4/6]

PrimitiveOldTimePatch ( const PrimitivePatch< FaceList, PointField > &  patch)

Construct from patch without old-time points.

Definition at line 76 of file PrimitiveOldTimePatch.C.

◆ PrimitiveOldTimePatch() [5/6]

PrimitiveOldTimePatch ( const PrimitiveOldTimePatch< FaceList, PointField > &  patch)

Copy constructor.

◆ PrimitiveOldTimePatch() [6/6]

Move constructor.

◆ ~PrimitiveOldTimePatch()

Destructor.

Definition at line 117 of file PrimitiveOldTimePatch.C.

Member Function Documentation

◆ clone()

autoPtr<PrimitiveOldTimePatch<FaceList, PointField> > clone ( ) const
inline

Construct and return a clone.

Definition at line 151 of file PrimitiveOldTimePatch.H.

◆ has0()

bool has0 ( ) const
inline

Return whether or not old-time geometry is available.

Definition at line 169 of file PrimitiveOldTimePatch.H.

References autoPtr< T >::valid().

Referenced by patchToPatch::distributePatch(), patchToPatch::srcBox(), patchToPatch::tgtBox(), and patchToPatch::update().

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

◆ points0()

const Field<PointType>& points0 ( ) const
inline

Return reference to old-time global points.

Definition at line 175 of file PrimitiveOldTimePatch.H.

Referenced by patchToPatch::distributePatch().

Here is the caller graph for this function:

◆ localPoints0()

const Foam::Field< typename Foam::PrimitiveOldTimePatch< FaceList, PointField >::PointType > & localPoints0

Return pointField of old-time points in patch.

Definition at line 129 of file PrimitiveOldTimePatch.C.

References forAll, and List< T >::size().

Referenced by patchToPatch::distributePatch(), and patchToPatch::update().

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

◆ faceCentres0()

const Foam::Field< typename Foam::PrimitiveOldTimePatch< FaceList, PointField >::PointType > & faceCentres0

Return old-time face centres for patch.

Definition at line 168 of file PrimitiveOldTimePatch.C.

◆ faceAreas0()

const Foam::Field< typename Foam::PrimitiveOldTimePatch< FaceList, PointField >::PointType > & faceAreas0

Return old-time face areas for patch.

Definition at line 178 of file PrimitiveOldTimePatch.C.

◆ faceNormals0()

const Foam::Field< typename Foam::PrimitiveOldTimePatch< FaceList, PointField >::PointType > & faceNormals0

Return old-time face normals for patch.

Definition at line 188 of file PrimitiveOldTimePatch.C.

◆ pointNormals0()

const Foam::Field< typename Foam::PrimitiveOldTimePatch< FaceList, PointField >::PointType > & pointNormals0

Return old-time point normals for patch.

Definition at line 198 of file PrimitiveOldTimePatch.C.

References NotImplemented.

◆ clearOut()

void clearOut

...

Definition at line 208 of file PrimitiveOldTimePatch.C.

References PrimitivePatch< FaceList, PointField >::clearOut(), and Foam::deleteDemandDrivenData().

Here is the call graph for this function:

◆ clearGeom()

void clearGeom

...

Definition at line 218 of file PrimitiveOldTimePatch.C.

References PrimitivePatch< FaceList, PointField >::clearGeom(), and Foam::deleteDemandDrivenData().

Here is the call graph for this function:

◆ movePoints0()

void movePoints0 ( const Field< PointType > &  )
virtual

Correct patch after moving points.

Definition at line 228 of file PrimitiveOldTimePatch.C.

◆ operator=()

void operator= ( const PrimitiveOldTimePatch< FaceList, PointField > &  )
delete

Disallow default bitwise assignment.


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