43 template<
class GeometricField>
56 Info<<
" Rotating " << fieldIter()->name() <<
endl;
67 int main(
int argc,
char *argv[])
124 RotateFields<volSphericalTensorField>(
mesh,
objects,
T);
129 RotateFields<surfaceSphericalTensorField>(
mesh,
objects,
T);
#define forAll(list, i)
Loop across all elements in list.
List of IOobjects with searching and retrieving facilities.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
Return the location of "dir" containing the file "name".
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Generic GeometricField class.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from vector n1 to n2.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
virtual void setTime(const Time &)
Reset the time and time-index to those of the given time.
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.
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 &)