44 int main(
int argc,
char *argv[])
63 const word UName = setAtmBoundaryLayerDict.lookupOrDefault<
word>(
"U",
"U");
64 const word kName = setAtmBoundaryLayerDict.lookupOrDefault<
word>(
"k",
"k");
65 const word epsilonName =
66 setAtmBoundaryLayerDict.lookupOrDefault<
word>(
"epsilon",
"epsilon");
70 runTime.setTime(
timeDirs[timeI], timeI);
72 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
113 U.primitiveFieldRef() = atm.U(
mesh.
C());
116 k.ref().primitiveFieldRef() = atm.k(
mesh.
C());
120 epsilon.ref().primitiveFieldRef() = atm.epsilon(
mesh.
C());
130 if (!isA<wallPolyPatch>(patch))
132 U.boundaryFieldRef()[
patchi] == atmp.U(patch.
Cf());
135 k.ref().boundaryFieldRef()[
patchi] ==
141 atmp.epsilon(patch.
Cf());
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
This class provides functions to evaluate the velocity and turbulence distributions appropriate for a...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const volVectorField & C() const
Return cell centres.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
readUpdateState readUpdate(const stitchType stitch=stitchType::geometric)
Update the mesh based on the mesh files saved in time.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const vectorField & Cf() const
Return face centres.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0)
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
int main(int argc, char *argv[])
static instantList timeDirs
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)