LagrangianBoundaryMesh Class Reference

Boundary part of a Lagrangian mesh. Just a list of Lagrangian patches with some added convenience functions. More...

Inheritance diagram for LagrangianBoundaryMesh:
Collaboration diagram for LagrangianBoundaryMesh:

Public Member Functions

 LagrangianBoundaryMesh (const LagrangianMesh &, const polyBoundaryMesh &)
 Construct from LagrangianMesh and polyBoundaryMesh. More...
 
 LagrangianBoundaryMesh (const LagrangianMesh &, const polyBoundaryMesh &, const wordList &)
 Construct from LagrangianMesh and polyBoundaryMesh and a list of. More...
 
 LagrangianBoundaryMesh (const LagrangianBoundaryMesh &)=delete
 Disallow default bitwise copy construction. More...
 
 ~LagrangianBoundaryMesh ()
 Destructor. More...
 
const LagrangianMeshmesh () const
 Return the mesh reference. More...
 
label findIndex (const word &patchName) const
 Find patch index given a name. More...
 
labelList findIndices (const wordRe &, const bool useGroups) const
 Find patch indices given a name. More...
 
void operator= (const LagrangianBoundaryMesh &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from PtrList< LagrangianPatch >
 PtrList ()
 Null Constructor. More...
 
 PtrList (const label)
 Construct with size specified. More...
 
 PtrList (const PtrList< LagrangianPatch > &)
 Copy constructor. More...
 
 PtrList (const PtrList< LagrangianPatch > &, const CloneArg &)
 Copy constructor with additional argument for clone. More...
 
 PtrList (PtrList< LagrangianPatch > &&)
 Move constructor. More...
 
 PtrList (PtrList< LagrangianPatch > &, bool reuse)
 Construct as copy or reuse as specified. More...
 
 PtrList (const SLPtrList< LagrangianPatch > &)
 Construct as copy of SLPtrList<T> More...
 
 PtrList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class. More...
 
 PtrList (Istream &)
 Construct from Istream using default Istream constructor class. More...
 
 ~PtrList ()
 Destructor. More...
 
void setSize (const label)
 Reset size of PtrList. If extending the PtrList, new entries are. More...
 
void resize (const label)
 Alias for setSize(const label) More...
 
void shrink ()
 Shrink the allocated space to the number of elements used. More...
 
void clear ()
 Clear the PtrList, i.e. set size to zero deleting all the. More...
 
void append (LagrangianPatch *)
 Append an element at the end of the list. More...
 
void append (const autoPtr< LagrangianPatch > &)
 Append an element at the end of the list. More...
 
void append (const tmp< LagrangianPatch > &)
 Append an element at the end of the list. More...
 
void transfer (PtrList< LagrangianPatch > &)
 Transfer the contents of the argument PtrList into this PtrList. More...
 
bool set (const label) const
 Is element set. More...
 
autoPtr< LagrangianPatchset (const label, LagrangianPatch *)
 Set element to given T* and return old element (can be nullptr) More...
 
autoPtr< LagrangianPatchset (const label, const autoPtr< LagrangianPatch > &)
 Set element to given autoPtr<T> and return old element. More...
 
autoPtr< LagrangianPatchset (const label, const tmp< LagrangianPatch > &)
 Set element to given tmp<T> and return old element. More...
 
void reorder (const labelUList &oldToNew)
 Reorders elements. Ordering does not have to be done in. More...
 
void shuffle (const labelUList &newToOld)
 Reorders elements. Ordering does not have to be done in. More...
 
void operator= (const PtrList< LagrangianPatch > &)
 Assignment operator. More...
 
void operator= (PtrList< LagrangianPatch > &&)
 Move assignment operator. More...
 
- Public Member Functions inherited from UPtrList< T >
 UPtrList ()
 Null Constructor. More...
 
 UPtrList (const label)
 Construct with size specified. More...
 
 UPtrList (UPtrList< T > &, bool reuse)
 Construct as copy or reuse as specified. More...
 
 UPtrList (std::initializer_list< T * >)
 Construct from an initialiser list of pointers. More...
 
label size () const
 Return the number of elements in the UPtrList. More...
 
bool empty () const
 Return true if the UPtrList is empty (ie, size() is zero) More...
 
Tfirst ()
 Return reference to the first element of the list. More...
 
const Tfirst () const
 Return reference to first element of the list. More...
 
Tlast ()
 Return reference to the last element of the list. More...
 
const Tlast () const
 Return reference to the last element of the list. More...
 
void setSize (const label)
 Reset size of UPtrList. This can only be used to set the size. More...
 
void resize (const label)
 Reset size of UPtrList. This can only be used to set the size. More...
 
void clear ()
 Clear the UPtrList, i.e. set size to zero. More...
 
void append (T *)
 Append an element at the end of the list. More...
 
void transfer (UPtrList< T > &)
 Transfer the contents of the argument UPtrList into this. More...
 
bool set (const label) const
 Is element set. More...
 
Tset (const label, T *)
 Set element. Return old element (can be nullptr). More...
 
void reorder (const labelUList &oldToNew)
 Reorders elements. Ordering does not have to be done in. More...
 
void shuffle (const labelUList &newToOld)
 Reorders elements. Ordering does not have to be done in. More...
 
template<class T2 >
UPtrList< T2 > convert ()
 Convert to list of different pointer type. More...
 
template<class T2 >
UPtrList< const T2 > convert () const
 Convert to list of different pointer type. More...
 
const Toperator[] (const label) const
 Return element const reference. More...
 
Toperator[] (const label)
 Return element reference. More...
 
const Toperator() (const label) const
 Return element const pointer. More...
 
Toperator() (const label)
 Return element const pointer. More...
 
iterator begin ()
 Return an iterator to begin traversing the UPtrList. More...
 
iterator end ()
 Return an iterator to end traversing the UPtrList. More...
 
const_iterator cbegin () const
 Return an const_iterator to begin traversing the UPtrList. More...
 
const_iterator cend () const
 Return an const_iterator to end traversing the UPtrList. More...
 
const_iterator begin () const
 Return an const_iterator to begin traversing the UPtrList. More...
 
const_iterator end () const
 Return an const_iterator to end traversing the UPtrList. More...
 
template<class T2 >
Foam::UPtrList< T2 > convert ()
 
template<class T2 >
Foam::UPtrList< const T2 > convert () const
 

Additional Inherited Members

- Public Types inherited from UPtrList< T >
typedef T value_type
 Type of values the UPtrList contains. More...
 
typedef Treference
 Type that can be used for storing into UPtrList::value_type objects. More...
 
typedef const Tconst_reference
 Type that can be used for storing into constant UPtrList::value_type. More...
 
- Protected Member Functions inherited from PtrList< LagrangianPatch >
void read (Istream &, const INew &inewt)
 Read from Istream using given Istream constructor class. More...
 

Detailed Description

Boundary part of a Lagrangian mesh. Just a list of Lagrangian patches with some added convenience functions.

Source files

Definition at line 54 of file LagrangianBoundaryMesh.H.

Constructor & Destructor Documentation

◆ LagrangianBoundaryMesh() [1/3]

LagrangianBoundaryMesh ( const LagrangianMesh mesh,
const polyBoundaryMesh pbm 
)

Construct from LagrangianMesh and polyBoundaryMesh.

Definition at line 33 of file LagrangianBoundaryMesh.C.

◆ LagrangianBoundaryMesh() [2/3]

LagrangianBoundaryMesh ( const LagrangianMesh mesh,
const polyBoundaryMesh pbm,
const wordList wantedPatchTypes 
)

Construct from LagrangianMesh and polyBoundaryMesh and a list of.

patch types

Definition at line 43 of file LagrangianBoundaryMesh.C.

References forAll, LagrangianPatch::New(), patchi, and PtrList< LagrangianPatch >::set().

Here is the call graph for this function:

◆ LagrangianBoundaryMesh() [3/3]

Disallow default bitwise copy construction.

◆ ~LagrangianBoundaryMesh()

Destructor.

Definition at line 71 of file LagrangianBoundaryMesh.C.

Member Function Documentation

◆ mesh()

const LagrangianMesh& mesh ( ) const
inline

Return the mesh reference.

Definition at line 91 of file LagrangianBoundaryMesh.H.

Referenced by cloudFunctionObjectUList::preCrossFaces(), and LagrangianMesh::subMeshGlobalSizes().

Here is the caller graph for this function:

◆ findIndex()

Foam::label findIndex ( const word patchName) const

Find patch index given a name.

Definition at line 77 of file LagrangianBoundaryMesh.C.

References polyMesh::boundaryMesh(), polyBoundaryMesh::findIndex(), fvMesh::mesh(), and mesh.

Here is the call graph for this function:

◆ findIndices()

Foam::labelList findIndices ( const wordRe key,
const bool  useGroups 
) const

Find patch indices given a name.

Definition at line 86 of file LagrangianBoundaryMesh.C.

References polyMesh::boundaryMesh(), polyBoundaryMesh::findIndices(), fvMesh::mesh(), and mesh.

Here is the call graph for this function:

◆ operator=()

void operator= ( const LagrangianBoundaryMesh )
delete

Disallow default bitwise assignment.


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