64template<
class Type>
class Field;
65template<
class Type>
class SubField;
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
365 template<
class VSForm>
366 VSForm
block(
const label start)
const;
407 template<
int SizeMin>
415 template<
class Form,
class Cmpt, direction nCmpt>
439 friend Ostream& operator<< <Type>
442 friend Ostream& operator<< <Type>
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Template invariant parts for Field and SubField.
Abstract base class to hold the Field mapping addressing and weights.
Generic templated field type.
static tmp< Field< Type > > NewCalculatedType(const Field< Type2 > &f)
static const Field< Type > & null()
Return nullObject reference Field.
static autoPtr< Field< Type > > New(Istream &is)
Return a pointer to a new Field created on freestore.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
void operator=(const Field< Type > &)
Copy assignment.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void operator+=(const UList< Type > &)
void operator-=(const UList< Type > &)
void operator=(const tmp< Field< Type > > &)
SubField< Type > subField
Declare type of subField.
pTraits< Type >::cmptType cmptType
Component type.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
void replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
constexpr Field() noexcept
Default construct.
void operator*=(const UList< scalar > &)
tmp< Field< Type > > clone() const
Clone.
void operator/=(const UList< scalar > &)
void negate()
Inplace negate this field (negative).
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
SubField< Type > slice(const label pos, label len=-1)
Return SubField slice (non-const access) - no range checking.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
SubField is a Field obtained as a section of another Field, without its own allocation....
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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 representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar pos(const dimensionedScalar &ds)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A non-counting (dummy) refCount.