Go to the documentation of this file.
43 const label len = result.
size();
46 if (len !=
x.size() || len !=
y.size() || len != z.
size())
49 <<
"Components sizes do not match: " << len <<
" ("
50 <<
x.size() <<
' ' <<
y.size() <<
' ' << z.
size() <<
')'
56 for (label i=0; i < len; ++i)
58 result[i] = value_type(
x[i],
y[i], z[i]);
71 auto tresult = tmp<Field<Vector<Cmpt>>>
::New(
x.size());
88 const label len =
input.size();
91 if (len !=
x.size() || len !=
y.size() || len != z.size())
94 <<
"Components sizes do not match: " << len <<
" ("
95 <<
x.size() <<
' ' <<
y.size() <<
' ' << z.size() <<
')'
101 for (label i=0; i < len; ++i)
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)
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...
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) noexcept
Override size to be inconsistent with allocated storage.
static constexpr direction size() noexcept
The number of elements in the VectorSpace = Ncmpts.