Go to the documentation of this file.
39 #ifndef patchIdentifier_H
40 #define patchIdentifier_H
82 ?
word(
"patch",
false)
83 :
word(
"patch" + std::to_string(
n),
false)
148 label
index() const noexcept
154 label&
index() noexcept
162 return physicalType_;
168 return physicalType_;
186 return inGroups_.found(
name);
199 Ostream&
operator<<(Ostream&
os,
const patchIdentifier& ident);
patchIdentifier & operator=(const patchIdentifier &)=default
Copy assignment.
A class for handling words, derived from Foam::string.
word & name() noexcept
Modifiable patch name.
word & physicalType() noexcept
Modifiable (optional) physical type of the patch.
label & index() noexcept
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 and index, with optional physical type and group information.
const wordList & inGroups() const noexcept
The (optional) groups that the patch belongs to.
bool inGroup(const word &name) const
True if given name is in a group.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
patchIdentifier()
Default construct. Uses name="", index=0.
label index() const noexcept
The index of this patch in the boundaryMesh.
void write(Ostream &os) const
const word & name() const noexcept
The 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 & physicalType() const noexcept
The (optional) physical type of the patch.
wordList & inGroups() noexcept
Modifiable (optional) groups that the patch belongs to.