101 return st.
ii()*st.
ii()*st.
ii();
107inline SphericalTensor<Cmpt>
inv(
const SphericalTensor<Cmpt>& st)
110 if (
mag(st.ii()) < VSMALL)
113 <<
"SphericalTensor not invertible, determinant:"
114 <<
det(st) <<
" tensor:" << st <<
nl
125inline Foam::scalar
magSqr(
const SphericalTensor<Cmpt>& st)
133inline Cmpt
cmptMax(
const SphericalTensor<Cmpt>& st)
157inline Cmpt
cmptAv(
const SphericalTensor<Cmpt>& st)
165inline SphericalTensor<Cmpt>
lerp
167 const SphericalTensor<Cmpt>& a,
184 if (
mag(st.
ii()) < VSMALL)
188 <<
" is not divisible due to a zero element in SphericalTensor:"
189 <<
"SphericalTensor = " << st
207 <<
"SphericalTensor = " << st
208 <<
" is not divisible due to a zero value in Cmpt:"
230operator&(
const SphericalTensor<Cmpt>& st,
const Vector<Cmpt>& v)
258operator&&(
const SphericalTensor<Cmpt>& st1,
const SphericalTensor<Cmpt>& st2)
260 return 3*st1.ii()*st2.ii();
275class outerProduct<Cmpt, SphericalTensor<Cmpt>>
279 typedef SphericalTensor<Cmpt>
type;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element,...
scalar diagSqr() const
The L2-norm squared of the diagonal.
SphericalTensor()=default
Default construct.
const Cmpt & ii() const noexcept
static const SphericalTensor< Cmpt > zero
VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > vsType
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & z() const noexcept
Access to the vector z component.
const Cmpt & y() const noexcept
Access to the vector y component.
SphericalTensor< Cmpt > type
SphericalTensor< Cmpt > type
SphericalTensor< Cmpt > type
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank)>::type type
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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 det(const dimensionedSphericalTensor &dt)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
Cmpt cmptSum(const SphericalTensor< Cmpt > &st)
Return the sum of components of a SphericalTensor.
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh > > cmptAv(const DimensionedField< Type, GeoMesh > &f1)
tmp< GeometricField< Type, faPatchField, areaMesh > > operator&(const faMatrix< Type > &, const DimensionedField< Type, areaMesh > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
errorManip< error > abort(error &err)
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a DiagTensor as a SphericalTensor.
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)
constexpr char nl
The newline '\n' character (0x0a).