35 namespace zoneGenerators
45 template<
class ZoneListType>
46 void Foam::zoneGenerators::write::writeZoneType(
const ZoneListType& zones)
const
56 zones.updateTimeInstance();
98 writeZoneType(mesh_.pointZones());
103 writeZoneType(mesh_.cellZones());
108 writeZoneType(mesh_.faceZones());
Macros for easy insertion into run-time selection tables.
label timeIndex() const
Return current time index.
bool writeTime() const
Return true if this is a write time.
virtual label startTimeIndex() const
Return start time index.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Time & time() const
Return time.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from string.
Abstract base class for all zoneGenerators, providing runtime selection.
bool moveUpdate_
Switch to update the zones if the mesh points are moved.
const polyMesh & mesh_
Reference to the polyMesh.
A zoneGenerator which writes all existing zones from the mesh.
virtual zoneSet generate() const
Generate and return the zoneSet.
write(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~write()
Destructor.
Zone container returned by zoneGenerator::generate.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(cylinderHeadPoints, 0)
addToRunTimeSelectionTable(zoneGenerator, cylinderHeadPoints, dictionary)
zoneTypesAll
Enumeration defining the zone types with an option for all the types.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const NamedEnum< zoneTypesAll, 4 > zoneTypesAllNames
Named enumeration defining the zone type names.