Go to the documentation of this file.
64 template<
class Type>
class Field;
99 return NullObjectRef<Field<Type>>();
107 inline constexpr
Field() noexcept;
111 inline explicit
Field(const label len);
114 inline
Field(const label len, const Type& val);
117 inline
Field(const label len, const
zero);
123 inline explicit
Field(const
UList<Type>& list);
136 template<
int SizeMin>
142 const
UList<Type>& mapF,
156 const
UList<Type>& mapF,
172 const
UList<Type>& mapF,
174 const
bool applyFlip = true
180 const
UList<Type>& mapF,
182 const Type& defaultValue,
183 const
bool applyFlip = true
189 const
UList<Type>& mapF,
191 const
UList<Type>& defaultValues,
192 const
bool applyFlip = true
200 const
bool applyFlip = true
209 const Type& defaultValue,
210 const
bool applyFlip = true
219 const
UList<Type>& defaultValues,
220 const
bool applyFlip = true
246 template<
class Type2>
290 const bool applyFlip =
true
298 const bool applyFlip =
true
305 const bool applyFlip =
true
354 template<
class VSForm>
355 VSForm
block(
const label start)
const;
376 template<
int SizeMin>
384 template<
class Form,
class Cmpt, direction nCmpt>
408 friend Ostream& operator<< <Type>
411 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.
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 the Cartesian directions etc.
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 ...