Identifies a mesh zone by name and index, with optional physical type and group information. More...
Public Member Functions | |
zoneIdentifier (const zoneIdentifier &)=default | |
Copy construct. More... | |
zoneIdentifier & | operator= (const zoneIdentifier &)=default |
Copy assignment. More... | |
virtual | ~zoneIdentifier ()=default |
Destructor. More... | |
zoneIdentifier () | |
Default construct. Uses name="", index=0. More... | |
zoneIdentifier (const word &name, const label index) | |
Construct from mandatory components. More... | |
zoneIdentifier (const word &name, const label index, const word &physicalType, const wordList &inGroups=wordList()) | |
Construct from components. More... | |
zoneIdentifier (const word &name, const dictionary &dict, const label index) | |
Construct from dictionary. More... | |
zoneIdentifier (const zoneIdentifier &ident, const label index) | |
Copy construct, resetting the index. More... | |
const word & | name () const noexcept |
The zone name. More... | |
word & | name () noexcept |
Modifiable zone name. More... | |
label | index () const noexcept |
The index of this zone in the zone list. More... | |
label & | index () noexcept |
Modifiable index of this zone in the zone list. More... | |
const word & | physicalType () const noexcept |
The (optional) type of the zone. More... | |
word & | physicalType () noexcept |
Modifiable (optional) type of the zone. More... | |
const wordList & | inGroups () const noexcept |
The (optional) groups that the zone belongs to. More... | |
wordList & | inGroups () noexcept |
Modifiable (optional) groups that the zone belongs to. More... | |
bool | inGroup (const word &name) const |
True if given name is in a group. More... | |
void | write (Ostream &os) const |
Identifies a mesh zone by name and index, with optional physical type and group information.
Definition at line 57 of file zoneIdentifier.H.
|
default |
Copy construct.
|
virtualdefault |
Destructor.
zoneIdentifier | ( | ) |
Default construct. Uses name="", index=0.
Definition at line 33 of file zoneIdentifier.C.
zoneIdentifier | ( | const word & | name, |
const label | index | ||
) |
Construct from mandatory components.
Definition at line 41 of file zoneIdentifier.C.
zoneIdentifier | ( | const word & | name, |
const label | index, | ||
const word & | physicalType, | ||
const wordList & | inGroups = wordList() |
||
) |
Construct from components.
Definition at line 52 of file zoneIdentifier.C.
zoneIdentifier | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 67 of file zoneIdentifier.C.
References dict, and dictionary::readIfPresent().
zoneIdentifier | ( | const zoneIdentifier & | ident, |
const label | index | ||
) |
Copy construct, resetting the index.
Definition at line 81 of file zoneIdentifier.C.
|
default |
Copy assignment.
|
inlinenoexcept |
The zone name.
Definition at line 123 of file zoneIdentifier.H.
Referenced by multiBandZoneAbsorptionEmission::aCont(), meshRefinement::balance(), meshRefinement::checkCoupledFaceZones(), meshRefinement::createZoneBaffles(), snappyLayerDriver::doLayers(), multiBandZoneAbsorptionEmission::eCont(), meshRefinement::getZoneFaces(), meshRefinement::getZones(), zoneIdentifier::inGroup(), fvMeshDistribute::printMeshInfo(), FLMAsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), ABAQUSsurfaceFormat< Face >::write(), FacePostProcessing< CloudType >::write(), STLsurfaceFormat< Face >::writeAscii(), and meshRefinement::zonify().
|
inlinenoexcept |
Modifiable zone name.
Definition at line 129 of file zoneIdentifier.H.
|
inlinenoexcept |
The index of this zone in the zone list.
Definition at line 135 of file zoneIdentifier.H.
Referenced by cellZone::clone(), pointZone::clone(), and faceZone::clone().
|
inlinenoexcept |
Modifiable index of this zone in the zone list.
Definition at line 141 of file zoneIdentifier.H.
|
inlinenoexcept |
The (optional) type of the zone.
Definition at line 147 of file zoneIdentifier.H.
|
inlinenoexcept |
Modifiable (optional) type of the zone.
Definition at line 153 of file zoneIdentifier.H.
|
inlinenoexcept |
The (optional) groups that the zone belongs to.
Definition at line 159 of file zoneIdentifier.H.
|
inlinenoexcept |
Modifiable (optional) groups that the zone belongs to.
Definition at line 165 of file zoneIdentifier.H.
True if given name is in a group.
Definition at line 171 of file zoneIdentifier.H.
References zoneIdentifier::name().
void write | ( | Ostream & | os | ) | const |
Write (physicalType, inGroups) dictionary entries (without surrounding braces)
Definition at line 95 of file zoneIdentifier.C.
References token::END_STATEMENT, Foam::nl, os(), Ostream::writeEntry(), and Ostream::writeKeyword().
Referenced by Foam::operator<<(), cellZone::writeDict(), pointZone::writeDict(), and faceZone::writeDict().