52template<
class Type>
class SubField;
93 const
UList<Type>& list,
100 const
UList<Type>& list,
102 const label startIndex
110 const
UList<Type>& list,
119 const
UList<Type>& list
135 inline operator const
Foam::
Field<Type>&() const;
138 inline
void operator=(const
SubField<Type>&);
141 inline
void operator=(const
Field<Type>&);
144 inline
void operator=(const Type& val);
147 inline
void operator=(const
Foam::
zero);
151 inline
void operator=(const
VectorSpace<Form, Type, Ncmpts>& rhs);
154 inline
void operator+=(const Type& val);
157 inline
void operator-=(const Type& val);
160 inline
void operator*=(const scalar&
s);
163 inline
void operator/=(const scalar&
s);
173#include "SubFieldI.H"
Template invariant parts for Field and SubField.
Generic templated field type.
SubField< Type > slice(const label pos, label len=-1)
Return SubField slice (non-const access) - no range checking.
SubField is a Field obtained as a section of another Field, without its own allocation....
static const SubField< Type > & null()
Return nullObject reference SubField.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
SubField() noexcept=default
Default construct, zero-sized and nullptr.
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
pTraits< Type >::cmptType cmptType
Component type.
A List obtained as a section of another List.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const noexcept
The number of elements in the UList.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A range or interval of labels defined by a start and a size.
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))
dimensionedScalar pos(const dimensionedScalar &ds)
A non-counting (dummy) refCount.