Go to the documentation of this file.
48 this->v_[XX] = st.
xx(); this->v_[XY] = st.
xy();
49 this->v_[YX] = st.
xy(); this->v_[YY] = st.
yy();
56 this->v_[XX] = st.
ii(); this->v_[XY] = 0;
57 this->v_[YX] = 0; this->v_[YY] = st.
ii();
68 this->v_[XX] =
x.x(); this->v_[XY] =
x.y();
69 this->v_[YX] =
y.x(); this->v_[YY] =
y.y();
76 const Cmpt txx,
const Cmpt txy,
77 const Cmpt tyx,
const Cmpt tyy
80 this->v_[XX] = txx; this->v_[XY] = txy;
81 this->v_[YX] = tyx; this->v_[YY] = tyy;
173 this->v_[XX] = st.
xx(); this->v_[XY] = st.
xy();
174 this->v_[YX] = st.
xy(); this->v_[YY] = st.
yy();
181 this->v_[XX] = st.
ii(); this->v_[XY] = 0;
182 this->v_[YX] = 0; this->v_[YY] = st.
ii();
206 inline typename innerProduct<Tensor2D<Cmpt>, Vector2D<Cmpt> >
::type
211 t.
xx()*v.
x() + t.
xy()*v.
y(),
212 t.
yx()*v.
x() + t.
yy()*v.
y()
218 inline typename innerProduct<Vector2D<Cmpt>, Tensor2D<Cmpt> >
::type
223 v.
x()*t.
xx() + v.
y()*t.
yx(),
224 v.
x()*t.
xy() + v.
y()*t.
yy()
230 inline typename outerProduct<Vector2D<Cmpt>, Vector2D<Cmpt> >
::type
235 v1.
x()*v2.
x(), v1.
x()*v2.
y(),
236 v1.
y()*v2.
x(), v1.
y()*v2.
y()
245 return t.
xx() + t.
yy();
263 t.
xx(), 0.5*(t.
xy() + t.
yx()),
285 0.0, 0.5*(t.
xy() - t.
yx()),
286 0.5*(t.
yx() - t.
xy()), 0.0
311 return(t.
xx()*t.
yy() - t.
xy()*t.
yx());
378 inline Tensor2D<Cmpt>
383 st1.
ii() + t2.
xx(), t2.
xy(),
384 t2.
yx(), st1.
ii() + t2.
yy()
390 inline Tensor2D<Cmpt>
395 t1.
xx() + st2.
ii(), t1.
xy(),
396 t1.
yx(), t1.
yy() + st2.
ii()
402 inline Tensor2D<Cmpt>
407 st1.
ii() - t2.
xx(), -t2.
xy(),
408 -t2.
yx(), st1.
ii() - t2.
yy()
414 inline Tensor2D<Cmpt>
419 t1.
xx() - st2.
ii(), t1.
xy(),
420 t1.
yx(), t1.
yy() - st2.
ii()
427 inline Tensor2D<Cmpt>
442 inline Tensor2D<Cmpt>
461 return(st1.
ii()*t2.
xx() + st1.
ii()*t2.
yy());
470 return(t1.
xx()*st2.
ii() + t1.
yy()*st2.
ii());
477 inline Tensor2D<Cmpt>
482 st1.
xx() + t2.
xx(), st1.
xy() + t2.
xy(),
483 st1.
xy() + t2.
yx(), st1.
yy() + t2.
yy()
489 inline Tensor2D<Cmpt>
494 t1.
xx() + st2.
xx(), t1.
xy() + st2.
xy(),
495 t1.
yx() + st2.
xy(), t1.
yy() + st2.
yy()
501 inline Tensor2D<Cmpt>
506 st1.
xx() - t2.
xx(), st1.
xy() - t2.
xy(),
507 st1.
xy() - t2.
yx(), st1.
yy() - t2.
yy()
513 inline Tensor2D<Cmpt>
518 t1.
xx() - st2.
xx(), t1.
xy() - st2.
xy(),
519 t1.
yx() - st2.
xy(), t1.
yy() - st2.
yy()
526 inline Tensor2D<Cmpt>
531 st1.
xx()*t2.
xx() + st1.
xy()*t2.
yx(),
532 st1.
xx()*t2.
xy() + st1.
xy()*t2.
yy(),
534 st1.
xy()*t2.
xx() + st1.
yy()*t2.
yx(),
542 inline Tensor2D<Cmpt>
547 t1.
xx()*st2.
xx() + t1.
xy()*st2.
xy(),
548 t1.
xx()*st2.
xy() + t1.
xy()*st2.
yy(),
550 t1.
yx()*st2.
xx() + t1.
yy()*st2.
xy(),
564 + st1.
xy()*t2.
yx() + st1.
yy()*t2.
yy()
577 + t1.
yx()*st2.
xy() + t1.
yy()*st2.
yy()
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
Tensor2D< Cmpt > T() const
Transpose.
Cmpt invariantIII(const SymmTensor< Cmpt > &st)
Return the 3rd invariant of a symmetric tensor.
dimensionedTensor skew(const dimensionedTensor &dt)
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.
Templated 2D symmetric tensor derived from VectorSpace adding construction from 4 components,...
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
Templated 2D tensor derived from VectorSpace adding construction from 4 components,...
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
Vector2D< Cmpt > x() const
Vector2D< Cmpt > y() const
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 > &)
Cmpt invariantII(const SymmTensor< Cmpt > &st)
Return the 2nd invariant of a symmetric tensor.
Tensor2D()
Construct null.
dimensionedSymmTensor cof(const dimensionedSymmTensor &dt)
tmp< fvMatrix< Type > > operator*(const DimensionedField< scalar, volMesh > &, const fvMatrix< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void operator=(const SymmTensor2D< Cmpt > &)
Copy SymmTensor2D.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
dimensionedScalar det(const dimensionedSphericalTensor &dt)
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
Templated 2D sphericalTensor derived from VectorSpace adding construction from 1 component,...
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)