A field of fields is a PtrList of fields with reference counting. More...
Public Types | |
| typedef pTraits< Type >::cmptType | cmptType |
| Component type. More... | |
Public Member Functions | |
| constexpr | FieldField () noexcept |
| Construct null. More... | |
| FieldField (const label size) | |
| Construct given size. More... | |
| FieldField (const word &type, const FieldField< Field, Type > &ff) | |
| Clone construct with new type. More... | |
| FieldField (const FieldField< Field, Type > &ff) | |
| Copy construct, cloning each element. More... | |
| FieldField (FieldField< Field, Type > &&ff) | |
| Move construct. More... | |
| FieldField (FieldField< Field, Type > &ff, bool reuse) | |
| Construct as copy or re-use as specified. More... | |
| FieldField (const PtrList< Field< Type >> &list) | |
| Copy construct from PtrList. More... | |
| FieldField (PtrList< Field< Type >> &&list) | |
| Move construct from PtrList. More... | |
| FieldField (const tmp< FieldField< Field, Type >> &tf) | |
| Move/copy construct from tmp<FieldField> More... | |
| FieldField (Istream &is) | |
| Construct from Istream. More... | |
| tmp< FieldField< Field, Type > > | clone () const |
| Clone. More... | |
| void | negate () |
| Negate this field. More... | |
| tmp< FieldField< Field, cmptType > > | component (const direction) const |
| Return a component field of the field. More... | |
| void | replace (const direction, const FieldField< Field, cmptType > &) |
| Replace a component field of the field. More... | |
| void | replace (const direction, const cmptType &) |
| Replace a component field of the field. More... | |
| tmp< FieldField< Field, Type > > | T () const |
| Return the field transpose (only defined for second rank tensors) More... | |
| void | operator= (const FieldField< Field, Type > &) |
| Copy assignment. More... | |
| void | operator= (FieldField< Field, Type > &&) |
| Move assignment. More... | |
| void | operator= (const tmp< FieldField< Field, Type >> &) |
| Move or clone assignment. More... | |
| void | operator= (const Type &val) |
| Assign uniform value. More... | |
| void | operator+= (const FieldField< Field, Type > &) |
| void | operator+= (const tmp< FieldField< Field, Type >> &) |
| void | operator-= (const FieldField< Field, Type > &) |
| void | operator-= (const tmp< FieldField< Field, Type >> &) |
| void | operator*= (const FieldField< Field, scalar > &) |
| void | operator*= (const tmp< FieldField< Field, scalar >> &) |
| void | operator/= (const FieldField< Field, scalar > &) |
| void | operator/= (const tmp< FieldField< Field, scalar >> &) |
| void | operator+= (const Type &) |
| void | operator-= (const Type &) |
| void | operator*= (const scalar &) |
| void | operator/= (const scalar &) |
Static Public Member Functions | |
| template<class Type2 > | |
| static tmp< FieldField< Field, Type > > | NewCalculatedType (const FieldField< Field, Type2 > &ff) |
| Return a pointer to a new calculatedFvPatchFieldField created on. More... | |
Friends | |
| Ostream & | operator (Ostream &, const FieldField< Field, Type > &) |
| Ostream & | operator (Ostream &, const tmp< FieldField< Field, Type >> &) |
A field of fields is a PtrList of fields with reference counting.
Definition at line 53 of file FieldField.H.
Component type.
Definition at line 84 of file FieldField.H.
|
constexprnoexcept |
Construct null.
Used for temporary fields which are initialised after construction
Definition at line 108 of file FieldField.C.
|
explicit |
Construct given size.
Used for temporary fields which are initialised after construction
Definition at line 115 of file FieldField.C.
| FieldField | ( | const word & | type, |
| const FieldField< Field, Type > & | ff | ||
| ) |
Clone construct with new type.
Definition at line 123 of file FieldField.C.
| FieldField | ( | const FieldField< Field, Type > & | ff | ) |
Copy construct, cloning each element.
Definition at line 138 of file FieldField.C.
| FieldField | ( | FieldField< Field, Type > && | ff | ) |
Move construct.
Definition at line 145 of file FieldField.C.
| FieldField | ( | FieldField< Field, Type > & | ff, |
| bool | reuse | ||
| ) |
Construct as copy or re-use as specified.
Definition at line 152 of file FieldField.C.
| FieldField | ( | const PtrList< Field< Type >> & | list | ) |
Copy construct from PtrList.
Definition at line 159 of file FieldField.C.
| FieldField | ( | PtrList< Field< Type >> && | list | ) |
Move construct from PtrList.
Definition at line 166 of file FieldField.C.
| FieldField | ( | const tmp< FieldField< Field, Type >> & | tf | ) |
Move/copy construct from tmp<FieldField>
Definition at line 173 of file FieldField.C.
| FieldField | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 182 of file FieldField.C.
| tmp< FieldField< Field, Type > > clone | ( | ) | const |
Clone.
Definition at line 189 of file FieldField.C.
|
static |
Return a pointer to a new calculatedFvPatchFieldField created on.
freestore without setting patchField values
Definition at line 198 of file FieldField.C.
Referenced by reuseTmpFieldField< Field, TypeR, Type1 >::New(), reuseTmpFieldField< Field, TypeR, TypeR >::New(), reuseTmpTmpFieldField< Field, TypeR, Type1, Type12, Type2 >::New(), reuseTmpTmpFieldField< Field, TypeR, Type1, Type12, TypeR >::New(), reuseTmpTmpFieldField< Field, TypeR, TypeR, TypeR, Type2 >::New(), and reuseTmpTmpFieldField< Field, TypeR, TypeR, TypeR, TypeR >::New().
| void negate | ( | ) |
Negate this field.
Definition at line 219 of file FieldField.C.
| tmp< FieldField< Field, typename FieldField< Field, Type >::cmptType > > component | ( | const direction | d | ) | const |
Return a component field of the field.
Definition at line 231 of file FieldField.C.
| void replace | ( | const direction | d, |
| const FieldField< Field, cmptType > & | sf | ||
| ) |
Replace a component field of the field.
Definition at line 249 of file FieldField.C.
Replace a component field of the field.
Definition at line 263 of file FieldField.C.
| tmp< FieldField< Field, Type > > T | ( | ) | const |
Return the field transpose (only defined for second rank tensors)
Definition at line 276 of file FieldField.C.
| void operator= | ( | const FieldField< Field, Type > & | ff | ) |
Copy assignment.
Definition at line 291 of file FieldField.C.
Referenced by GeometricField< Type, PatchField, GeoMesh >::Boundary::operator=().
| void operator= | ( | FieldField< Field, Type > && | ff | ) |
Move assignment.
Definition at line 308 of file FieldField.C.
| void operator= | ( | const tmp< FieldField< Field, Type >> & | ) |
Move or clone assignment.
| void operator= | ( | const Type & | val | ) |
Assign uniform value.
Definition at line 340 of file FieldField.C.
| void operator+= | ( | const FieldField< Field, Type > & | f | ) |
Definition at line 379 of file FieldField.C.
| void operator+= | ( | const tmp< FieldField< Field, Type >> & | tf | ) |
Definition at line 379 of file FieldField.C.
| void operator-= | ( | const FieldField< Field, Type > & | f | ) |
Definition at line 380 of file FieldField.C.
| void operator-= | ( | const tmp< FieldField< Field, Type >> & | tf | ) |
Definition at line 380 of file FieldField.C.
| void operator*= | ( | const FieldField< Field, scalar > & | f | ) |
Definition at line 381 of file FieldField.C.
| void operator*= | ( | const tmp< FieldField< Field, scalar >> & | tf | ) |
Definition at line 381 of file FieldField.C.
| void operator/= | ( | const FieldField< Field, scalar > & | f | ) |
Definition at line 382 of file FieldField.C.
| void operator/= | ( | const tmp< FieldField< Field, scalar >> & | tf | ) |
Definition at line 382 of file FieldField.C.
| void operator+= | ( | const Type & | t | ) |
Definition at line 379 of file FieldField.C.
| void operator-= | ( | const Type & | t | ) |
Definition at line 380 of file FieldField.C.
| void operator*= | ( | const scalar & | t | ) |
Definition at line 381 of file FieldField.C.
| void operator/= | ( | const scalar & | t | ) |
Definition at line 382 of file FieldField.C.
|
friend |
|
friend |