34 return NullObjectRef<SubField<Type>>();
86 const label startIndex
89 SubList<Type>(list, subSize, startIndex)
124 return (
reinterpret_cast<const Field<Type>&
>(*
this)).component(d);
140 return *
reinterpret_cast<const Field<Type>*
>(
this);
173 template<
class Form, Foam::direction Ncmpts>
181 this->operator[](i) = rhs[i];
189 for (Type& lhs : *
this)
199 for (Type& lhs : *
this)
209 for (Type& lhs : *
this)
219 for (Type& lhs : *
this)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
A range or interval of labels defined by a start and a size.
void operator=(const SubField< Type > &)
Copy assign via UList operator. Takes linear time.
SubField is a Field obtained as a section of another Field, without its own allocation. SubField is derived from a SubList rather than a List.
void operator-=(const Type &val)
Subtract value from each entry.
void operator+=(const Type &val)
Add value to each entry.
#define forAll(list, i)
Loop across all elements in list.
SubField() noexcept=default
Default construct, zero-sized and nullptr.
void operator=(const SubList< T > &list)
Copy assign entries from given sub-list. Sizes must match!
A List obtained as a section of another List.
Generic templated field type.
void operator/=(const scalar &s)
Divide each entry by value.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A class for managing temporary objects.
static const SubField< Type > & null()
Return nullObject reference SubField.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void operator*=(const scalar &s)
Multiply each entry by value.
static constexpr const zero Zero
Global zero (0)