Go to the documentation of this file.
49 template<
class GeometricField>
62 Info<<
" Rotating " << (*fieldIter)->name() <<
endl;
73 int main(
int argc,
char *argv[])
77 "Rotate mesh points and vector/tensor fields\n"
78 "Rotation from the <from> vector to the <to> vector"
132 RotateFields<volVectorField>(
mesh, objects, rotT);
133 RotateFields<volSphericalTensorField>(
mesh, objects, rotT);
134 RotateFields<volSymmTensorField>(
mesh, objects, rotT);
135 RotateFields<volTensorField>(
mesh, objects, rotT);
137 RotateFields<surfaceVectorField>(
mesh, objects, rotT);
138 RotateFields<surfaceSphericalTensorField>(
mesh, objects, rotT);
139 RotateFields<surfaceSymmTensorField>(
mesh, objects, rotT);
140 RotateFields<surfaceTensorField>(
mesh, objects, rotT);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A primitive field of type <T> with automated input and output.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Add extra notes for the usage information.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Vector< Cmpt > & normalise()
Normalise the vector by its magnitude.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
T get(const label index) const
Get a value from the argument at index.
#define forAll(list, i)
Loop across all elements in list.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
messageStream Info
Information stream (uses stdout - output is on the master only)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Mesh data needed to do the Finite Volume discretisation.
List of IOobjects with searching and retrieving facilities.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
forAllConstIters(mixture.phases(), phase)
static unsigned int defaultPrecision()
Return the default precision.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from vector n1 to n2.
static instantList select0(Time &runTime, const argList &args)
Generic GeometricField class.
IOobjectList lookupClass(const char *clsName) const
The list of IOobjects with the given headerClassName.
Foam::argList args(argc, argv)
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields