repatchPatch Class Reference

Like polyPatch but without reference to mesh. patchIdentifier::index is not used. Used in repatchMesh to hold data on patches. More...

Inheritance diagram for repatchPatch:
Collaboration diagram for repatchPatch:

Public Member Functions

 repatchPatch (const word &name, const label index, const label size, const label start, const word &physicalType=word::null)
 Construct from components. More...
 
 repatchPatch (const word &name, const dictionary &dict, const label index)
 Construct from dictionary. More...
 
 repatchPatch (const repatchPatch &, const label index)
 Copy constructor, resetting the index. More...
 
autoPtr< repatchPatch > clone () const
 Clone. More...
 
 ~repatchPatch ()
 Destructor. More...
 
label size () const
 
label & size ()
 
label start () const
 
label & start ()
 
virtual void write (Ostream &) const
 Write dictionary. More...
 
- Public Member Functions inherited from patchIdentifier
 patchIdentifier (const word &name, const label index, const word &physicalType=word::null, const wordList &inGroups=wordList())
 Construct from components. More...
 
 patchIdentifier (const word &name, const dictionary &, const label index)
 Construct from dictionary. More...
 
 patchIdentifier (const patchIdentifier &, const label index)
 Construct from geometric patch, resetting the index. More...
 
virtual ~patchIdentifier ()
 Destructor. More...
 
const word & name () const
 Return name. More...
 
label index () const
 Return the index of this patch in the boundaryMesh. More...
 
const word & physicalType () const
 Return the optional physical type of the patch. More...
 
word & physicalType ()
 Return the optional physical type of the patch for modification. More...
 
const wordList & inGroups () const
 Return the optional groups patch belongs to. More...
 
wordList & inGroups ()
 Return the optional groups patch belongs to for modification. More...
 
bool inGroup (const word &) const
 Test if in group. More...
 
void write (Ostream &) const
 Write patchIdentifier as a dictionary. More...
 

Friends

Ostream & operator<< (Ostream &, const repatchPatch &)
 

Additional Inherited Members

- Protected Attributes inherited from patchIdentifier
word name_
 Name of patch. More...
 
label index_
 Index of patch in boundary. More...
 
word physicalType_
 Optional physical type. More...
 
wordList inGroups_
 Optional groups patch belongs to. More...
 

Detailed Description

Like polyPatch but without reference to mesh. patchIdentifier::index is not used. Used in repatchMesh to hold data on patches.

Source files

Definition at line 57 of file repatchPatch.H.

Constructor & Destructor Documentation

◆ repatchPatch() [1/3]

repatchPatch ( const word &  name,
const label  index,
const label  size,
const label  start,
const word &  physicalType = word::null 
)

Construct from components.

Definition at line 33 of file repatchPatch.C.

Referenced by repatchPatch::clone().

Here is the caller graph for this function:

◆ repatchPatch() [2/3]

repatchPatch ( const word &  name,
const dictionary &  dict,
const label  index 
)

Construct from dictionary.

Definition at line 48 of file repatchPatch.C.

◆ repatchPatch() [3/3]

repatchPatch ( const repatchPatch &  p,
const label  index 
)

Copy constructor, resetting the index.

Definition at line 60 of file repatchPatch.C.

◆ ~repatchPatch()

Destructor.

Definition at line 76 of file repatchPatch.C.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::repatchPatch > clone ( ) const

Clone.

Definition at line 68 of file repatchPatch.C.

References repatchPatch::repatchPatch().

Here is the call graph for this function:

◆ size() [1/2]

label size ( ) const
inline

◆ size() [2/2]

label& size ( )
inline

Definition at line 106 of file repatchPatch.H.

◆ start() [1/2]

label start ( ) const
inline

◆ start() [2/2]

label& start ( )
inline

Definition at line 116 of file repatchPatch.H.

References repatchPatch::operator<<, and repatchPatch::write().

Here is the call graph for this function:

◆ write()

void write ( Ostream &  os) const
virtual

Write dictionary.

Definition at line 82 of file repatchPatch.C.

References patchIdentifier::write(), and Foam::writeEntry().

Referenced by Foam::operator<<(), and repatchPatch::start().

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

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream &  ,
const repatchPatch &   
)
friend

Referenced by repatchPatch::start().


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