Generic templated field type. More...
Public Types | |
| typedef pTraits< Type >::cmptType | cmptType |
| Component type. More... | |
| typedef SubField< Type > | subField |
| Declare type of subField. More... | |
Public Member Functions | |
| constexpr | Field () noexcept |
| Construct null. More... | |
| Field (const label len) | |
| Construct given size. More... | |
| Field (const label len, const Type &val) | |
| Construct given size and initial value. More... | |
| Field (const label len, const zero) | |
| Construct given size and initial values of zero. More... | |
| Field (const Field< Type > &fld) | |
| Copy construct. More... | |
| Field (const UList< Type > &list) | |
| Copy construct from UList<Type> More... | |
| template<class Addr > | |
| Field (const IndirectListBase< Type, Addr > &list) | |
| Copy construct from IndirectList. More... | |
| Field (Field< Type > &&fld) | |
| Move construct from Field. More... | |
| Field (List< Type > &&list) | |
| Move construct from List. More... | |
| template<int SizeMin> | |
| Field (DynamicList< Type, SizeMin > &&list) | |
| Move construct from DynamicList. More... | |
| Field (const UList< Type > &mapF, const labelUList &mapAddressing) | |
| Construct by 1 to 1 mapping from the given field. More... | |
| Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) | |
| Construct by 1 to 1 mapping from the given tmp field. More... | |
| Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) | |
| Construct by interpolative mapping from the given field. More... | |
| Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) | |
| Construct by interpolative mapping from the given tmp field. More... | |
| Field (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true) | |
| Construct by mapping from the given field. More... | |
| Field (const UList< Type > &mapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true) | |
| Construct by mapping from the given field. More... | |
| Field (const UList< Type > &mapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
| Construct by mapping from the given field. More... | |
| Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true) | |
| Construct by mapping from the given tmp field. More... | |
| Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true) | |
| Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
| Field (Field< Type > &fld, bool reuse) | |
| Copy construct or re-use as specified. More... | |
| Field (const tmp< Field< Type >> &tfld) | |
| Copy or move construct from tmp. More... | |
| Field (Istream &is) | |
| Construct from Istream. More... | |
| Field (const word &keyword, const dictionary &dict, const label len) | |
| Construct from a dictionary entry. More... | |
| tmp< Field< Type > > | clone () const |
| Clone. More... | |
| void | map (const UList< Type > &mapF, const labelUList &mapAddressing) |
| 1 to 1 map from the given field More... | |
| void | map (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) |
| 1 to 1 map from the given tmp field More... | |
| void | map (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) |
| Interpolative map from the given field. More... | |
| void | map (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) |
| Interpolative map from the given tmp field. More... | |
| void | map (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true) |
| Map from the given field. More... | |
| void | map (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true) |
| Map from the given tmp field. More... | |
| void | autoMap (const FieldMapper &map, const bool applyFlip=true) |
| Map from self. More... | |
| void | rmap (const UList< Type > &mapF, const labelUList &mapAddressing) |
| 1 to 1 reverse-map from the given field More... | |
| void | rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) |
| 1 to 1 reverse-map from the given tmp field More... | |
| void | rmap (const UList< Type > &mapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
| Interpolative reverse map from the given field. More... | |
| void | rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
| Interpolative reverse map from the given tmp field. More... | |
| void | negate () |
| Negate this field (negative). More... | |
| tmp< Field< cmptType > > | component (const direction) const |
| Return a component field of the field. More... | |
| void | replace (const direction, const UList< cmptType > &) |
| Replace a component field of the field. More... | |
| void | replace (const direction, const tmp< Field< cmptType >> &) |
| Replace a component field of the field. More... | |
| void | replace (const direction, const cmptType &) |
| Replace a component field of the field. More... | |
| template<class VSForm > | |
| VSForm | block (const label start) const |
| tmp< Field< Type > > | T () const |
| Return the field transpose (only defined for second rank tensors) More... | |
| void | writeEntry (const word &keyword, Ostream &os) const |
| Write the field as a dictionary entry. More... | |
| void | operator= (const Field< Type > &) |
| Copy assignment. More... | |
| void | operator= (const tmp< Field< Type >> &) |
| void | operator= (const UList< Type > &) |
| void | operator= (const SubField< Type > &) |
| void | operator= (Field< Type > &&rhs) |
| Move assignment. More... | |
| void | operator= (List< Type > &&rhs) |
| template<int SizeMin> | |
| void | operator= (DynamicList< Type, SizeMin > &&rhs) |
| void | operator= (const Type &val) |
| Value assignment. More... | |
| void | operator= (const zero) |
| template<class Form , class Cmpt , direction nCmpt> | |
| void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
| void | operator+= (const UList< Type > &) |
| void | operator+= (const tmp< Field< Type >> &) |
| void | operator-= (const UList< Type > &) |
| void | operator-= (const tmp< Field< Type >> &) |
| void | operator*= (const UList< scalar > &) |
| void | operator*= (const tmp< Field< scalar >> &) |
| void | operator/= (const UList< scalar > &) |
| void | operator/= (const tmp< Field< scalar >> &) |
| void | operator+= (const Type &) |
| void | operator-= (const Type &) |
| void | operator*= (const scalar &) |
| void | operator/= (const scalar &) |
| template<class Type> | |
| void | operator= (const tmp< Field > &rhs) |
Static Public Member Functions | |
| static const Field< Type > & | null () |
| Return nullObject reference field. More... | |
| static autoPtr< Field< Type > > | New (Istream &is) |
| Return a pointer to a new Field created on freestore. More... | |
| template<class Type2 > | |
| static tmp< Field< Type > > | NewCalculatedType (const Field< Type2 > &f) |
Friends | |
| Ostream & | operator (Ostream &, const Field< Type > &) |
| Ostream & | operator (Ostream &, const tmp< Field< Type >> &) |
Generic templated field type.
|
inlineconstexprnoexcept |
|
inlineexplicit |
|
inline |
|
inline |
|
inlineexplicit |
Copy construct from IndirectList.
|
inline |
Move construct from DynamicList.
| Field | ( | const UList< Type > & | mapF, |
| const labelUList & | mapAddressing | ||
| ) |
| Field | ( | const tmp< Field< Type >> & | tmapF, |
| const labelUList & | mapAddressing | ||
| ) |
| Field | ( | const UList< Type > & | mapF, |
| const labelListList & | mapAddressing, | ||
| const scalarListList & | weights | ||
| ) |
| Field | ( | const tmp< Field< Type >> & | tmapF, |
| const labelListList & | mapAddressing, | ||
| const scalarListList & | weights | ||
| ) |
| Field | ( | const UList< Type > & | mapF, |
| const FieldMapper & | map, | ||
| const bool | applyFlip = true |
||
| ) |
| Field | ( | const UList< Type > & | mapF, |
| const FieldMapper & | map, | ||
| const Type & | defaultValue, | ||
| const bool | applyFlip = true |
||
| ) |
| Field | ( | const UList< Type > & | mapF, |
| const FieldMapper & | map, | ||
| const UList< Type > & | defaultValues, | ||
| const bool | applyFlip = true |
||
| ) |
| Field | ( | const tmp< Field< Type >> & | tmapF, |
| const FieldMapper & | map, | ||
| const bool | applyFlip = true |
||
| ) |
| Field | ( | const tmp< Field< Type >> & | tmapF, |
| const FieldMapper & | map, | ||
| const Type & | defaultValue, | ||
| const bool | applyFlip = true |
||
| ) |
| Field | ( | const word & | keyword, |
| const dictionary & | dict, | ||
| const label | len | ||
| ) |
|
inlinestatic |
Return nullObject reference field.
Definition at line 96 of file Field.H.
Referenced by meshedSurfRef::clear(), meshedSurf::emptySurface::points(), lumpedPointMovement::writeVTP(), and lumpedPointMovement::writeZonesVTP().
|
inline |
Return a pointer to a new Field created on freestore.
Definition at line 238 of file Field.H.
Referenced by Field< Foam::Vector2D >::NewCalculatedType().
| void map | ( | const UList< Type > & | mapF, |
| const labelUList & | mapAddressing | ||
| ) |
1 to 1 map from the given field
Definition at line 252 of file Field.C.
Referenced by conjugateGradient::computeCorrection(), sampledPatchInternalField::sampleOnFaces(), SR1::update(), DBFGS::update(), BFGS::update(), and polyMesh::updateMesh().
| void map | ( | const tmp< Field< Type >> & | tmapF, |
| const labelUList & | mapAddressing | ||
| ) |
| void map | ( | const UList< Type > & | mapF, |
| const labelListList & | mapAddressing, | ||
| const scalarListList & | weights | ||
| ) |
| void map | ( | const tmp< Field< Type >> & | tmapF, |
| const labelListList & | mapAddressing, | ||
| const scalarListList & | weights | ||
| ) |
| void map | ( | const UList< Type > & | mapF, |
| const FieldMapper & | map, | ||
| const bool | applyFlip = true |
||
| ) |
| void map | ( | const tmp< Field< Type >> & | tmapF, |
| const FieldMapper & | map, | ||
| const bool | applyFlip = true |
||
| ) |
| void autoMap | ( | const FieldMapper & | map, |
| const bool | applyFlip = true |
||
| ) |
Map from self.
Definition at line 415 of file Field.C.
Referenced by fvsPatchField< Type >::autoMap().
| void rmap | ( | const UList< Type > & | mapF, |
| const labelUList & | mapAddressing | ||
| ) |
1 to 1 reverse-map from the given field
Definition at line 478 of file Field.C.
Referenced by extendedEdgeMesh::add(), extendedEdgeMesh::flipNormals(), and fvsPatchField< Type >::rmap().
| void rmap | ( | const tmp< Field< Type >> & | tmapF, |
| const labelUList & | mapAddressing | ||
| ) |
| void rmap | ( | const UList< Type > & | mapF, |
| const labelUList & | mapAddressing, | ||
| const UList< scalar > & | weights | ||
| ) |
| void rmap | ( | const tmp< Field< Type >> & | tmapF, |
| const labelUList & | mapAddressing, | ||
| const UList< scalar > & | weights | ||
| ) |
| void negate | ( | ) |
| Foam::tmp< Foam::Field< typename Foam::Field< Type >::cmptType > > component | ( | const direction | d | ) | const |
Return a component field of the field.
Definition at line 551 of file Field.C.
Referenced by Bezier::dndbBasedSensitivities(), Bezier::dxdbFace(), setFlow::execute(), NURBS3DVolume::findPointsInBox(), waveModel::initialiseGeometry(), dynamicOversetFvMesh::normalisation(), particleDistribution::processField(), faMatrix< Type >::residual(), fvMatrix< Type >::residual(), basicSymmetryFvPatchField< Type >::snGradTransformDiag(), basicSymmetryFaPatchField< Type >::snGradTransformDiag(), fixedNormalSlipFvPatchField< Type >::snGradTransformDiag(), partialSlipFvPatchField< Type >::snGradTransformDiag(), faMatrix< Type >::solve(), fvMatrix< Type >::solveSegregated(), waveMakerPointPatchVectorField::updateCoeffs(), jumpCyclicFvPatchField< vector >::updateInterfaceMatrix(), componentDisplacementMotionSolver::updateMesh(), sensitivityBezier::write(), and Foam::writeCellGraph().
Replace a component field of the field.
Definition at line 563 of file Field.C.
Referenced by velocityComponentLaplacianFvMotionSolver::curPoints(), displacementComponentLaplacianFvMotionSolver::curPoints(), Bezier::dndbBasedSensitivities(), Bezier::dxdbFace(), setFlow::execute(), particleDistribution::generateDistribution(), fvMatrix< Type >::H(), faMatrix< Type >::residual(), fvMatrix< Type >::residual(), and dynamicInkJetFvMesh::update().
| VSForm block | ( | const label | start | ) | const |
Definition at line 599 of file Field.C.
Referenced by rigidBodyModel::forwardDynamics(), rigidBodyModel::forwardDynamicsCorrection(), Pxyz::jcalc(), Rxyz::jcalc(), Ryxz::jcalc(), Rzyx::jcalc(), Rs::jcalc(), and joint::unitQuaternion().
| Foam::tmp< Foam::Field< Type > > T | ( | ) | const |
Return the field transpose (only defined for second rank tensors)
Definition at line 611 of file Field.C.
Referenced by linearDamper::restrain(), sphericalAngularDamper::restrain(), linearAxialAngularSpring::restrain(), and filmPyrolysisTemperatureCoupledFvPatchScalarField::updateCoeffs().
Write the field as a dictionary entry.
Definition at line 620 of file Field.C.
Referenced by codedFixedValueFvPatchField< Type >::redirectPatchField(), codedFixedValuePointPatchField< Type >::redirectPatchField(), oscillatingVelocityPointPatchVectorField::write(), alphatPhaseChangeWallFunctionFvPatchScalarField::write(), and sixDoFRigidBodyDisplacementPointPatchVectorField::write().
Copy assignment.
Definition at line 647 of file Field.C.
Referenced by CompactIOField< T, BaseType >::CompactIOField(), IOField< Type >::IOField(), adjointFarFieldPressureFvPatchScalarField::operator*=(), adjointFarFieldPressureFvPatchScalarField::operator+=(), adjointFarFieldPressureFvPatchScalarField::operator-=(), adjointFarFieldPressureFvPatchScalarField::operator/=(), IOField< Type >::operator=(), CompactIOField< T, BaseType >::operator=(), adjointFarFieldPressureFvPatchScalarField::operator=(), fvsPatchField< Type >::operator=(), fvsPatchField< Type >::operator==(), oscillatingDisplacementPointPatchVectorField::updateCoeffs(), and waveMakerPointPatchVectorField::updateCoeffs().
|
inline |
|
inline |
| void operator= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | vs | ) |
Definition at line 699 of file Field.C.
Referenced by fvsPatchField< Type >::operator+=().
Definition at line 700 of file Field.C.
Referenced by fvsPatchField< Type >::operator-=().
Definition at line 701 of file Field.C.
Referenced by fvsPatchField< Type >::operator*=().
Definition at line 702 of file Field.C.
Referenced by fvsPatchField< Type >::operator/=().