43 int main(
int argc,
char *argv[])
66 runTime.setTime(
timeDirs[timeI], timeI);
68 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
109 U.primitiveFieldRef() = atm.
U(
mesh.
C());
112 k.ref().primitiveFieldRef() = atm.
k(
mesh.
C());
124 if (!isA<wallFvPatch>(patch))
126 U.boundaryFieldRef()[
patchi] == atm.
U(patch.
Cf());
129 k.ref().boundaryFieldRef()[
patchi] ==
#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...
static const atmosphericBoundaryLayer & New(const objectRegistry &db)
Return a reference to the atmosphericBoundaryLayer.
tmp< vectorField > U(const vectorField &p) const
Return the velocity field.
tmp< scalarField > k(const vectorField &p) const
Return the turbulent kinetic energy field.
tmp< scalarField > epsilon(const vectorField &p) const
Return the turbulent dissipation rate field.
T lookupOrDefault(const word &, const T &) const
Find and return a T, if not found return the given default.
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.
Foam::argList args(argc, argv)