63 const tmp<vectorField>& tfld
66 tmp<vectorField> tresult =
New(tfld);
94 if (
mag(
tr.r().R() -
I) > SMALL)
103 const septernion&
tr,
115 const septernion&
tr,
116 const tmp<vectorField>& tfld
119 tmp<vectorField> tresult =
New(tfld);
tensor R() const
The rotation tensor corresponding to the quaternion.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void transformPoints(vectorField &, const septernion &, const vectorField &)
Transform given vectorField of coordinates with the given septernion.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
static const Identity< scalar > I
Quaternion class used to perform rotations in 3D space.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
dimensionSet trans(const dimensionSet &ds)
Check the argument is dimensionless (for transcendental functions)
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))
#define TFOR_ALL_F_OP_FUNC_S_F(typeF1, f1, OP, FUNC, typeS, s, typeF2, f2)
void clear()
Clear exponents - resets to be dimensionless.
Field< vector > vectorField
Specialisation of Field<T> for vector.
A class for managing temporary objects.
Declaration macros for Field<Type> algebra.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
#define TFOR_ALL_F_OP_F_OP_S(typeF1, f1, OP1, typeF2, f2, OP2, typeS, s)
Tensor of scalars, i.e. Tensor<scalar>.