42 const label len = result.
size();
45 if (len !=
x.size() || len !=
y.size())
48 <<
"Components sizes do not match: " << len <<
" (" 56 for (label i=0; i < len; ++i)
58 result[i] = value_type(
x[i],
y[i]);
66 const UList<Vector2D<Cmpt>>&
input,
71 const label len =
input.size();
74 if (len !=
x.size() || len !=
y.size())
77 <<
"Components sizes do not match: " << len <<
" (" 85 for (label i=0; i < len; ++i)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
void zip(FieldField< Field, SphericalTensor< Cmpt >> &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
void unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
Generic templated field type.
static Istream & input(Istream &is, IntRange< T > &range)
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static constexpr direction size() noexcept
The number of elements in the VectorSpace = Ncmpts.
Templated 2D Vector derived from VectorSpace adding construction from 2 components, element access using x() and y() member functions and the inner-product (dot-product).