115 return (
reinterpret_cast<const Field<Type>&
>(*
this)).component(d);
131 return *
reinterpret_cast<const Field<Type>*
>(
this);
164 template<
class Form, Foam::direction Ncmpts>
167 const VectorSpace<Form, Type, Ncmpts>& rhs
172 this->operator[](i) = rhs[i];
180 for (Type& lhs : *
this)
190 for (Type& lhs : *
this)
200 for (Type& lhs : *
this)
210 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.
A List obtained as a section of another List.
Generic templated field type.
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;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A class for managing temporary objects.
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.