38 #ifndef Foam_symmTensorFieldField_H 39 #define Foam_symmTensorFieldField_H 44 #define TEMPLATE template<template<class> class Field> 55 template<
template<
class>
class Field,
class Cmpt>
58 FieldField<Field, SymmTensor<Cmpt>>& result,
59 const FieldField<Field, Cmpt>& xx,
60 const FieldField<Field, Cmpt>& xy,
61 const FieldField<Field, Cmpt>& xz,
62 const FieldField<Field, Cmpt>& yy,
63 const FieldField<Field, Cmpt>& yz,
64 const FieldField<Field, Cmpt>& zz
68 template<
template<
class>
class Field,
class Cmpt>
71 const FieldField<Field, SymmTensor<Cmpt>>&
input,
72 FieldField<Field, Cmpt>& xx,
73 FieldField<Field, Cmpt>& xy,
74 FieldField<Field, Cmpt>& xz,
75 FieldField<Field, Cmpt>& yy,
76 FieldField<Field, Cmpt>& yz,
77 FieldField<Field, Cmpt>& zz
81 template<
template<
class>
class Field,
class Cmpt>
84 FieldField<Field, SymmTensor<Cmpt>>& result,
85 const FieldField<Field, Vector<Cmpt>>&
x,
86 const FieldField<Field, Vector<Cmpt>>&
y,
87 const FieldField<Field, Vector<Cmpt>>& z
91 template<
template<
class>
class Field,
class Cmpt>
94 FieldField<Field, SymmTensor<Cmpt>>& result,
95 const FieldField<Field, Vector<Cmpt>>&
x,
96 const FieldField<Field, Vector<Cmpt>>&
y,
97 const FieldField<Field, Vector<Cmpt>>& z
102 template<
template<
class>
class Field,
class Cmpt>
105 const FieldField<Field, SymmTensor<Cmpt>>&
input,
106 FieldField<Field, Vector<Cmpt>>&
x,
107 FieldField<Field, Vector<Cmpt>>&
y,
108 FieldField<Field, Vector<Cmpt>>& z
112 template<
template<
class>
class Field,
class Cmpt>
115 const FieldField<Field, SymmTensor<Cmpt>>&
input,
116 FieldField<Field, Vector<Cmpt>>&
x,
117 FieldField<Field, Vector<Cmpt>>&
y,
118 FieldField<Field, Vector<Cmpt>>& z
123 template<
template<
class>
class Field,
class Cmpt>
126 const FieldField<Field, SymmTensor<Cmpt>>&
input,
128 FieldField<Field, Vector<Cmpt>>& result
132 template<
template<
class>
class Field,
class Cmpt>
135 const FieldField<Field, SymmTensor<Cmpt>>&
input,
137 FieldField<Field, Vector<Cmpt>>& result
141 template<
template<
class>
class Field,
class Cmpt>
144 const FieldField<Field, SymmTensor<Cmpt>>&
input,
145 FieldField<Field, Vector<Cmpt>>& result
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
void unzipCols(const FieldField< Field, SymmTensor< Cmpt >> &input, FieldField< Field, Vector< Cmpt >> &x, FieldField< Field, Vector< Cmpt >> &y, FieldField< Field, Vector< Cmpt >> &z)
Extract symmTensor field field columns.
#define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
void zip(FieldField< Field, SphericalTensor< Cmpt >> &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
void zipCols(FieldField< Field, SymmTensor< Cmpt >> &result, const FieldField< Field, Vector< Cmpt >> &x, const FieldField< Field, Vector< Cmpt >> &y, const FieldField< Field, Vector< Cmpt >> &z)
Zip together symmTensor field from column components.
void unzipRow(const FieldField< Field, SymmTensor< Cmpt >> &input, const direction idx, FieldField< Field, Vector< Cmpt >> &result)
Extract a symmTensor field field row (x,y,z) == (0,1,2)
SymmTensor< Cmpt > devSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of the symmetric part of a SymmTensor.
dimensionedScalar det(const dimensionedSphericalTensor &dt)
SphericalTensor< Cmpt > sph(const DiagTensor< Cmpt > &dt)
Return the spherical part of a DiagTensor as a SphericalTensor.
void unzipRows(const FieldField< Field, SymmTensor< Cmpt >> &input, FieldField< Field, Vector< Cmpt >> &x, FieldField< Field, Vector< Cmpt >> &y, FieldField< Field, Vector< Cmpt >> &z)
Extract symmTensor field field rows.
void zipRows(FieldField< Field, SymmTensor< Cmpt >> &result, const FieldField< Field, Vector< Cmpt >> &x, const FieldField< Field, Vector< Cmpt >> &y, const FieldField< Field, Vector< Cmpt >> &z)
Zip together symmTensor field field from row components.
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)
void unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
void unzipDiag(const FieldField< Field, SymmTensor< Cmpt >> &input, FieldField< Field, Vector< Cmpt >> &result)
Extract a symmTensor field field diagonal.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
static Istream & input(Istream &is, IntRange< T > &range)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
void hdual(pointPatchField< vector > &, const pointPatchField< tensor > &)
dimensionedSymmTensor innerSqr(const dimensionedSymmTensor &dt)
void unzipCol(const FieldField< Field, SymmTensor< Cmpt >> &input, const direction idx, FieldField< Field, Vector< Cmpt >> &result)
Extract a symmTensor field field column (x,y,z) == (0,1,2)
Macro functions for FieldField<Type> algebra.
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
dimensionedSymmTensor cof(const dimensionedSymmTensor &dt)
SymmTensor< Cmpt > devTwoSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of twice the symmetric part of a SymmTensor.