Go to the documentation of this file.
116 return st.
ii()*st.
ii()*st.
ii();
125 if (
mag(st.
ii()) < VSMALL)
128 <<
"SphericalTensor is not invertible due to the zero determinant:"
129 <<
"det(SphericalTensor) = " <<
det(st)
142 return Cmpt(3*
mag(st.
ii()*st.
ii()));
182 inline SphericalTensor<Cmpt>
186 if (
mag(st.
ii()) < VSMALL)
190 <<
" is not divisible due to a zero element in SphericalTensor:"
191 <<
"SphericalTensor = " << st
202 inline SphericalTensor<Cmpt>
209 <<
"SphericalTensor = " << st
210 <<
" is not divisible due to a zero value in Cmpt:"
222 inline SphericalTensor<Cmpt>
262 return 3*st1.
ii()*st2.
ii();
const Cmpt & x() const
Access to the vector x component.
const SphericalTensor< Cmpt > & T() const
Return non-Hermitian transpose (no-op)
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))
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
static constexpr const zero Zero
Global zero (0)
const Cmpt & z() const
Access to the vector z component.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
SphericalTensor< Cmpt > type
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
SphericalTensor< Cmpt > type
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
SphericalTensor< Cmpt > type
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a DiagTensor as a SphericalTensor.
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)
Cmpt cmptSum(const SphericalTensor< Cmpt > &st)
Return the sum of components of a SphericalTensor.
errorManip< error > abort(error &err)
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element,...
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
const Cmpt & y() const
Access to the vector y component.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
SphericalTensor()=default
Default construct.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
dimensionedScalar det(const dimensionedSphericalTensor &dt)
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...