Go to the documentation of this file.
40 #include <type_traits>
56 const scalar
s = n1 & n2;
58 const scalar magSqrN3 =
magSqr(n3);
66 + (1 -
s)*
sqr(n3)/magSqrN3
87 const scalar
s =
sin(omega);
88 const scalar
c =
cos(omega);
101 const scalar
s =
sin(omega);
102 const scalar
c =
cos(omega);
115 const scalar
s =
sin(omega);
116 const scalar
c =
cos(omega);
129 const scalar
s =
sin(omega);
130 const scalar
c =
cos(omega);
135 a.
y()*a.
x()*(1 -
c) + a.
z()*
s,
136 a.
x()*a.
z()*(1 -
c) - a.
y()*
s,
138 a.
x()*a.
y()*(1 -
c) - a.
z()*
s,
140 a.
y()*a.
z()*(1 -
c) + a.
x()*
s,
142 a.
x()*a.
z()*(1 -
c) + a.
y()*
s,
143 a.
y()*a.
z()*(1 -
c) - a.
x()*
s,
151 constexpr
typename std::enable_if<std::is_arithmetic<T>::value,
T>
::type
159 constexpr
typename std::enable_if<std::is_arithmetic<T>::value,
T>
::type
337 inline SymmTensor<Cmpt>
369 template<
class Type1,
class Type2>
407 const scalar cos_angle = vec & e0;
408 const scalar sin_angle = vec & e1;
410 if (sin_angle < -SMALL)
const Cmpt & x() const
Access to the vector x component.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
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;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar sin(const dimensionedScalar &ds)
symmTensor transformMask< symmTensor >(const symmTensor &st)
tensor Ry(const scalar &omega)
Rotational transformation tensor about the y-axis by omega radians.
tensor Rz(const scalar &omega)
Rotational transformation tensor about the z-axis by omega radians.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
const Cmpt & z() const
Access to the vector z component.
tensor Rx(const scalar &omega)
Rotational transformation tensor about the x-axis by omega radians.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a DiagTensor as a SphericalTensor.
scalar pseudoAngle(const vector &e0, const vector &e1, const vector &vec)
Estimate angle of vec in coordinate system (e0, e1, e0^e1).
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element,...
Type1 transformMask(const Type2 &t)
sphericalTensor transformMask< sphericalTensor >(const symmTensor &st)
const Cmpt & y() const
Access to the vector y component.
constexpr scalar piByTwo(0.5 *M_PI)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
tensor Ra(const vector &a, const scalar omega)
Rotational transformation tensor about axis a by omega radians.
const dimensionedScalar c
Speed of light in a vacuum.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from vector n1 to n2.
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
static const Identity< scalar > I
dimensionedScalar cos(const dimensionedScalar &ds)