Go to the documentation of this file.
64 template<
class Type>
class Field;
103 inline constexpr
Field() noexcept;
107 inline explicit
Field(const label len);
110 inline
Field(const label len, const Type& val);
128 inline explicit
Field(const
UList<Type>& list);
141 template<
int SizeMin>
147 const
UList<Type>& mapF,
161 const
UList<Type>& mapF,
177 const
UList<Type>& mapF,
179 const
bool applyFlip = true
185 const
UList<Type>& mapF,
187 const Type& defaultValue,
188 const
bool applyFlip = true
194 const
UList<Type>& mapF,
196 const
UList<Type>& defaultValues,
197 const
bool applyFlip = true
205 const
bool applyFlip = true
214 const Type& defaultValue,
215 const
bool applyFlip = true
224 const
UList<Type>& defaultValues,
225 const
bool applyFlip = true
251 template<
class Type2>
295 const bool applyFlip =
true
303 const bool applyFlip =
true
310 const bool applyFlip =
true
359 template<
class VSForm>
360 VSForm
block(
const label start)
const;
401 template<
int SizeMin>
409 template<
class Form,
class Cmpt, direction nCmpt>
433 friend Ostream& operator<< <Type>
436 friend Ostream& operator<< <Type>
Template invariant parts for Field and SubField.
void operator-=(const UList< Type > &)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Abstract base class to hold the Field mapping addressing and weights.
void operator+=(const UList< Type > &)
tmp< Field< Type > > clone() const
Clone.
constexpr Field() noexcept
Default construct.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
SubField is a Field obtained as a section of another Field, without its own allocation....
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
static autoPtr< Field< Type > > New(Istream &is)
Return a pointer to a new Field created on freestore.
pTraits< Type >::cmptType cmptType
Component type.
Generic templated field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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 replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
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))
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void negate()
Negate this field (negative).
OBJstream os(runTime.globalPath()/outputName)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
void operator=(const Field< Type > &)
Copy assignment.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
void operator/=(const UList< scalar > &)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
VSForm block(const label start) const
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void operator*=(const UList< scalar > &)
static tmp< Field< Type > > NewCalculatedType(const Field< Type2 > &f)
SubField< Type > subField
Declare type of subField.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
SubField< Type > slice(const label pos, label len=-1)
Return SubField slice (non-const access) - no range checking.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
dimensionedScalar pos(const dimensionedScalar &ds)