38 #ifndef Foam_FieldField_H 39 #define Foam_FieldField_H 55 template<
template<
class>
class Field,
class Type>
58 template<
template<
class>
class Field,
class Type>
65 template<
template<
class>
class Field,
class Type>
77 template<
template<
class>
class Field,
class Type>
106 template<class CloneArg, class... CloneArgs>
128 template<class... Args>
133 template<class Type2>
248 #include "FieldFieldFunctions.H"
Reference counter for various OpenFOAM components.
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...
void clamp_range(const Type &lower, const Type &upper)
Clamp field values (in-place) to the specified range.
A traits class, which is primarily used for primitives and vector-space.
void normalise()
Normalise this field. See notes in Field.
A field of fields is a PtrList of fields with reference counting.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void negate()
Negate this field. See notes in Field.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
A class for handling words, derived from Foam::string.
tmp< FieldField< Field, Type > > clone(Args &&... args) const
Clone, forwarding optional arguments to clone of each element.
static tmp< FieldField< Field, Type > > NewCalculatedType(const FieldField< Field, Type2 > &ff)
Return a pointer to a new calculated patchField created on freestore without setting patchField value...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
string upper(const std::string &s)
Return string copy transformed with std::toupper on each character.
tmp< FieldField< Field, cmptType > > component(const direction) const
Return a component field of the field.
void replace(const direction, const FieldField< Field, cmptType > &)
Replace a component field of the field.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions, components etc.
pTraits< Type >::cmptType cmptType
Component type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
string lower(const std::string &s)
Return string copy transformed with std::tolower on each character.
constexpr FieldField() noexcept
Default construct. Used for temporary fields that are initialised after construction.
tmp< FieldField< Field, Type > > T() const
Return the field transpose (only defined for second rank tensors)
friend Ostream & operator(Ostream &, const FieldField< Field, Type > &)
A class for managing temporary objects.
Foam::argList args(argc, argv)
void clamp_max(const Type &upper)
Impose upper (ceiling) clamp on the field values (in-place)
A non-counting (dummy) refCount.
const FieldField< fvPatchField, Type > & ff(const FieldField< fvPatchField, Type > &bf)
void clamp_min(const Type &lower)
Impose lower (floor) clamp on the field values (in-place)