Generic templated field type. More...
Public Types | |
typedef pTraits< Type >::cmptType | cmptType |
typedef SubField< Type > | subField |
Public Member Functions | |
constexpr | Field () noexcept |
Field (const label len) | |
Field (const label len, const Type &val) | |
Field (const label len, const Foam::zero) | |
Field (const Foam::one, const Type &val) | |
Field (const Foam::one, Type &&val) | |
Field (const Foam::one, const Foam::zero) | |
Field (const Field< Type > &fld) | |
Field (const UList< Type > &list) | |
template<class Addr > | |
Field (const IndirectListBase< Type, Addr > &list) | |
Field (Field< Type > &&fld) | |
Field (List< Type > &&list) | |
template<int SizeMin> | |
Field (DynamicList< Type, SizeMin > &&list) | |
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 tmp< Field< Type >> &tmapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
Field (Field< Type > &fld, bool reuse) | |
Field (const tmp< Field< Type >> &tfld) | |
Field (Istream &is) | |
Field (const word &keyword, const dictionary &dict, const label len) | |
tmp< Field< Type > > | clone () const |
void | map (const UList< Type > &mapF, const labelUList &mapAddressing) |
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) |
void | rmap (const UList< Type > &mapF, const labelUList &mapAddressing) |
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 () |
tmp< Field< cmptType > > | component (const direction) const |
void | replace (const direction, const UList< cmptType > &) |
void | replace (const direction, const tmp< Field< cmptType >> &) |
void | replace (const direction, const cmptType &) |
template<class VSForm > | |
VSForm | block (const label start) const |
tmp< Field< Type > > | T () const |
void | writeEntry (const word &keyword, Ostream &os) const |
SubField< Type > | slice (const label pos, label len=-1) |
const SubField< Type > | slice (const label pos, label len=-1) const |
SubField< Type > | slice (const labelRange &range) |
const SubField< Type > | slice (const labelRange &range) const |
void | operator= (const Field< Type > &) |
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) |
void | operator= (Field< Type > &&rhs) |
void | operator= (List< Type > &&rhs) |
template<int SizeMin> | |
void | operator= (DynamicList< Type, SizeMin > &&rhs) |
void | operator= (const Type &val) |
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 > | |
Field (const UList< Type > &mapF, const labelUList &mapAddressing) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) | |
template<class Type > | |
Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &mapWeights) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &mapWeights) | |
template<class Type > | |
Field (const UList< Type > &mapF, const FieldMapper &mapper, const bool applyFlip) | |
template<class Type > | |
Field (const UList< Type > &mapF, const FieldMapper &mapper, const Type &defaultValue, const bool applyFlip) | |
template<class Type > | |
Field (const UList< Type > &mapF, const FieldMapper &mapper, const UList< Type > &defaultValues, const bool applyFlip) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const bool applyFlip) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const Type &defaultValue, const bool applyFlip) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const UList< Type > &defaultValues, const bool applyFlip) | |
template<class Type > | |
Field (const word &keyword, const dictionary &dict, const label len) | |
template<class Type > | |
void | operator= (const Field< Type > &rhs) |
template<class Type > | |
void | operator= (const tmp< Field > &rhs) |
template<class Type > | |
constexpr | Field () noexcept |
template<class Type > | |
Field (const label len) | |
template<class Type > | |
Field (const label len, const Type &val) | |
template<class Type > | |
Field (const label len, const Foam::zero) | |
template<class Type > | |
Field (const Foam::one, const Type &val) | |
template<class Type > | |
Field (const Foam::one, Type &&val) | |
template<class Type > | |
Field (const Foam::one, const Foam::zero) | |
template<class Type > | |
Field (const Field< Type > &fld) | |
template<class Type > | |
Field (const UList< Type > &list) | |
template<class Type > | |
Field (Field< Type > &&fld) | |
template<class Type > | |
Field (List< Type > &&list) | |
template<class Type > | |
Field (Field< Type > &fld, bool reuse) | |
template<class Type > | |
Field (const tmp< Field< Type >> &tfld) | |
template<class Type > | |
Field (Istream &is) | |
template<class Type > | |
void | operator= (const UList< Type > &rhs) |
template<class Type > | |
void | operator= (const SubField< Type > &rhs) |
template<class Type > | |
void | operator= (Field< Type > &&rhs) |
template<class Type > | |
void | operator= (List< Type > &&rhs) |
template<class Type > | |
void | operator= (const Type &val) |
template<class Type > | |
void | operator= (const Foam::zero) |
Static Public Member Functions | |
static const Field< Type > & | null () |
static autoPtr< Field< Type > > | New (Istream &is) |
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 |
|
inline |
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 tmp< Field< Type >> & | tmapF, |
const FieldMapper & | map, | ||
const UList< Type > & | defaultValues, | ||
const bool | applyFlip = true |
||
) |
Field | ( | const word & | keyword, |
const dictionary & | dict, | ||
const label | len | ||
) |
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 & | mapWeights | ||
) |
Field | ( | const tmp< Field< Type >> & | tmapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | mapWeights | ||
) |
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | mapper, | ||
const bool | applyFlip | ||
) |
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | mapper, | ||
const Type & | defaultValue, | ||
const bool | applyFlip | ||
) |
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | mapper, | ||
const UList< Type > & | defaultValues, | ||
const bool | applyFlip | ||
) |
Field | ( | const tmp< Field< Type >> & | tmapF, |
const FieldMapper & | mapper, | ||
const bool | applyFlip | ||
) |
Field | ( | const tmp< Field< Type >> & | tmapF, |
const FieldMapper & | mapper, | ||
const Type & | defaultValue, | ||
const bool | applyFlip | ||
) |
Field | ( | const word & | keyword, |
const dictionary & | dict, | ||
const label | len | ||
) |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 24 of file FieldI.H.
Referenced by meshedSurfRef::clear(), meshedSurf::emptySurface::points(), lumpedPointMovement::writeVTP(), and lumpedPointMovement::writeZonesVTP().
|
inline |
Definition at line 239 of file Field.H.
Referenced by Field< Foam::Vector2D >::NewCalculatedType().
void map | ( | const UList< Type > & | mapF, |
const labelUList & | mapAddressing | ||
) |
Definition at line 233 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 |
||
) |
Definition at line 396 of file Field.C.
Referenced by atmTurbulentHeatFluxTemperatureFvPatchScalarField::autoMap(), faePatchField< Type >::autoMap(), fvsPatchField< Type >::autoMap(), faPatchField< Type >::autoMap(), and fvPatchField< Type >::autoMap().
void rmap | ( | const UList< Type > & | mapF, |
const labelUList & | mapAddressing | ||
) |
Definition at line 459 of file Field.C.
Referenced by extendedEdgeMesh::add(), extendedEdgeMesh::flipNormals(), fvMeshAdder::MapDimField(), fvMeshAdder::MapSurfaceField(), fvMeshAdder::MapVolField(), faFieldReconstructor::reconstructFaAreaField(), faFieldReconstructor::reconstructFaEdgeField(), pointFieldReconstructor::reconstructField(), fvFieldReconstructor::reconstructFvSurfaceField(), fvFieldReconstructor::reconstructFvVolumeField(), fvFieldReconstructor::reconstructFvVolumeInternalField(), faePatchField< Type >::rmap(), fvsPatchField< Type >::rmap(), faPatchField< Type >::rmap(), and fvPatchField< 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 | ( | ) |
Definition at line 523 of file Field.C.
Referenced by faMatrix< Type >::H(), and fvMatrix< Type >::H().
Foam::tmp< Foam::Field< typename Foam::Field< Type >::cmptType > > component | ( | const direction | d | ) | const |
Definition at line 532 of file Field.C.
Referenced by Foam::ComplexField(), Bezier::dndbBasedSensitivities(), Bezier::dxdbFace(), setFlow::execute(), forceCoeffs::execute(), propellerInfo::execute(), NURBS3DVolume::findPointsInBox(), Foam::Im(), Foam::ImComplexField(), waveModel::initialiseGeometry(), dynamicOversetFvMesh::normalisation(), particleDistribution::processField(), Foam::Re(), Foam::ReComplexField(), Foam::ReImSum(), faMatrix< Type >::residual(), fvMatrix< Type >::residual(), basicSymmetryFvPatchField< Type >::snGradTransformDiag(), basicSymmetryFaPatchField< Type >::snGradTransformDiag(), partialSlipFvPatchField< Type >::snGradTransformDiag(), fixedNormalSlipFvPatchField< Type >::snGradTransformDiag(), fvMatrix< Type >::solveSegregated(), coordinateScaling< Type >::transform(), objectiveMoment::update_dxdbMultiplier(), waveMakerPointPatchVectorField::updateCoeffs(), jumpCyclicFvPatchField< vector >::updateInterfaceMatrix(), componentDisplacementMotionSolver::updateMesh(), sensitivityBezier::write(), and Foam::writeCellGraph().
Referenced by displacementComponentLaplacianFvMotionSolver::curPoints(), Bezier::dndbBasedSensitivities(), Bezier::dxdbFace(), setFlow::execute(), faMatrix< Type >::flux(), fvMatrix< Type >::flux(), skewCorrectedSnGrad< Type >::fullGradCorrection(), particleDistribution::generateDistribution(), faMatrix< Type >::H(), fvMatrix< Type >::H(), faMatrix< Type >::residual(), fvMatrix< Type >::residual(), and dynamicInkJetFvMesh::update().
void replace | ( | const | direction, |
const cmptType & | |||
) |
VSForm block | ( | const label | start | ) | const |
Definition at line 580 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 |
Definition at line 592 of file Field.C.
Referenced by linearDamper::restrain(), sphericalAngularDamper::restrain(), linearAxialAngularSpring::restrain(), prescribedRotation::restrain(), and filmPyrolysisTemperatureCoupledFvPatchScalarField::updateCoeffs().
Definition at line 601 of file Field.C.
Referenced by codedFixedValueFvPatchField< Type >::redirectPatchField(), codedFixedValuePointPatchField< Type >::redirectPatchField(), oscillatingVelocityPointPatchVectorField::write(), sixDoFRigidBodyDisplacementPointPatchVectorField::write(), and alphatPhaseChangeWallFunctionFvPatchScalarField::write().
SubField<Type> slice | ( | const label | pos, |
label | len = -1 |
||
) |
const SubField<Type> slice | ( | const label | pos, |
label | len = -1 |
||
) | const |
Foam::SubField< Type > slice | ( | const labelRange & | range | ) |
Definition at line 198 of file SubField.H.
const Foam::SubField< Type > slice | ( | const labelRange & | range | ) | const |
Definition at line 206 of file SubField.H.
Referenced by atmBoundaryLayerInletEpsilonFvPatchScalarField::atmBoundaryLayerInletEpsilonFvPatchScalarField(), atmBoundaryLayerInletKFvPatchScalarField::atmBoundaryLayerInletKFvPatchScalarField(), atmBoundaryLayerInletOmegaFvPatchScalarField::atmBoundaryLayerInletOmegaFvPatchScalarField(), atmBoundaryLayerInletVelocityFvPatchVectorField::atmBoundaryLayerInletVelocityFvPatchVectorField(), CompactIOField::CompactIOField(), clampedPlateFaPatchField< Type >::evaluate(), IOField::IOField(), adjointFarFieldPressureFvPatchScalarField::operator*=(), adjointFarFieldPressureFvPatchScalarField::operator+=(), adjointFarFieldPressureFvPatchScalarField::operator-=(), adjointFarFieldPressureFvPatchScalarField::operator/=(), IOField::operator=(), CompactIOField::operator=(), adjointFarFieldPressureFvPatchScalarField::operator=(), oscillatingDisplacementPointPatchVectorField::updateCoeffs(), movingWallVelocityFvPatchVectorField::updateCoeffs(), translatingWallVelocityFvPatchVectorField::updateCoeffs(), SRFWallVelocityFvPatchVectorField::updateCoeffs(), rotatingWallVelocityFvPatchVectorField::updateCoeffs(), and waveMakerPointPatchVectorField::updateCoeffs().
|
inline |
|
inline |
|
inline |
|
inline |
void operator= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | vs | ) |
void operator+= | ( | const Type & | ) |
void operator-= | ( | const Type & | ) |
void operator*= | ( | const scalar & | ) |
void operator/= | ( | const scalar & | ) |
|
inline |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.