56 #ifndef volume_zoneGenerator_H
57 #define volume_zoneGenerator_H
65 namespace zoneGenerators
91 return {
"inside",
"outside"};
104 template<
class ZoneType,
class UnaryOp,
class ZoneGenType>
107 const ZoneGenType& zoneGen,
112 template<
class ZoneType,
class UnaryOp,
class ZoneGenType>
115 const ZoneGenType& zoneGen,
121 template<
class ZoneType,
class ZoneGenType>
124 const ZoneGenType& zoneGen,
129 template<
class UnaryOp,
class ZoneGenType>
132 const ZoneGenType& zoneGen,
139 template<
class ZoneGenType>
142 const ZoneGenType& zoneGen,
149 template<
class ZoneGenType>
FixedList< word, nEnum > namesType
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.
friend class zoneGeneratorList
const word & name() const
virtual ~volume()
Destructor.
static NamedEnum< selection, 2 >::namesType selectionNames_()
Initialisation function for selection enumeration names.
volume(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
labelList selectOp(const ZoneGenType &zoneGen, const zoneGeneratorList &zoneGenerators, const vectorField &pts) const
selection
Enumeration for inside/outside selection.
static const NamedEnum< selection, 2 > selectionNames
Enumeration names for inside/outside selection.
zoneGeneratorList zoneGenerators_
Optional list of zoneGenerators which provide the zones to sub-set.
virtual zoneSet generate() const =0
Generate and return the zoneSet.
selection select_
Inside/outside selection.
labelList select(const ZoneGenType &zoneGen, const vectorField &pts, const UnaryOp &uop) const
Zone container returned by zoneGenerator::generate.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
List< label > labelList
A List of labels.
Field< vector > vectorField
Specialisation of Field<T> for vector.
zoneTypes
Enumeration defining the zone types.