38#ifndef Foam_GeometricTensorField_H
39#define Foam_GeometricTensorField_H
45#define TEMPLATE template<template<class> class PatchField, class GeoMesh>
56template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
59 GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>& result,
60 const GeometricField<Cmpt, PatchField, GeoMesh>& xx,
61 const GeometricField<Cmpt, PatchField, GeoMesh>& xy,
62 const GeometricField<Cmpt, PatchField, GeoMesh>& xz,
63 const GeometricField<Cmpt, PatchField, GeoMesh>& yx,
64 const GeometricField<Cmpt, PatchField, GeoMesh>& yy,
65 const GeometricField<Cmpt, PatchField, GeoMesh>& yz,
66 const GeometricField<Cmpt, PatchField, GeoMesh>& zx,
67 const GeometricField<Cmpt, PatchField, GeoMesh>& zy,
68 const GeometricField<Cmpt, PatchField, GeoMesh>& zz
72template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
75 const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>&
input,
76 GeometricField<Cmpt, PatchField, GeoMesh>& xx,
77 GeometricField<Cmpt, PatchField, GeoMesh>& xy,
78 GeometricField<Cmpt, PatchField, GeoMesh>& xz,
79 GeometricField<Cmpt, PatchField, GeoMesh>& yx,
80 GeometricField<Cmpt, PatchField, GeoMesh>& yy,
81 GeometricField<Cmpt, PatchField, GeoMesh>& yz,
82 GeometricField<Cmpt, PatchField, GeoMesh>& zx,
83 GeometricField<Cmpt, PatchField, GeoMesh>& zy,
84 GeometricField<Cmpt, PatchField, GeoMesh>& zz
89template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
92 GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>& result,
93 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
94 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
95 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
99template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
102 GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>& result,
103 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
104 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
105 const GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
109template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
112 const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>&
input,
113 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
114 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
115 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
119template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
122 const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>&
input,
123 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
x,
124 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>&
y,
125 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& z
130template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
133 const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>&
input,
135 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
139template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
142 const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>&
input,
144 GeometricField<Vector<Cmpt>, PatchField, GeoMesh>& result
148template<
class Cmpt,
template<
class>
class PatchField,
class GeoMesh>
151 const GeometricField<Tensor<Cmpt>, PatchField, GeoMesh>&
input,
152 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)
Tensor specific part of the implementation of DimensionedField.
SphericalTensor specific part of the implementation of GeometricField.
SymmTensor specific part of the implementation of GeometricField.
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.
dimensionedTensor eigenVectors(const dimensionedSymmTensor &dt)
dimensionedScalar sign(const dimensionedScalar &ds)
static Istream & input(Istream &is, IntRange< T > &range)
dimensionedVector eigenValues(const dimensionedSymmTensor &dt)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
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)
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.
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedTensor skew(const dimensionedTensor &dt)
void zip(FieldField< Field, SphericalTensor< Cmpt > > &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.