Go to the documentation of this file.
64 template<
class Type>
class Field;
98 return NullObjectRef<Field<Type>>();
106 inline constexpr
Field() noexcept;
110 inline explicit
Field(const label len);
113 inline
Field(const label len, const Type& val);
131 inline explicit
Field(const
UList<Type>& list);
144 template<
int SizeMin>
150 const
UList<Type>& mapF,
164 const
UList<Type>& mapF,
180 const
UList<Type>& mapF,
182 const
bool applyFlip = true
188 const
UList<Type>& mapF,
190 const Type& defaultValue,
191 const
bool applyFlip = true
197 const
UList<Type>& mapF,
199 const
UList<Type>& defaultValues,
200 const
bool applyFlip = true
208 const
bool applyFlip = true
217 const Type& defaultValue,
218 const
bool applyFlip = true
227 const
UList<Type>& defaultValues,
228 const
bool applyFlip = true
254 template<
class Type2>
298 const bool applyFlip =
true
306 const bool applyFlip =
true
313 const bool applyFlip =
true
362 template<
class VSForm>
363 VSForm
block(
const label start)
const;
384 template<
int SizeMin>
392 template<
class Form,
class Cmpt, direction nCmpt>
416 friend Ostream& operator<< <Type>
419 friend Ostream& operator<< <Type>
Template invariant parts for Field.
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
Construct null.
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.
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)
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).
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...
Traits class 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,...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...