Go to the documentation of this file.
34 return NullObjectRef<SubField<Type>>();
86 const label startIndex
124 return (
reinterpret_cast<const Field<Type>&
>(*
this)).component(d);
131 return (
reinterpret_cast<const Field<Type>&
>(*
this)).T();
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)
void operator/=(const scalar &s)
Divide each entry by value.
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))
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
A List obtained as a section of another List.
#define forAll(list, i)
Loop across all elements in list.
static const SubField< Type > & null()
Return nullObject reference SubField.
SubField is a Field obtained as a section of another Field, without its own allocation....
void operator*=(const scalar &s)
Multiply each entry by value.
Generic templated field type.
A range or interval of labels defined by a start and a size.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
void operator=(const SubField< Type > &)
Copy assign via UList operator. Takes linear time.
void operator-=(const Type &val)
Subtract value from each entry.
SubField() noexcept=default
Default construct, zero-sized and nullptr.
void operator+=(const Type &val)
Add value to each entry.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...