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>
81 input.primitiveField(),
89 input.boundaryField(),
97template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
108 result.primitiveFieldRef(),
116 result.boundaryFieldRef(),
124template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
135 result.primitiveFieldRef(),
143 result.boundaryFieldRef(),
151template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
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>
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>
213 Foam::unzipRow(input.primitiveField(), idx, result.primitiveFieldRef());
215 Foam::unzipRow(input.boundaryField(), idx, result.boundaryFieldRef());
219template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
227 Foam::unzipCol(input.primitiveField(), idx, result.primitiveFieldRef());
229 Foam::unzipCol(input.boundaryField(), idx, result.boundaryFieldRef());
233template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
#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.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const Boundary & boundaryField() const
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.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
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.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
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)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
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)
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.