Go to the documentation of this file.
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
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)
104 xx[i] = input[i].xx(); xy[i] = input[i].xy(); xz[i] = input[i].xz();
105 yy[i] = input[i].yy(); yz[i] = input[i].yz();
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);
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());
Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 components,...
void unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
A class for managing temporary objects.
static constexpr direction size()
Return the number of elements in the VectorSpace = Ncmpts.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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...
void zip(FieldField< Field, SphericalTensor< Cmpt >> &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
void unzipDiag(const FieldField< Field, SymmTensor< Cmpt >> &input, FieldField< Field, Vector< Cmpt >> &result)
Extract a symmTensor field field diagonal.