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 |
Default construct. 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 Foam::zero) | |
Construct given size and initial values of zero. More... | |
Field (const Foam::one, const Type &val) | |
Construct with length=1, copying the value as the only content. More... | |
Field (const Foam::one, Type &&val) | |
Construct with length=1, moving the value as the only content. More... | |
Field (const Foam::one, const Foam::zero) | |
Construct with length=1, initializing content to 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... | |
SubField< Type > | slice (const label pos, label len=-1) |
Return SubField slice (non-const access) - no range checking. More... | |
const SubField< Type > | slice (const label pos, label len=-1) const |
Return SubField slice (const access) - no range checking. More... | |
SubField< Type > | slice (const labelRange &range) |
Return SubField slice (non-const access) - with range checking. More... | |
const SubField< Type > | slice (const labelRange &range) const |
Return SubField slice (const access) - with range checking. More... | |
void | operator= (const Field< Type > &) |
Copy assignment. More... | |
void | operator= (const tmp< Field< Type >> &) |
void | operator= (const UList< Type > &rhs) |
void | operator= (const SubField< Type > &rhs) |
template<class Addr > | |
void | operator= (const IndirectListBase< Type, Addr > &rhs) |
Copy assign from IndirectList. More... | |
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 Foam::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 |
|
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 31 of file FieldI.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 243 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 240 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 403 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 466 of file Field.C.
Referenced by extendedEdgeMesh::add(), extendedEdgeMesh::flipNormals(), fvMeshAdder::MapDimField(), fvMeshAdder::MapSurfaceField(), fvMeshAdder::MapVolField(), 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 539 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(), partialSlipFvPatchField< Type >::snGradTransformDiag(), fixedNormalSlipFvPatchField< 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 551 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 587 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 599 of file Field.C.
Referenced by linearDamper::restrain(), sphericalAngularDamper::restrain(), linearAxialAngularSpring::restrain(), prescribedRotation::restrain(), and filmPyrolysisTemperatureCoupledFvPatchScalarField::updateCoeffs().
Write the field as a dictionary entry.
Definition at line 608 of file Field.C.
Referenced by codedFixedValueFvPatchField< Type >::redirectPatchField(), codedFixedValuePointPatchField< Type >::redirectPatchField(), oscillatingVelocityPointPatchVectorField::write(), sixDoFRigidBodyDisplacementPointPatchVectorField::write(), and alphatPhaseChangeWallFunctionFvPatchScalarField::write().
Foam::SubField< Type > slice | ( | const label | pos, |
label | len = -1 |
||
) |
Return SubField slice (non-const access) - no range checking.
Definition at line 178 of file SubField.H.
const Foam::SubField< Type > slice | ( | const label | pos, |
label | len = -1 |
||
) | const |
Return SubField slice (const access) - no range checking.
Definition at line 190 of file SubField.H.
Foam::SubField< Type > slice | ( | const labelRange & | range | ) |
Return SubField slice (non-const access) - with range checking.
Definition at line 202 of file SubField.H.
const Foam::SubField< Type > slice | ( | const labelRange & | range | ) | const |
Return SubField slice (const access) - with range checking.
Definition at line 210 of file SubField.H.
Copy assignment.
Definition at line 635 of file Field.C.
Referenced by CompactIOField< T, BaseType >::CompactIOField(), clampedPlateFaPatchField< Type >::evaluate(), 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 |
Copy assign from IndirectList.
|
inline |
|
inline |
|
inline |
void operator= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | vs | ) |
Definition at line 687 of file Field.C.
Referenced by fvsPatchField< Type >::operator+=().
Definition at line 688 of file Field.C.
Referenced by fvsPatchField< Type >::operator-=().
Definition at line 689 of file Field.C.
Referenced by fvsPatchField< Type >::operator*=().
Definition at line 690 of file Field.C.
Referenced by fvsPatchField< Type >::operator/=().