39 #ifndef zoneGenerator_H
40 #define zoneGenerator_H
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from string.
Abstract base class for all zoneGenerators, providing runtime selection.
const word zoneName_
Name of the zone (defaults to the name of the generator)
TypeName("zoneGenerator")
Runtime type information.
virtual ~zoneGenerator()
Destructor.
static labelList indices(const boolList &selected)
Return the list of selected indices.
const word & zoneName() const
virtual zoneSet movePoints() const
Regenerate the zoneSet following mesh point motion.
const dictionary dict_
Dictionary cached for error context.
virtual zoneSet generate() const =0
Generate and return the zoneSet.
declareRunTimeSelectionTable(autoPtr, zoneGenerator, dictionary,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
const word & name() const
bool moveUpdate_
Switch to update the zones if the mesh points are moved.
static autoPtr< zoneGenerator > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Select constructed from name, mesh and dictionary.
const polyMesh & mesh_
Reference to the polyMesh.
bool moveUpdate() const
Return true if the zoneGenerator updates any of the zones.
void operator=(const zoneGenerator &)=delete
Disallow default bitwise assignment.
zoneGenerator(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from name, polyMesh and dictionary.
const word name_
Name of zone generator.
Zone container returned by zoneGenerator::generate.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
zoneTypes
Enumeration defining the zone types.
Macros to ease declaration of run-time selection tables.