32 #define TEMPLATE template<template<class> class PatchField, class GeoMesh> 37 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
51 result.primitiveFieldRef(),
59 result.boundaryFieldRef(),
67 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
70 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>&
input,
71 GeometricField<Cmpt, PatchField, GeoMesh>& xx,
72 GeometricField<Cmpt, PatchField, GeoMesh>& xy,
73 GeometricField<Cmpt, PatchField, GeoMesh>& xz,
74 GeometricField<Cmpt, PatchField, GeoMesh>& yy,
75 GeometricField<Cmpt, PatchField, GeoMesh>& yz,
76 GeometricField<Cmpt, PatchField, GeoMesh>& zz
81 input.primitiveField(),
82 xx.primitiveFieldRef(), xy.primitiveFieldRef(), xz.primitiveFieldRef(),
83 yy.primitiveFieldRef(), yz.primitiveFieldRef(),
84 zz.primitiveFieldRef()
89 input.boundaryField(),
90 xx.boundaryFieldRef(), xy.boundaryFieldRef(), xz.boundaryFieldRef(),
91 yy.boundaryFieldRef(), yz.boundaryFieldRef(),
97 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
100 GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>& result,
101 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
102 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
103 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
108 result.primitiveFieldRef(),
116 result.boundaryFieldRef(),
124 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
127 GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>& result,
128 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
129 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
130 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
135 result.primitiveFieldRef(),
143 result.boundaryFieldRef(),
151 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
154 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>&
input,
155 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
156 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
157 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
162 input.primitiveField(),
163 x.primitiveFieldRef(),
164 y.primitiveFieldRef(),
165 z.primitiveFieldRef()
170 input.boundaryField(),
171 x.boundaryFieldRef(),
172 y.boundaryFieldRef(),
178 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
181 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>&
input,
182 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
183 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
184 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
189 input.primitiveField(),
190 x.primitiveFieldRef(),
191 y.primitiveFieldRef(),
192 z.primitiveFieldRef()
197 input.boundaryField(),
198 x.boundaryFieldRef(),
199 y.boundaryFieldRef(),
205 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
208 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>&
input,
210 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
219 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
222 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>&
input,
224 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
233 template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
236 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>&
input,
237 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
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)
SymmTensor< Cmpt > devSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of the symmetric part of a SymmTensor.
Generic GeometricField class.
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>.
SymmTensor specific part of the implementation of GeometricField.
static Istream & input(Istream &is, IntRange< T > &range)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
dimensionSet pow2(const dimensionSet &ds)
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)
dimensionedScalar pow3(const dimensionedScalar &ds)
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>.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
dimensionedSymmTensor cof(const dimensionedSymmTensor &dt)
SymmTensor< Cmpt > devTwoSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of twice the symmetric part of a SymmTensor.