Go to the documentation of this file.
124 return dt.
xx() + dt.
yy() + dt.
zz();
143 return dt.
xx()*dt.
yy()*dt.
zz();
152 if (
mag(
det(dt)) < VSMALL)
155 <<
"DiagTensor is not invertible due to the zero determinant:"
156 <<
"det(DiagTensor) = " <<
det(dt)
190 dt1.
xx() + t2.
xx(), t2.
xy(), t2.
xz(),
191 t2.
yx(), dt1.
yy() + t2.
yy(), t2.
yz(),
192 t2.
zx(), t2.
zy(), dt1.
zz() + t2.
zz()
204 t1.
xx() + dt2.
xx(), t1.
xy(), t1.
xz(),
205 t1.
yx(), t1.
yy() + dt2.
yy(), t1.
yz(),
206 t1.
zx(), t1.
zy(), t1.
zz() + dt2.
zz()
218 dt1.
xx() - t2.
xx(), -t2.
xy(), -t2.
xz(),
219 -t2.
yx(), dt1.
yy() - t2.
yy(), -t2.
yz(),
220 -t2.
zx(), -t2.
zy(), dt1.
zz() - t2.
zz()
232 t1.
xx() - dt2.
xx(), t1.
xy(), t1.
xz(),
233 t1.
yx(), t1.
yy() - dt2.
yy(), t1.
yz(),
234 t1.
zx(), t1.
zy(), t1.
zz() - dt2.
zz()
241 inline DiagTensor<Cmpt>
245 if (
mag(
det(dt)) < VSMALL)
249 <<
" is not divisible by the DiagTensor due to a zero element:"
250 <<
"DiagTensor = " << dt
261 inline DiagTensor<Cmpt>
268 <<
"DiagTensor = " << dt
269 <<
" is not divisible due to a zero value in Cmpt:"
285 if (
mag(
det(dt)) < VSMALL)
289 <<
" is not divisible by the DiagTensor due to a zero element:"
290 <<
"DiagTensor = " << dt
301 inline DiagTensor<Cmpt>
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
const Cmpt & x() const
Access to the vector x component.
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 3 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))
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
static constexpr const zero Zero
Global zero (0)
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
const Cmpt & z() const
Access to the vector z component.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a DiagTensor as 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.
DiagTensor()=default
Default construct.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
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 ...