mergedSurf Class Reference

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

Inheritance diagram for mergedSurf:
Collaboration diagram for mergedSurf:

Public Member Functions

 mergedSurf () noexcept=default
 Default construct. More...
 
 mergedSurf (const mergedSurf &)=default
 Copy construct. More...
 
 mergedSurf (mergedSurf &&)=default
 Move construct. More...
 
mergedSurfoperator= (const mergedSurf &)=default
 Copy assignment. More...
 
mergedSurfoperator= (mergedSurf &&)=default
 Move assignment. More...
 
 mergedSurf (const meshedSurf &unmergedSurface, const scalar mergeDim)
 Construct from surface, and merge. More...
 
 mergedSurf (const pointField &unmergedPoints, const faceList &unmergedFaces, const scalar mergeDim)
 Construct from points/faces, and merge. More...
 
 mergedSurf (const pointField &unmergedPoints, const faceList &unmergedFaces, const labelList &origZoneIds, const labelList &origFaceIds, const scalar mergeDim)
 Construct from points/faces/zones/face-ids, and merge. More...
 
virtual ~mergedSurf ()=default
 Destructor. More...
 
label size () const noexcept
 Number of faces. More...
 
virtual const pointFieldpoints () const noexcept
 Const access to (global) points used for the surface. More...
 
virtual const faceListfaces () const noexcept
 Const access to the surface faces. More...
 
virtual const labelListzoneIds () const noexcept
 Per-face zone/region information. More...
 
virtual const labelListfaceIds () const noexcept
 Per-face identifier (eg, element Id) More...
 
const labelListpointsMap () const noexcept
 Map for reordered points (old-to-new) More...
 
const globalIndexpointGlobalIndex () const noexcept
 Const access to globalIndex used for points gathering. More...
 
const globalIndexfaceGlobalIndex () const noexcept
 Const access to globalIndex used for faces gathering. 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...
 
- Public Member Functions inherited from meshedSurf
constexpr meshedSurf () noexcept=default
 Default construct. More...
 
virtual ~meshedSurf ()=default
 Destructor. More...
 

Detailed Description

Simple class to manage surface merging information.

Merging is done with PatchTools::gatherAndMerge()

Source files

Definition at line 50 of file mergedSurf.H.

Constructor & Destructor Documentation

◆ mergedSurf() [1/6]

mergedSurf ( )
defaultnoexcept

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 from surface, and merge.

Definition at line 27 of file mergedSurf.C.

◆ mergedSurf() [5/6]

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

Construct from points/faces, and merge.

Definition at line 37 of file mergedSurf.C.

◆ mergedSurf() [6/6]

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

Construct from points/faces/zones/face-ids, and merge.

Definition at line 48 of file mergedSurf.C.

◆ ~mergedSurf()

virtual ~mergedSurf ( )
virtualdefault

Destructor.

Member Function Documentation

◆ operator=() [1/2]

mergedSurf& operator= ( const mergedSurf )
default

Copy assignment.

◆ operator=() [2/2]

mergedSurf& operator= ( mergedSurf &&  )
default

Move assignment.

◆ size()

label size ( ) const
inlinenoexcept

Number of faces.

Definition at line 149 of file mergedSurf.H.

References UList< T >::size().

Here is the call graph for this function:

◆ points()

virtual const pointField& points ( ) const
inlinevirtualnoexcept

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

Implements meshedSurf.

Definition at line 157 of file mergedSurf.H.

◆ faces()

virtual const faceList& faces ( ) const
inlinevirtualnoexcept

Const access to the surface faces.

Implements meshedSurf.

Definition at line 165 of file mergedSurf.H.

◆ zoneIds()

virtual const labelList& zoneIds ( ) const
inlinevirtualnoexcept

Per-face zone/region information.

Reimplemented from meshedSurf.

Definition at line 173 of file mergedSurf.H.

◆ faceIds()

virtual const labelList& faceIds ( ) const
inlinevirtualnoexcept

Per-face identifier (eg, element Id)

Reimplemented from meshedSurf.

Definition at line 181 of file mergedSurf.H.

◆ pointsMap()

const labelList& pointsMap ( ) const
inlinenoexcept

Map for reordered points (old-to-new)

Definition at line 189 of file mergedSurf.H.

◆ pointGlobalIndex()

const globalIndex& pointGlobalIndex ( ) const
inlinenoexcept

Const access to globalIndex used for points gathering.

Definition at line 197 of file mergedSurf.H.

◆ faceGlobalIndex()

const globalIndex& faceGlobalIndex ( ) const
inlinenoexcept

Const access to globalIndex used for faces gathering.

Definition at line 205 of file mergedSurf.H.

◆ clear()

void clear ( )

Clear all storage.

Definition at line 69 of file mergedSurf.C.

References List< T >::clear(), and globalIndex::clear().

Here is the call graph for this function:

◆ merge() [1/3]

bool merge ( const meshedSurf unmergedSurface,
const scalar  mergeDim 
)

Merge meshed surfaces (in parallel only).

Definition at line 84 of file mergedSurf.C.

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

Here is the call 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 102 of file mergedSurf.C.

References List< label >::null().

Here is the call graph for this function:

◆ 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 121 of file mergedSurf.C.

References clear(), PatchTools::gatherAndMerge(), globalIndex::gatherOp(), Foam::notNull(), and UPstream::parRun().

Here is the call graph for this function:

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