62 const scalar minThreshold = SMALL*
magSqr(tf1[0]);
65 magSqr(tf1[0].xx()) < minThreshold,
66 magSqr(tf1[0].yy()) < minThreshold,
67 magSqr(tf1[0].zz()) < minThreshold
70 if (removeCmpts.
x() || removeCmpts.
y() || removeCmpts.
z())
74 if (removeCmpts.
x()) adjust.
xx() = 1;
75 if (removeCmpts.
y()) adjust.
yy() = 1;
76 if (removeCmpts.
z()) adjust.
zz() = 1;
95 inv(tresult.ref(), tf);
99 tmp<symmTensorField>
inv(
const tmp<symmTensorField>& tf)
101 tmp<symmTensorField> tresult =
New(tf);
102 inv(tresult.ref(), tf());
120 const tmp<tensorField>& ttf
141 const tmp<symmTensorField>& tstf
void size(const label n)
Older name for setAddressableSize.
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
#define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
const Cmpt & y() const noexcept
Access to the vector y component.
dimensionedScalar det(const dimensionedSphericalTensor &dt)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
#define TFOR_ALL_F_OP_FUNC_F(typeF1, f1, OP, FUNC, typeF2, f2)
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a DiagTensor as a SphericalTensor.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
const Cmpt & zz() const noexcept
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
Generic templated field type.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
symmTensor pinv(const symmTensor &st)
Return inverse of a given symmTensor, and fall back to pseudo-inverse if the symmTensor is singular...
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
const Cmpt & xx() const noexcept
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void hdual(pointPatchField< vector > &, const pointPatchField< tensor > &)
Templated 3D Vector derived from VectorSpace adding construction from 3 components, element access using x(), y() and z() member functions and the inner-product (dot-product) and cross-product operators.
dimensionedSymmTensor innerSqr(const dimensionedSymmTensor &dt)
const Cmpt & x() const noexcept
Access to the vector x component.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
const Cmpt & z() const noexcept
Access to the vector z component.
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
const Cmpt & yy() const noexcept
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
A class for managing temporary objects.
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
tmp< Field< symmTensor > > transformFieldMask< symmTensor >(const tensorField &tf)
dimensionedSymmTensor cof(const dimensionedSymmTensor &dt)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)