142 using namespace Foam;
162 int main(
int argc,
char *argv[])
176 if (setFieldsDict.isDict(
"extrapolatePatches"))
179 setFieldsDict.
subDict(
"extrapolatePatches");
190 extrapolatePatchesDict.
lookup
200 if (setFieldsDict.found(
"defaultValues"))
202 Info<<
"Setting field default values" <<
endl;
206 setFieldsDict.subDict(
"defaultValues"),
213 if (setFieldsDict.found(
"zones"))
215 Info<<
"Setting field zone values" <<
endl;
221 Info<<
"Zone: " << iter().keyword() <<
endl;
227 if (zoneDict.
found(
"zoneType"))
242 const zoneSet zs(zg->generate());
257 setPatchFields(
mesh, zoneDict.
subDict(
"values"), zs.fZone());
#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.
void insert(const word &, T *)
Add at head of dictionary.
static const List< label > & null()
Return a null List.
Template dictionary class which manages the storage associated with it.
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.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOdictionary systemDict(const word &dictName, const argList &args, const objectRegistry &ob, const word ®ionName=polyMesh::defaultRegion, const fileName &path=fileName::null)
Foam::argList args(argc, argv)