100 <<
"Resizing field to match i-j-k sizing " << sizes()
104 Field<Type>::resize(ijk_.size(), Foam::zero{});
116 Field<Type>(std::move(
field)),
123 <<
"Resizing field to match i-j-k sizing " << sizes()
127 Field<Type>::resize(ijk_.size(), Foam::zero{});
140 return ijk_.size(cmpt);
203 sizes() =
rhs.sizes();
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
void operator=(const Field< Type > &)
Copy assignment.
constexpr Field() noexcept
Default construct.
Generic templated field type with i-j-k addressing.
IjkField()
Construct zero-sized.
const ijkAddressing & ijk() const noexcept
Return i,j,k addressing.
const labelVector & sizes() const noexcept
Return i,j,k addressing sizes.
label size(const vector::components cmpt) const
The addressing dimension in the given direction.
void operator=(const IjkField< Type > &rhs)
Copy assignment.
void clear()
Clear dimensions and field.
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Type & operator[](const label i)
label size() const noexcept
Return the total i*j*k size.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Vector< label > labelVector
Vector of labels.
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
A non-counting (dummy) refCount.