31 #define TEMPLATE template<template<class> class Field> 36 template<
template<
class>
class Field,
class Cmpt>
61 template<
template<
class>
class Field,
class Cmpt>
64 const FieldField<Field, SymmTensor<Cmpt>>&
input,
65 FieldField<Field, Cmpt>& xx,
66 FieldField<Field, Cmpt>& xy,
67 FieldField<Field, Cmpt>& xz,
68 FieldField<Field, Cmpt>& yy,
69 FieldField<Field, Cmpt>& yz,
70 FieldField<Field, Cmpt>& zz
86 template<
template<
class>
class Field,
class Cmpt>
89 FieldField<Field, SymmTensor<Cmpt>>& result,
90 const FieldField<Field, Vector<Cmpt>>&
x,
91 const FieldField<Field, Vector<Cmpt>>&
y,
92 const FieldField<Field, Vector<Cmpt>>& z
102 template<
template<
class>
class Field,
class Cmpt>
105 FieldField<Field, SymmTensor<Cmpt>>& result,
106 const FieldField<Field, Vector<Cmpt>>&
x,
107 const FieldField<Field, Vector<Cmpt>>&
y,
108 const FieldField<Field, Vector<Cmpt>>& z
118 template<
template<
class>
class Field,
class Cmpt>
121 const FieldField<Field, SymmTensor<Cmpt>>&
input,
122 FieldField<Field, Vector<Cmpt>>&
x,
123 FieldField<Field, Vector<Cmpt>>&
y,
124 FieldField<Field, Vector<Cmpt>>& z
134 template<
template<
class>
class Field,
class Cmpt>
137 const FieldField<Field, SymmTensor<Cmpt>>&
input,
138 FieldField<Field, Vector<Cmpt>>&
x,
139 FieldField<Field, Vector<Cmpt>>&
y,
140 FieldField<Field, Vector<Cmpt>>& z
150 template<
template<
class>
class Field,
class Cmpt>
153 const FieldField<Field, SymmTensor<Cmpt>>&
input,
155 FieldField<Field, Vector<Cmpt>>& result
165 template<
template<
class>
class Field,
class Cmpt>
168 const FieldField<Field, SymmTensor<Cmpt>>&
input,
170 FieldField<Field, Vector<Cmpt>>& result
180 template<
template<
class>
class Field,
class Cmpt>
183 const FieldField<Field, SymmTensor<Cmpt>>&
input,
184 FieldField<Field, Vector<Cmpt>>& result
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements, derived from VectorSpace.
Specialisation of FieldField<T> for symmTensor.
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)
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)
A field of fields is a PtrList of fields with reference counting.
#define forAll(list, i)
Loop across all elements in list.
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)
Generic templated field type.
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)
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)