28 template<
class ZoneType>
29 inline void Foam::zoneSet::checkValid(
const tmpNrc<ZoneType>& zone)
const
34 <<
"zoneSet does not contain a " << ZoneType::typeName <<
nl;
39 <<
" zoneSet contains pointZone " << pZone_().name() <<
nl;
45 <<
" zoneSet contains cellZone " << cZone_().name() <<
nl;
51 <<
" zoneSet contains facesZone " << fZone_().name() <<
nl;
108 pZone_(pointZonePtr),
116 pZone_(pointZoneRef),
140 pZone_(zs.pZone_, allowTransfer),
141 cZone_(zs.cZone_, allowTransfer),
142 fZone_(zs.fZone_, allowTransfer)
170 return pZone_.valid();
177 return cZone_.valid();
184 return fZone_.valid();
191 return pZone_.valid() || cZone_.valid() || fZone_.valid();
196 inline bool Foam::zoneSet::valid<Foam::pointZone>()
const
203 inline bool Foam::zoneSet::valid<Foam::cellZone>()
const
210 inline bool Foam::zoneSet::valid<Foam::faceZone>()
const
Named list of cell indices representing a sub-set of the mesh.
Named list of face indices representing a sub-set of the mesh faces.
Named list of point indices representing a sub-set of the mesh faces.
A class for handling words, derived from string.
Zone container returned by zoneGenerator::generate.
void operator=(const zoneSet &)
Assignment transferring the temporary zones.
const faceZone & fZone() const
Return a reference to the faceZone if allocated.
bool valid() const
Return true if any of the zone types are allocated.
const cellZone & cZone() const
Return a reference to the cellZone if allocated.
bool pValid() const
Return true if the pointZone is allocated.
const pointZone & pZone() const
Return a reference to the pointZone if allocated.
bool fValid() const
Return true if the faceZone is allocated.
const ZoneType & zone() const
Return a reference to the zone type.
zoneSet clone(const word &name) const
Construct and return a clone with a new name.
bool cValid() const
Return true if the cellZone is allocated.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.