100 return st.
ii()*st.
ii();
106inline SphericalTensor2D<Cmpt>
inv(
const SphericalTensor2D<Cmpt>& st)
109 if (
mag(st.ii()) < VSMALL)
112 <<
"SphericalTensor2D not invertible, determinant:"
113 <<
det(st) <<
" tensor:" << st <<
nl
126inline SphericalTensor2D<Cmpt>
127operator/(
const Cmpt
s,
const SphericalTensor2D<Cmpt>& st)
130 if (
mag(st.ii()) < VSMALL)
134 <<
" is not divisible due to a zero element in SphericalTensor2D:"
135 <<
"SphericalTensor2D = " << st
140 return SphericalTensor2D<Cmpt>(
s/st.ii());
153 <<
"SphericalTensor2D = " << st
154 <<
" is not divisible due to a zero value in Cmpt:"
160 return SphericalTensor2D<Cmpt>(st.ii()/
s);
180operator&(
const SphericalTensor2D<Cmpt>& st,
const Vector2D<Cmpt>& v)
182 return Vector2D<Cmpt>
214class outerProduct<Cmpt, SphericalTensor2D<Cmpt>>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A templated (2 x 2) diagonal tensor of objects of <T>, effectively containing 1 element,...
scalar diagSqr() const
The L2-norm squared of the diagonal.
const Cmpt & ii() const noexcept
SphericalTensor2D()=default
Default construct.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & y() const noexcept
Access to the vector y component.
static const SphericalTensor2D< Cmpt > zero
VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, Ncmpts > vsType
SphericalTensor2D< Cmpt > type
SphericalTensor2D< Cmpt > type
SphericalTensor2D< Cmpt > 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)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
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.
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 typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
constexpr char nl
The newline '\n' character (0x0a).