Go to the documentation of this file.
59 this->v_[XX] = st.
ii(); this->v_[XY] = 0; this->v_[XZ] = 0;
60 this->v_[YY] = st.
ii(); this->v_[YZ] = 0;
61 this->v_[ZZ] = st.
ii();
68 const Cmpt txx,
const Cmpt txy,
const Cmpt txz,
69 const Cmpt tyy,
const Cmpt tyz,
73 this->v_[XX] = txx; this->v_[XY] = txy; this->v_[XZ] = txz;
74 this->v_[YY] = tyy; this->v_[YZ] = tyz;
165 return Vector<Cmpt>(this->v_[XX], this->v_[YY], this->v_[ZZ]);
172 this->v_[XX] = v.
x(); this->v_[YY] = v.
y(); this->v_[ZZ] = v.
z();
188 this->v_[XX] = st.
ii(); this->v_[XY] = 0; this->v_[XZ] = 0;
189 this->v_[YY] = st.
ii(); this->v_[YZ] = 0;
190 this->v_[ZZ] = st.
ii();
216 st1.
xx()*st2.
xx() + st1.
xy()*st2.
xy() + st1.
xz()*st2.
xz(),
217 st1.
xx()*st2.
xy() + st1.
xy()*st2.
yy() + st1.
xz()*st2.
yz(),
218 st1.
xx()*st2.
xz() + st1.
xy()*st2.
yz() + st1.
xz()*st2.
zz(),
220 st1.
xy()*st2.
xx() + st1.
yy()*st2.
xy() + st1.
yz()*st2.
xz(),
221 st1.
xy()*st2.
xy() + st1.
yy()*st2.
yy() + st1.
yz()*st2.
yz(),
222 st1.
xy()*st2.
xz() + st1.
yy()*st2.
yz() + st1.
yz()*st2.
zz(),
224 st1.
xz()*st2.
xx() + st1.
yz()*st2.
xy() + st1.
zz()*st2.
xz(),
225 st1.
xz()*st2.
xy() + st1.
yz()*st2.
yy() + st1.
zz()*st2.
yz(),
226 st1.
xz()*st2.
xz() + st1.
yz()*st2.
yz() + st1.
zz()*st2.
zz()
238 st1.
xx()*st2.
xx() + 2*st1.
xy()*st2.
xy() + 2*st1.
xz()*st2.
xz()
239 + st1.
yy()*st2.
yy() + 2*st1.
yz()*st2.
yz()
252 st.
xx()*v.
x() + st.
xy()*v.
y() + st.
xz()*v.
z(),
253 st.
xy()*v.
x() + st.
yy()*v.
y() + st.
yz()*v.
z(),
254 st.
xz()*v.
x() + st.
yz()*v.
y() + st.
zz()*v.
z()
266 v.
x()*st.
xx() + v.
y()*st.
xy() + v.
z()*st.
xz(),
267 v.
x()*st.
xy() + v.
y()*st.
yy() + v.
z()*st.
yz(),
268 v.
x()*st.
xz() + v.
y()*st.
yz() + v.
z()*st.
zz()
275 inline SymmTensor<Cmpt>
308 return st.
xx() + st.
yy() + st.
zz();
316 return (1.0/3.0)*
tr(st);
438 inline SymmTensor<Cmpt>
443 spt1.
ii() + st2.
xx(), st2.
xy(), st2.
xz(),
444 spt1.
ii() + st2.
yy(), st2.
yz(),
451 inline SymmTensor<Cmpt>
456 st1.
xx() + spt2.
ii(), st1.
xy(), st1.
xz(),
457 st1.
yy() + spt2.
ii(), st1.
yz(),
464 inline SymmTensor<Cmpt>
469 spt1.
ii() - st2.
xx(), -st2.
xy(), -st2.
xz(),
470 spt1.
ii() - st2.
yy(), -st2.
yz(),
477 inline SymmTensor<Cmpt>
482 st1.
xx() - spt2.
ii(), st1.
xy(), st1.
xz(),
483 st1.
yy() - spt2.
ii(), st1.
yz(),
491 inline SymmTensor<Cmpt>
496 spt1.
ii()*st2.
xx(), spt1.
ii()*st2.
xy(), spt1.
ii()*st2.
xz(),
497 spt1.
ii()*st2.
yy(), spt1.
ii()*st2.
yz(),
505 inline SymmTensor<Cmpt>
510 st1.
xx()*spt2.
ii(), st1.
xy()*spt2.
ii(), st1.
xz()*spt2.
ii(),
511 st1.
yy()*spt2.
ii(), st1.
yz()*spt2.
ii(),
522 return(spt1.
ii()*st2.
xx() + spt1.
ii()*st2.
yy() + spt1.
ii()*st2.
zz());
531 return(st1.
xx()*spt2.
ii() + st1.
yy()*spt2.
ii() + st1.
zz()*spt2.
ii());
540 v.
x()*v.
x(), v.
x()*v.
y(), v.
x()*v.
z(),
541 v.
y()*v.
y(), v.
y()*v.
z(),
Templated 3D tensor derived from MatrixSpace adding construction from 9 components,...
const Cmpt & x() const
Access to the vector x component.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 components,...
Cmpt invariantIII(const SymmTensor< Cmpt > &st)
Return the 3rd invariant of a symmetric tensor.
const SymmTensor< Cmpt > & T() const
Transpose.
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
Cmpt invariantI(const SymmTensor< Cmpt > &st)
Return the 1st invariant of a symmetric tensor.
static constexpr const zero Zero
Global zero.
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
dimensionedSymmTensor innerSqr(const dimensionedSymmTensor &dt)
const Cmpt & z() const
Access to the vector z component.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
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 diagonal tensor.
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)
SymmTensor()
Construct null.
Cmpt invariantII(const SymmTensor< Cmpt > &st)
Return the 2nd invariant of a symmetric tensor.
void operator=(const SphericalTensor< Cmpt > &)
Assign to given SphericalTensor.
dimensionedSymmTensor cof(const dimensionedSymmTensor &dt)
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component,...
const Cmpt & y() const
Access to the vector y component.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Vector< Cmpt > diag() const
Extract the diagonal as a vector.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
dimensionedScalar det(const dimensionedSphericalTensor &dt)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
A class representing the concept of 0 (zero), which can be used to avoid manipulating objects that ar...
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)