Go to the documentation of this file.
50 template<
class GeoField>
51 void ReadAndRotateFields
63 GeoField
fld(*fieldIter(),
mesh);
84 ReadAndRotateFields<volVectorField>(
mesh, objects, rotT);
85 ReadAndRotateFields<volSphericalTensorField>(
mesh, objects, rotT);
86 ReadAndRotateFields<volSymmTensorField>(
mesh, objects, rotT);
87 ReadAndRotateFields<volTensorField>(
mesh, objects, rotT);
89 ReadAndRotateFields<surfaceVectorField>(
mesh, objects, rotT);
90 ReadAndRotateFields<surfaceSphericalTensorField>(
mesh, objects, rotT);
91 ReadAndRotateFields<surfaceSymmTensorField>(
mesh, objects, rotT);
92 ReadAndRotateFields<surfaceTensorField>(
mesh, objects, rotT);
98 int main(
int argc,
char *argv[])
102 "Rotate mesh points and vector/tensor fields\n"
103 "Rotation from the <from> vector to the <to> vector"
163 Info<<
"Writing points into directory "
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for handling file names.
A primitive field of type <T> with automated input and output.
static word defaultRegion
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Ostream & endl(Ostream &os)
Vector< Cmpt > & normalise()
dimensionSet transform(const dimensionSet &ds)
T get(const label index) const
static void addArgument(const string &argName, const string &usage="")
fileName relativePath(const fileName &input, const bool caseTag=false) const
Foam::PtrList< Foam::fvMesh > meshes(regionNames.size())
label max(const labelHashSet &set, label maxValue=labelMin)
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))
Generic dimensioned Type class.
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
static unsigned int defaultPrecision() noexcept
forAllConstIters(mixture.phases(), phase)
static void addOptions(const bool constant=true, const bool withZero=false)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void setTime(const Time &t)
tensor rotationTensor(const vector &n1, const vector &n2)
static instantList select0(Time &runTime, const argList &args)
IOobjectList lookupClass(const char *clsName) const
Foam::argList args(argc, argv)
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields