51 const scalar
s = n1 & n2;
53 const scalar magSqrN3 =
magSqr(n3);
61 + (1 -
s)*
sqr(n3)/magSqrN3
191 template<
class Type1,
class Type2>
229 scalar
cos = vec & e0;
230 scalar
sin = vec & e1;
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject( name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE ))
Tensor< scalar > tensor
Tensor of scalars.
Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 components...
dimensioned< scalar > magSqr(const dimensioned< Type > &)
static const sphericalTensor I(1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
sphericalTensor transformMask< sphericalTensor >(const symmTensor &st)
symmTensor transformMask< symmTensor >(const symmTensor &st)
dimensionSet transform(const dimensionSet &)
Type1 transformMask(const Type2 &t)
dimensionedScalar cos(const dimensionedScalar &ds)
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a diagonal tensor.
scalar pseudoAngle(const vector &e0, const vector &e1, const vector &vec)
Estimate angle of vec in coordinate system (e0, e1, e0^e1).
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
tensor rotationTensor(const vector &n1, const vector &n2)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const scalar piByTwo(0.5 *pi)
dimensionedScalar sin(const dimensionedScalar &ds)