Go to the documentation of this file.
41 const label len = result.
size();
47 || len != yy.
size() || len != yz.
size()
52 <<
"Components sizes do not match: " << len <<
" ("
53 << xx.
size() <<
' ' << xy.
size() <<
' ' << xz.
size() <<
' '
54 << yy.
size() <<
' ' << yz.
size() <<
' '
61 for (label i=0; i < len; ++i)
63 result[i] = value_type
76 const UList<SymmTensor<Cmpt>>&
input,
77 Field<Cmpt>& xx, Field<Cmpt>& xy, Field<Cmpt>& xz,
78 Field<Cmpt>& yy, Field<Cmpt>& yz,
82 const label len =
input.size();
87 len != xx.size() || len != xy.size() || len != xz.size()
88 || len != yy.size() || len != yz.size()
93 <<
"Components sizes do not match: " << len <<
" ("
94 << xx.size() <<
' ' << xy.size() <<
' ' << xz.size() <<
' '
95 << yy.size() <<
' ' << yz.size() <<
' '
102 for (label i=0; i < len; ++i)
106 zz[i] =
input[i].zz();
115 const Field<Cmpt>& xx,
const Field<Cmpt>& xy,
const Field<Cmpt>& xz,
116 const Field<Cmpt>& yy,
const Field<Cmpt>& yz,
117 const Field<Cmpt>& zz
120 auto tresult = tmp<Field<SymmTensor<Cmpt>>>
::New(xx.size());
122 Foam::zip(tresult.ref(), xx, xy, xz, yy, yz, zz);
131 const UList<SymmTensor<Cmpt>>&
input,
132 Field<Vector<Cmpt>>& result
135 const label len =
input.size();
138 if (len != result.size())
141 <<
"Components sizes do not match: " << len <<
" ("
142 << result.size() <<
')'
148 for (label i=0; i < len; ++i)
150 result[i] =
input[i].diag();
159 const Field<SymmTensor<Cmpt>>&
input
162 auto tresult = tmp<Field<Vector<Cmpt>>>
::New(
input.size());
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
void unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
A class for managing temporary objects.
Generic templated field type.
errorManip< error > abort(error &err)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
#define FatalErrorInFunction
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static Istream & input(Istream &is, IntRange< T > &range)
void zip(FieldField< Field, SphericalTensor< Cmpt >> &result, const FieldField< Field, Cmpt > &ii)
void unzipDiag(const FieldField< Field, SymmTensor< Cmpt >> &input, FieldField< Field, Vector< Cmpt >> &result)
static constexpr direction size() noexcept