Loading...
Searching...
No Matches
mergedSurf Class Reference

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

#include <mergedSurf.H>

Inheritance diagram for mergedSurf:
Collaboration diagram for mergedSurf:

Public Member Functions

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

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.

References Foam::noexcept.

Referenced by mergedSurf(), mergedSurf(), operator=(), operator=(), and ~mergedSurf().

Here is the caller graph for this function:

◆ mergedSurf() [2/6]

mergedSurf ( const mergedSurf & )
default

Copy construct.

References mergedSurf().

Here is the call graph for this function:

◆ mergedSurf() [3/6]

mergedSurf ( mergedSurf && )
default

Move construct.

References mergedSurf().

Here is the call graph for this function:

◆ mergedSurf() [4/6]

mergedSurf ( const meshedSurf & unmergedSurface,
const scalar mergeDim )

Construct from surface, and merge.

Definition at line 26 of file mergedSurf.C.

References merge(), and meshedSurf::meshedSurf().

Here is the call graph for this function:

◆ mergedSurf() [5/6]

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

Construct from points/faces, and merge.

Definition at line 36 of file mergedSurf.C.

References 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 from points/faces/zones/face-ids, and merge.

Definition at line 47 of file mergedSurf.C.

References merge().

Here is the call graph for this function:

◆ ~mergedSurf()

virtual ~mergedSurf ( )
virtualdefault

Destructor.

References mergedSurf().

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

mergedSurf & operator= ( const mergedSurf & )
default

Copy assignment.

References mergedSurf().

Here is the call graph for this function:

◆ operator=() [2/2]

mergedSurf & operator= ( mergedSurf && )
default

Move assignment.

References mergedSurf(), and meshedSurf::meshedSurf().

Here is the call graph for this function:

◆ size()

label size ( ) const
inlinenoexcept

Number of faces.

Definition at line 149 of file mergedSurf.H.

References Foam::noexcept, and size().

Referenced by size().

Here is the call graph for this function:
Here is the caller 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.

References Foam::noexcept.

◆ faces()

virtual const faceList & faces ( ) const
inlinevirtualnoexcept

Const access to the surface faces.

Implements meshedSurf.

Definition at line 165 of file mergedSurf.H.

References Foam::noexcept.

◆ zoneIds()

virtual const labelList & zoneIds ( ) const
inlinevirtualnoexcept

Per-face zone/region information.

Reimplemented from meshedSurf.

Definition at line 173 of file mergedSurf.H.

References Foam::noexcept.

◆ faceIds()

virtual const labelList & faceIds ( ) const
inlinevirtualnoexcept

Per-face identifier (eg, element Id).

Reimplemented from meshedSurf.

Definition at line 181 of file mergedSurf.H.

References Foam::noexcept.

◆ pointsMap()

const labelList & pointsMap ( ) const
inlinenoexcept

Map for reordered points (old-to-new).

Definition at line 189 of file mergedSurf.H.

References Foam::noexcept.

◆ pointGlobalIndex()

const globalIndex & pointGlobalIndex ( ) const
inlinenoexcept

Const access to globalIndex used for points gathering.

Definition at line 197 of file mergedSurf.H.

References Foam::noexcept.

◆ faceGlobalIndex()

const globalIndex & faceGlobalIndex ( ) const
inlinenoexcept

Const access to globalIndex used for faces gathering.

Definition at line 205 of file mergedSurf.H.

References Foam::noexcept.

◆ clear()

void clear ( )

Clear all storage.

Definition at line 69 of file mergedSurf.C.

◆ merge() [1/3]

bool merge ( const meshedSurf & unmergedSurface,
const scalar mergeDim )

Merge meshed surfaces (in parallel only).

Definition at line 83 of file mergedSurf.C.

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

Referenced by merge(), merge(), mergedSurf(), mergedSurf(), and 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 101 of file mergedSurf.C.

References merge(), and 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 120 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: