Go to the documentation of this file.
39 const label len = result.
size();
45 <<
"Components sizes do not match: " << len <<
" ("
52 for (label i=0; i < len; ++i)
54 result[i] = value_type(ii[i]);
66 const label len =
input.size();
72 <<
"Components sizes do not match: " << len <<
" ("
79 for (label i=0; i < len; ++i)
81 ii[i] =
input[i].ii();
93 auto tresult = tmp<Field<SphericalTensor<Cmpt>>>
::New(ii.size());
void unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
A class for managing temporary objects.
Generic templated field type.
errorManip< error > abort(error &err)
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element,...
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.
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)
Zip together sphericalTensor field field from components.
void size(const label n)
Older name for setAddressableSize.
static constexpr direction size() noexcept
The number of elements in the VectorSpace = Ncmpts.