53 this->v_[XX] = st.
ii(); this->v_[XY] =
Zero;
54 this->v_[YY] = st.
ii();
61 const Cmpt txx,
const Cmpt txy,
65 this->v_[XX] = txx; this->v_[XY] = txy;
139 this->v_[XX] = v.
x(); this->v_[YY] = v.
y();
158 this->v_[XX] = st.ii(); this->v_[XY] =
Zero;
159 this->v_[YY] = st.ii();
174 return st.
xx() + st.
yy();
217 return st - 2*
sph(st);
225 return (st.
xx()*st.
yy() - st.
xy()*st.
xy());
246 if (
mag(detst) < SMALL)
249 <<
"SymmTensor2D is not invertible due to the zero determinant:"
250 <<
"det(SymmTensor2D) = " <<
mag(detst)
255 return cof(st)/detst;
285inline SymmTensor2D<Cmpt>
315 v.
x()*v.
x(), v.
x()*v.
y(),
325inline SymmTensor2D<Cmpt>
330 spt1.
ii() + st2.
xx(), st2.
xy(),
338inline SymmTensor2D<Cmpt>
343 st1.
xx() + spt2.
ii(), st1.
xy(),
351inline SymmTensor2D<Cmpt>
356 spt1.
ii() - st2.
xx(), -st2.
xy(),
364inline SymmTensor2D<Cmpt>
369 st1.
xx() - spt2.
ii(), st1.
xy(),
377inline SymmTensor2D<Cmpt>
395 st1.
xx()*st2.
xx() + st1.
xy()*st2.
xy(),
396 st1.
xx()*st2.
xy() + st1.
xy()*st2.
yy(),
398 st1.
xy()*st2.
xx() + st1.
yy()*st2.
xy(),
399 st1.
xy()*st2.
xy() + st1.
yy()*st2.
yy()
406inline SymmTensor2D<Cmpt>
411 spt1.
ii()*st2.
xx(), spt1.
ii()*st2.
xy(),
419inline SymmTensor2D<Cmpt>
424 st1.
xx()*spt2.
ii(), st1.
xy()*spt2.
ii(),
437 st.
xx()*v.
x() + st.
xy()*v.
y(),
438 st.
xy()*v.
x() + st.
yy()*v.
y()
450 v.
x()*st.
xx() + v.
y()*st.
xy(),
451 v.
x()*st.
xy() + v.
y()*st.
yy()
463 st1.
xx()*st2.
xx() + 2*st1.
xy()*st2.
xy()
474 return (spt1.
ii()*st2.
xx() + spt1.
ii()*st2.
yy());
483 return (st1.
xx()*spt2.
ii() + st1.
yy()*spt2.
ii());
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,...
A templated (2 x 2) symmetric tensor of objects of <T>, effectively containing 3 elements,...
const SymmTensor2D< Cmpt > & T() const
Return non-Hermitian transpose.
Vector2D< Cmpt > diag() const
Extract the diagonal as a vector.
SymmTensor2D()=default
Default construct.
A templated (2 x 2) tensor of objects of <T> derived from VectorSpace.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
SymmTensor2D< Cmpt > type
SymmTensor2D< Cmpt > type
SymmTensor2D< Cmpt > type
SymmTensor2D< Cmpt > type
SymmTensor2D< Cmpt > type
SymmTensor2D< 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))
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
Unary negation.
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
dimensionedScalar det(const dimensionedSphericalTensor &dt)
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
Cmpt invariantII(const SymmTensor< Cmpt > &st)
Return the 2nd invariant of a SymmTensor.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
dimensionedSymmTensor cof(const dimensionedSymmTensor &dt)
Cmpt invariantI(const SymmTensor< Cmpt > &st)
Return the 1st invariant of a SymmTensor.
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.
static constexpr const zero Zero
Global zero (0)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dimensionedSymmTensor innerSqr(const dimensionedSymmTensor &dt)
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)