38#ifndef Foam_FieldField_H
39#define Foam_FieldField_H
55template<
template<
class>
class Field,
class Type>
58template<
template<
class>
class Field,
class Type>
65template<
template<
class>
class Field,
class Type>
77template<
template<
class>
class Field,
class Type>
128 template<class Type2>
166 void clamp_range(const Type& lower, const Type& upper);
243#include "FieldFieldFunctions.H"
A field of fields is a PtrList of fields with reference counting.
tmp< FieldField< Field, Type > > T() const
Return the field transpose (only defined for second rank tensors).
constexpr FieldField() noexcept
Construct null.
void clamp_range(const Type &lower, const Type &upper)
Clamp field values (in-place) to the specified range.
tmp< FieldField< Field, Type > > clone() const
Clone.
static tmp< FieldField< Field, Type > > NewCalculatedType(const FieldField< Field, Type2 > &ff)
Return a pointer to a new calculatedFvPatchFieldField created on.
void clamp_min(const Type &lower)
Impose lower (floor) clamp on the field values (in-place).
void replace(const direction, const FieldField< Field, cmptType > &)
Replace a component field of the field.
pTraits< Type >::cmptType cmptType
Component type.
void negate()
Negate this field. See notes in Field.
void clamp_max(const Type &upper)
Impose upper (ceiling) clamp on the field values (in-place).
void normalise()
Normalise this field. See notes in Field.
friend Ostream & operator(Ostream &, const FieldField< Field, Type > &)
tmp< FieldField< Field, cmptType > > component(const direction) const
Return a component field of the field.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A min/max value pair with additional methods. In addition to conveniently storing values,...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
constexpr PtrList() noexcept
label size() const noexcept
A traits class, which is primarily used for primitives and vector-space.
constexpr refCount() noexcept
Default construct, initializing count to 0.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
Pair< label > labelPair
A pair of labels.
A non-counting (dummy) refCount.