32#define TEMPLATE template<template<class> class PatchField, class GeoMesh>
37template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
51 result.primitiveFieldRef(),
59 result.boundaryFieldRef(),
67template<
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(),
97template<
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(),
124template<
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(),
151template<
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(),
178template<
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(),
205template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
208 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>& input,
210 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
215 Foam::unzipRow(input.boundaryField(), idx, result.boundaryFieldRef());
219template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
222 const GeometricField<SymmTensor<Cmpt>, PatchField, GeoMesh>& input,
224 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
229 Foam::unzipCol(input.boundaryField(), idx, result.boundaryFieldRef());
233template<
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_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc)
SymmTensor specific part of the implementation of GeometricField.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
Tensor of scalars, i.e. Tensor<scalar>.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
dimensionedScalar det(const dimensionedSphericalTensor &dt)
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
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 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.
void unzipDiag(const FieldField< Field, SymmTensor< Cmpt > > &input, FieldField< Field, Vector< Cmpt > > &result)
Extract a symmTensor field field diagonal.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
SymmTensor< Cmpt > devTwoSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of twice the symmetric part of a SymmTensor.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
SymmTensor< Cmpt > devSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of the symmetric part of a SymmTensor.
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
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 cof(const dimensionedSymmTensor &dt)
void hdual(pointPatchField< vector > &, const pointPatchField< tensor > &)
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 unzip(const FieldField< Field, SphericalTensor< Cmpt > > &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dimensionedSymmTensor innerSqr(const dimensionedSymmTensor &dt)
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).
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.
dimensionSet pow2(const dimensionSet &ds)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
void zip(FieldField< Field, SphericalTensor< Cmpt > > &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
Specialisation of FieldField<T> for symmTensor.