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
 Construct null. More...
 
 mergedSurf (const mergedSurf &)=default
 Copy construct null. 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 &originalIds, 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...
 
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 &originalIds, 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
 meshedSurf ()=default
 Construct null. More...
 
virtual ~meshedSurf ()=default
 Destructor. 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

Construct null.

◆ mergedSurf() [2/6]

mergedSurf ( const mergedSurf )
default

Copy construct null.

◆ mergedSurf() [3/6]

mergedSurf ( mergedSurf &&  )
default

Move construct.

◆ mergedSurf() [4/6]

mergedSurf ( const meshedSurf unmergedSurface,
const scalar  mergeDim 
)

Construct and merge.

Definition at line 35 of file mergedSurf.C.

◆ mergedSurf() [5/6]

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

Construct and merge.

Definition at line 47 of file mergedSurf.C.

◆ mergedSurf() [6/6]

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

Construct and merge.

Definition at line 60 of file mergedSurf.C.

◆ ~mergedSurf()

virtual ~mergedSurf ( )
virtualdefault

Destructor.

Member Function Documentation

◆ use()

bool use ( )
static

Can use (parallel only)

Definition at line 75 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 110 of file mergedSurf.H.

◆ points()

virtual const pointField& points ( ) const
inlinevirtual

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

Implements meshedSurf.

Definition at line 116 of file mergedSurf.H.

◆ faces()

virtual const faceList& faces ( ) const
inlinevirtual

Const access to the surface faces.

Implements meshedSurf.

Definition at line 122 of file mergedSurf.H.

◆ zoneIds()

virtual const labelList& zoneIds ( ) const
inlinevirtual

Per-face zone/region information.

Reimplemented from meshedSurf.

Definition at line 128 of file mergedSurf.H.

◆ pointsMap()

const labelList& pointsMap ( ) const
inline

Map for reordered points (old-to-new)

Definition at line 134 of file mergedSurf.H.

◆ clear()

void clear ( )

Clear all storage.

Definition at line 81 of file mergedSurf.C.

◆ merge() [1/3]

bool merge ( const meshedSurf unmergedSurface,
const scalar  mergeDim 
)

Merge meshed surfaces (in parallel only).

Definition at line 91 of file mergedSurf.C.

References 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 108 of file mergedSurf.C.

◆ merge() [3/3]

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

Merge meshed surfaces (in parallel only).

Definition at line 119 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: