mergedSurf Class Reference

Simple class to manage surface merging information. More...

Inheritance diagram for mergedSurf:
[legend]
Collaboration diagram for mergedSurf:
[legend]

Public Member Functions

 mergedSurf ()=default
 Default construct. More...
 
 mergedSurf (const mergedSurf &)=default
 Copy construct. More...
 
 mergedSurf (mergedSurf &&)=default
 Move construct. More...
 
 mergedSurf (const meshedSurf &unmergedSurface, const scalar mergeDim)
 Construct and merge. More...
 
 mergedSurf (const pointField &unmergedPoints, const faceList &unmergedFaces, const scalar mergeDim)
 Construct and merge. More...
 
 mergedSurf (const pointField &unmergedPoints, const faceList &unmergedFaces, const labelList &origZoneIds, const labelList &origFaceIds, const scalar mergeDim)
 Construct and merge. More...
 
virtual ~mergedSurf ()=default
 Destructor. More...
 
label size () const
 Number of faces. More...
 
virtual const pointFieldpoints () const
 Const access to (global) points used for the surface. More...
 
virtual const faceListfaces () const
 Const access to the surface faces. More...
 
virtual const labelListzoneIds () const
 Per-face zone/region information. More...
 
virtual const labelListfaceIds () const
 Per-face identifier (eg, element Id) More...
 
const labelListpointsMap () const
 Map for reordered points (old-to-new) More...
 
void clear ()
 Clear all storage. More...
 
bool merge (const meshedSurf &unmergedSurface, const scalar mergeDim)
 Merge meshed surfaces (in parallel only). More...
 
bool merge (const pointField &unmergedPoints, const faceList &unmergedFaces, const scalar mergeDim)
 Merge meshed surfaces (in parallel only). More...
 
bool merge (const pointField &unmergedPoints, const faceList &unmergedFaces, const labelList &origZoneIds, const labelList &origFaceIds, const scalar mergeDim)
 Merge meshed surfaces (in parallel only). More...
 
mergedSurfoperator= (const mergedSurf &)=default
 Copy assignment. More...
 
mergedSurfoperator= (mergedSurf &&)=default
 Move assignment. More...
 
- Public Member Functions inherited from meshedSurf
constexpr meshedSurf () noexcept=default
 Default construct. More...
 
virtual ~meshedSurf ()=default
 Destructor. More...
 
virtual const pointFieldpoints () const =0
 The points used for the surface. More...
 
virtual const faceListfaces () const =0
 The faces used for the surface. More...
 
virtual const labelListzoneIds () const
 Per-face zone/region information. More...
 
virtual const labelListfaceIds () const
 Per-face identifier (eg, element Id) More...
 

Static Public Member Functions

static bool use ()
 Can use (parallel only) More...
 

Detailed Description

Simple class to manage surface merging information.

Merging is done with PatchTools::gatherAndMerge()

Source files

Definition at line 52 of file mergedSurf.H.

Constructor & Destructor Documentation

◆ mergedSurf() [1/6]

mergedSurf ( )
default

Default construct.

◆ mergedSurf() [2/6]

mergedSurf ( const mergedSurf )
default

Copy construct.

◆ mergedSurf() [3/6]

mergedSurf ( mergedSurf &&  )
default

Move construct.

◆ mergedSurf() [4/6]

mergedSurf ( const meshedSurf unmergedSurface,
const scalar  mergeDim 
)

Construct and merge.

Definition at line 34 of file mergedSurf.C.

References mergedSurf::merge().

Here is the call graph for this function:

◆ mergedSurf() [5/6]

mergedSurf ( const pointField unmergedPoints,
const faceList unmergedFaces,
const scalar  mergeDim 
)

Construct and merge.

Definition at line 46 of file mergedSurf.C.

References mergedSurf::merge().

Here is the call graph for this function:

◆ mergedSurf() [6/6]

mergedSurf ( const pointField unmergedPoints,
const faceList unmergedFaces,
const labelList origZoneIds,
const labelList origFaceIds,
const scalar  mergeDim 
)

Construct and merge.

Definition at line 59 of file mergedSurf.C.

References mergedSurf::merge().

Here is the call graph for this function:

◆ ~mergedSurf()

virtual ~mergedSurf ( )
virtualdefault

Destructor.

Member Function Documentation

◆ use()

bool use ( )
static

Can use (parallel only)

Definition at line 83 of file mergedSurf.C.

References UPstream::parRun().

Here is the call graph for this function:

◆ size()

label size ( ) const
inline

Number of faces.

Definition at line 113 of file mergedSurf.H.

References UList< T >::size().

Here is the call graph for this function:

◆ points()

virtual const pointField & points ( ) const
inlinevirtual

Const access to (global) points used for the surface.

Implements meshedSurf.

Definition at line 119 of file mergedSurf.H.

◆ faces()

virtual const faceList & faces ( ) const
inlinevirtual

Const access to the surface faces.

Implements meshedSurf.

Definition at line 125 of file mergedSurf.H.

◆ zoneIds()

virtual const labelList & zoneIds ( ) const
inlinevirtual

Per-face zone/region information.

Reimplemented from meshedSurf.

Definition at line 131 of file mergedSurf.H.

◆ faceIds()

virtual const labelList & faceIds ( ) const
inlinevirtual

Per-face identifier (eg, element Id)

Reimplemented from meshedSurf.

Definition at line 137 of file mergedSurf.H.

◆ pointsMap()

const labelList & pointsMap ( ) const
inline

Map for reordered points (old-to-new)

Definition at line 143 of file mergedSurf.H.

◆ clear()

void clear ( )

Clear all storage.

Definition at line 89 of file mergedSurf.C.

◆ merge() [1/3]

bool merge ( const meshedSurf unmergedSurface,
const scalar  mergeDim 
)

Merge meshed surfaces (in parallel only).

Definition at line 100 of file mergedSurf.C.

References meshedSurf::faceIds(), meshedSurf::faces(), meshedSurf::points(), and meshedSurf::zoneIds().

Referenced by mergedSurf::mergedSurf().

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

◆ merge() [2/3]

bool merge ( const pointField unmergedPoints,
const faceList unmergedFaces,
const scalar  mergeDim 
)

Merge meshed surfaces (in parallel only).

Definition at line 118 of file mergedSurf.C.

◆ merge() [3/3]

bool merge ( const pointField unmergedPoints,
const faceList unmergedFaces,
const labelList origZoneIds,
const labelList origFaceIds,
const scalar  mergeDim 
)

Merge meshed surfaces (in parallel only).

Definition at line 137 of file mergedSurf.C.

References clear(), PatchTools::gatherAndMerge(), and globalIndex::gatherOp().

Here is the call graph for this function:

◆ operator=() [1/2]

mergedSurf & operator= ( const mergedSurf )
default

Copy assignment.

◆ operator=() [2/2]

mergedSurf & operator= ( mergedSurf &&  )
default

Move assignment.


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