Go to the documentation of this file.
38 #ifndef patchIdentifier_H
39 #define patchIdentifier_H
66 mutable word physicalType_;
81 ?
word(
"patch",
false)
82 :
word(
"patch" + std::to_string(
n),
false)
149 return physicalType_;
155 return physicalType_;
185 return inGroups_.found(
name);
198 Ostream&
operator<<(Ostream& os,
const patchIdentifier&
p);
patchIdentifier & operator=(const patchIdentifier &)=default
Copy assignment.
A class for handling words, derived from Foam::string.
label & index()
Modifiable index of this patch in the boundaryMesh.
virtual ~patchIdentifier()=default
Destructor.
List< word > wordList
A List of words.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Identifies a patch by name, patch index and physical type.
const wordList & inGroups() const
The (optional) groups that the patch belongs to.
bool inGroup(const word &name) const
True if the patch is in named group.
const word & physicalType() const
The (optional) physical type of the patch.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
patchIdentifier()
Default construct, with index zero.
wordList & inGroups()
Modifiable (optional) groups that the patch belongs to.
word & physicalType()
Modifiable (optional) physical type of the patch.
void write(Ostream &os) const
word & name()
Modifiable patch name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static word defaultName(const label n=-1)
Default patch name: "patch" or "patchN".
const word & name() const
The patch name.
label index() const
The index of this patch in the boundaryMesh.