43 template<
class GeometricField>
56 Info<<
" Rotating " << fieldIter()->name() <<
endl;
67 int main(
int argc,
char *argv[])
116 runTime.setTime(timeDirs[timeI], timeI);
118 Info<<
"Time = " << runTime.userTimeName() <<
endl;
124 RotateFields<volSphericalTensorField>(
mesh,
objects,
T);
129 RotateFields<surfaceSphericalTensorField>(
mesh,
objects,
T);
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
List of IOobjects with searching and retrieving facilities.
static const char *const typeName
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
static unsigned int defaultPrecision()
Return the default precision.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Generic GeometricField class.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from unit vector n1 to n2.
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
T argRead(const label index) const
Read a value from the argument at index.
Mesh data needed to do the Finite Volume discretisation.
dimensioned< scalar > mag(const dimensioned< Type > &)
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A primitive field of type <T> with automated input and output.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
dimensionSet transform(const dimensionSet &)