Go to the documentation of this file.
58 tensor2D::uniform(VGREAT)
64 tensor2D::uniform(-VGREAT)
70 tensor2D::uniform(ROOTVGREAT)
76 tensor2D::uniform(-ROOTVGREAT)
92 const scalar
b = - t.xx() - t.yy();
93 const scalar
c = t.xx()*t.yy() - t.xy()*t.yx();
96 Roots<2> roots = quadraticEqn(1,
b,
c).roots();
102 switch (roots.type(i))
109 <<
"Complex eigenvalues detected for tensor: " << t
121 <<
"Eigenvalue calculation failed for tensor: " << t
153 else if (
mag(
A.xx()) > SMALL)
161 return vector2D(- direction1.y(), direction1.x());
static const Form rootMax
static const char *const componentNames[]
dimensionedTensor eigenVectors(const dimensionedTensor &dt)
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
void Swap(DynamicList< T, SizeMin1 > &a, DynamicList< T, SizeMin2 > &b)
vector eigenVector(const tensor &T, const scalar lambda, const vector &direction1, const vector &direction2)
#define forAll(list, i)
Loop across all elements in list.
Templated 2D tensor derived from VectorSpace adding construction from 4 components,...
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
dimensionedVector eigenValues(const dimensionedTensor &dt)
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
static const Form rootMin
errorManipArg< error, int > exit(error &err, const int errNo=1)
Tensor2D< scalar > tensor2D
Tensor2D of scalars.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Vector2D< scalar > vector2D
A 2D vector of scalars obtained from the generic Vector2D.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar c
Speed of light in a vacuum.
#define WarningInFunction
Report a warning using Foam::Warning.
static const Identity< scalar > I
static const char *const typeName