32 template<
class DimensionedFieldType>
37 DimensionedFieldType& field
46 typeUnits<Type>(this->field_.dimensions())
49 zonesDict_(
dict.subDict(
"zones"))
53 template<
class DimensionedFieldType>
58 DimensionedFieldType& field
63 zonesDict_(dff.zonesDict_)
67 template<
class DimensionedFieldType>
71 DimensionedFieldType& field
83 template<
class DimensionedFieldType>
86 DimensionedFieldType& field = this->field_;
90 field.primitiveFieldRef() = value_;
98 if (zoneDict.
found(
"zoneType"))
113 const zoneSet zs(zg->generate());
115 if (zs.
valid<Zone>())
124 typeUnits<Type>(field.dimensions())
130 field.primitiveFieldRef() = value;
136 field[selected[i]] = value;
144 template<
class DimensionedFieldType>
154 typeUnits<Type>(this->field_.dimensions()),
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Base class for run-time selectable internal and patch field initialisation evaluation and update with...
virtual autoPtr< DimensionedFieldFunction< DimensionedFieldType > > clone() const
Construct and return a clone for the specified field.
Zonal internal and patch field initialisation function.
Zonal(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
virtual void evaluate()
Evaluate the function and set the field.
virtual void write(Ostream &os) const
Write data to dictionary stream.
static const List< label > & null()
Return a null List.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Mesh consisting of general polyhedral cells.
static autoPtr< zoneGenerator > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Select constructed from name, mesh and dictionary.
Zone container returned by zoneGenerator::generate.
bool valid() const
Return true if any of the zone types are allocated.
const ZoneType & zone() const
Return a reference to the zone type.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
const typeUnitsType< Type >::type & typeUnits(const unitSet &)