Pre-declare SubField and related 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 | |
Field () | |
Construct null. More... | |
Field (const label) | |
Construct given size. More... | |
Field (const label, const Type &) | |
Construct given size and initial value. More... | |
Field (const UList< Type > &) | |
Construct as copy of a UList<Type> More... | |
Field (const Xfer< List< Type > > &) | |
Construct by transferring the List contents. 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) | |
Construct by mapping from the given tmp field. Supplied uniform. More... | |
Field (const tmp< Field< Type > > &tmapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
Construct by mapping from the given tmp field. Supplied values. More... | |
Field (const Field< Type > &) | |
Construct as copy. More... | |
Field (Field< Type > &, bool reUse) | |
Construct as copy or re-use as specified. More... | |
Field (const Xfer< Field< Type > > &) | |
Construct by transferring the Field contents. More... | |
Field (const tmp< Field< Type > > &) | |
Construct as copy of tmp<Field> More... | |
Field (Istream &) | |
Construct from Istream. More... | |
Field (const word &keyword, const dictionary &, const label size) | |
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. 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... | |
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 > &) |
void | operator= (const UList< Type > &) |
void | operator= (const SubField< Type > &) |
void | operator= (const tmp< Field< Type > > &) |
void | operator= (const Type &) |
template<class Form , class Cmpt , int 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 Field< Type > &rhs) |
template<class Type > | |
void | operator= (const SubField< Type > &rhs) |
template<class Type > | |
void | operator= (const UList< Type > &rhs) |
template<class Type > | |
void | operator= (const tmp< Field > &rhs) |
template<class Type > | |
void | operator= (const Type &t) |
Static Public Member Functions | |
static const Field< Type > & | null () |
Return a null field. More... | |
template<class Type2 > | |
static tmp< Field< Type > > | NewCalculatedType (const Field< Type2 > &f) |
Return a pointer to a new calculatedFvPatchFieldField created on. More... | |
Static Public Attributes | |
static const char *const | typeName |
Friends | |
Ostream & | operator (Ostream &, const Field< Type > &) |
Ostream & | operator (Ostream &, const tmp< Field< Type > > &) |
Field | ( | ) |
|
explicit |
Construct given size.
Used for temporary fields which are initialised after construction
Field | ( | const | label, |
const Type & | |||
) |
Construct given size and initial value.
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 | ||
) |
Construct by interpolative mapping from the given field.
Field | ( | const tmp< Field< Type > > & | tmapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | weights | ||
) |
Construct by interpolative mapping from the given tmp field.
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | map, | ||
const bool | applyFlip = true |
||
) |
Construct by mapping from the given field.
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | map, | ||
const Type & | defaultValue, | ||
const bool | applyFlip = true |
||
) |
Construct by mapping from the given field.
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | map, | ||
const UList< Type > & | defaultValues, | ||
const bool | applyFlip = true |
||
) |
Construct by mapping from the given field.
Field | ( | const tmp< Field< Type > > & | tmapF, |
const FieldMapper & | map, | ||
const bool | applyFlip = true |
||
) |
Construct by mapping from the given tmp field.
Field | ( | const tmp< Field< Type > > & | tmapF, |
const FieldMapper & | map, | ||
const Type & | defaultValue, | ||
const bool | applyFlip = true |
||
) |
Construct by mapping from the given tmp field. Supplied uniform.
value for unmapped items
Field | ( | const tmp< Field< Type > > & | tmapF, |
const FieldMapper & | map, | ||
const UList< Type > & | defaultValues, | ||
const bool | applyFlip = true |
||
) |
Construct by mapping from the given tmp field. Supplied values.
for unmapped items
Field | ( | const word & | keyword, |
const dictionary & | , | ||
const label | size | ||
) |
Construct from a dictionary entry.
|
inlinestatic |
Return a null field.
Definition at line 100 of file Field.H.
Referenced by slicedFvPatchField< Type >::gradientBoundaryCoeffs(), slicedFvPatchField< Type >::gradientInternalCoeffs(), slicedFvPatchField< Type >::patchInternalField(), slicedFvPatchField< Type >::patchNeighbourField(), slicedFvPatchField< Type >::snGrad(), slicedFvPatchField< Type >::valueBoundaryCoeffs(), and slicedFvPatchField< Type >::valueInternalCoeffs().
Foam::tmp< Foam::Field< Type > > clone | ( | ) | const |
void map | ( | const UList< Type > & | mapF, |
const labelUList & | mapAddressing | ||
) |
1 to 1 map from the given field
Definition at line 345 of file Field.C.
Referenced by sampledPatchInternalField::sampleField(), 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 | ||
) |
Interpolative map from the given field.
void map | ( | const tmp< Field< Type > > & | tmapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | weights | ||
) |
Interpolative map from the given tmp field.
void map | ( | const UList< Type > & | mapF, |
const FieldMapper & | map, | ||
const bool | applyFlip = true |
||
) |
Map from the given field.
void map | ( | const tmp< Field< Type > > & | tmapF, |
const FieldMapper & | map, | ||
const bool | applyFlip = true |
||
) |
Map from the given tmp field.
void autoMap | ( | const FieldMapper & | map, |
const bool | applyFlip = true |
||
) |
Map from self.
Definition at line 508 of file Field.C.
Referenced by wallHeatTransferFvPatchScalarField::autoMap(), atmBoundaryLayer::autoMap(), fvPatchField< Type >::autoMap(), MapInternalField< Type, MeshMapper, surfaceMesh >::operator()(), MapInternalField< Type, MeshMapper, volMesh >::operator()(), and MapInternalField< Type, MeshMapper, pointMesh >::operator()().
void rmap | ( | const UList< Type > & | mapF, |
const labelUList & | mapAddressing | ||
) |
1 to 1 reverse-map from the given field
Definition at line 571 of file Field.C.
Referenced by extendedEdgeMesh::add(), extendedEdgeMesh::flipNormals(), fvMeshAdder::MapSurfaceField(), fvMeshAdder::MapVolField(), 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 | ||
) |
Interpolative reverse map from the given field.
void rmap | ( | const tmp< Field< Type > > & | tmapF, |
const labelUList & | mapAddressing, | ||
const UList< scalar > & | weights | ||
) |
Interpolative reverse map from the given tmp field.
void negate | ( | ) |
Negate this field.
Definition at line 635 of file Field.C.
Referenced by fvMatrix< Type >::H().
Foam::tmp< Foam::Field< typename Foam::Field< Type >::cmptType > > component | ( | const direction | d | ) | const |
Return a component field of the field.
Definition at line 644 of file Field.C.
Referenced by Foam::ComplexField(), simpleGeomDecomp::decomposeOneProc(), cylindricalCS::globalToLocal(), Foam::Im(), Foam::ImComplexField(), cylindricalCS::localToGlobal(), main(), faceSource::processSameTypeValues(), Foam::Re(), Foam::ReComplexField(), Foam::ReImSum(), fvMatrix< Type >::residual(), basicSymmetryFvPatchField< Type >::snGradTransformDiag(), fixedNormalSlipFvPatchField< Type >::snGradTransformDiag(), partialSlipFvPatchField< Type >::snGradTransformDiag(), fvMatrix< Type >::solveSegregated(), componentDisplacementMotionSolver::updateMesh(), Foam::writeCellGraph(), and ensightPart::writeField().
Replace a component field of the field.
Referenced by fvMatrix< Type >::flux(), cylindricalCS::globalToLocal(), fvMatrix< Type >::H(), cylindricalCS::localToGlobal(), main(), externalCoupledFunctionObject::readData(), fvMatrix< Type >::residual(), and dynamicInkJetFvMesh::update().
Replace a component field of the field.
void replace | ( | const | direction, |
const cmptType & | |||
) |
Replace a component field of the field.
Foam::tmp< Foam::Field< Type > > T | ( | ) | const |
Return the field transpose (only defined for second rank tensors)
Definition at line 691 of file Field.C.
Referenced by noiseFFT::noiseFFT(), filmPyrolysisTemperatureCoupledFvPatchScalarField::updateCoeffs(), and energyRegionCoupledFvPatchScalarField::updateInterfaceMatrix().
Write the field as a dictionary entry.
Definition at line 700 of file Field.C.
Referenced by codedFixedValueFvPatchField< Type >::redirectPatchField(), codedFixedValuePointPatchField< Type >::redirectPatchField(), wallHeatFluxFvPatchScalarField::write(), alphatPhaseChangeWallFunctionFvPatchScalarField::write(), oscillatingVelocityPointPatchVectorField::write(), sixDoFRigidBodyDisplacementPointPatchVectorField::write(), boundaryRadiationPropertiesFvPatchField::write(), nutkRoughWallFunctionFvPatchScalarField::write(), wallHeatTransferFvPatchScalarField::write(), nutkAtmRoughWallFunctionFvPatchScalarField::write(), turbulentHeatFluxTemperatureFvPatchScalarField::write(), and atmBoundaryLayer::write().
Referenced by atmBoundaryLayerInletEpsilonFvPatchScalarField::atmBoundaryLayerInletEpsilonFvPatchScalarField(), atmBoundaryLayerInletKFvPatchScalarField::atmBoundaryLayerInletKFvPatchScalarField(), atmBoundaryLayerInletVelocityFvPatchVectorField::atmBoundaryLayerInletVelocityFvPatchVectorField(), oscillatingDisplacementPointPatchVectorField::updateCoeffs(), movingWallVelocityFvPatchVectorField::updateCoeffs(), translatingWallVelocityFvPatchVectorField::updateCoeffs(), and rotatingWallVelocityFvPatchVectorField::updateCoeffs().
void operator= | ( | const Type & | ) |
void operator= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | vs | ) |
void operator+= | ( | const Type & | ) |
void operator-= | ( | const Type & | ) |
void operator*= | ( | const scalar & | ) |
void operator/= | ( | const scalar & | ) |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.