Field Class Template ReferenceInheritance diagram for Field:
[legend]Collaboration diagram for Field:
[legend]List of all members.
Detailed Description
template<class Type>
class Foam::Field< Type >
Definition at line 86 of file Field.H.
|
Public Types |
| typedef pTraits< Type >::cmptType | cmptType |
| | Component type.
|
| typedef SubField< Type > | subField |
| | Declare type of subField.
|
Public Member Functions |
| | Field () |
| | Construct null.
|
| | Field (const label) |
| | Construct given size.
|
| | Field (const label, const Type &) |
| | Construct given size and initial value.
|
| | Field (const UList< Type > &) |
| | Construct as copy of a UList<Type>.
|
| | Field (const UList< Type > &mapF, const labelList &mapAddressing) |
| | Construct by 1 to 1 mapping from the given field.
|
| | Field (const tmp< Field< Type > > &tmapF, const labelList &mapAddressing) |
| | Construct by 1 to 1 mapping from the given tmp field.
|
| | 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) |
| | Construct by mapping from the given field.
|
| | Field (const tmp< Field< Type > > &tmapF, const FieldMapper &map) |
| | Construct by mapping from the given tmp field.
|
| | Field (const Field< Type > &) |
| | Construct as copy.
|
| | Field (Field< Type > &, bool reUse) |
| | Construct as copy or re-use as specified.
|
| | Field (const typename Field< Type >::subField &) |
| | Construct as copy of subField.
|
| | Field (Istream &) |
| | Construct from Istream.
|
| | Field (const word &keyword, const dictionary &dict, const label size) |
| | Construct from a dictionary entry.
|
| tmp< Field< Type > > | clone () const |
| | Clone.
|
| void | map (const UList< Type > &mapF, const labelList &mapAddressing) |
| | 1 to 1 map from the given field
|
| void | map (const tmp< Field< Type > > &tmapF, const labelList &mapAddressing) |
| | 1 to 1 map from the given tmp field
|
| 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) |
| | Map from the given field.
|
| void | map (const tmp< Field< Type > > &tmapF, const FieldMapper &map) |
| | Map from the given tmp field.
|
| void | autoMap (const FieldMapper &map) |
| | Map from self.
|
| void | rmap (const UList< Type > &mapF, const labelList &mapAddressing) |
| | 1 to 1 reverse-map from the given field
|
| void | rmap (const tmp< Field< Type > > &tmapF, const labelList &mapAddressing) |
| | 1 to 1 reverse-map from the given tmp field
|
| void | rmap (const UList< Type > &mapF, const labelList &mapAddressing, const scalarList &weights) |
| | Interpolative reverse map from the given field.
|
| void | rmap (const tmp< Field< Type > > &tmapF, const labelList &mapAddressing, const scalarList &weights) |
| | Interpolative reverse map from the given tmp field.
|
| void | negate () |
| | Negate this field.
|
| tmp< Field< cmptType > > | component (const direction) const |
| | Return a component field of the field.
|
| void | replace (const direction, const UList< cmptType > &) |
| | Replace a component field of the field.
|
| void | replace (const direction, const tmp< Field< cmptType > > &) |
| | Replace a component field of the field.
|
| void | replace (const direction, const cmptType &) |
| | Replace a component field of the field.
|
| tmp< Field< Type > > | T () const |
| | Return the field transpose (only defined for second rank tensors).
|
| void | writeEntry (const word &keyword, Ostream &os) const |
| | Write the field as a dictionary entry.
|
| void | operator= (const Field< Type > &) |
| void | operator= (const UList< Type > &) |
| | Assignment from UList operator. Takes linear time.
|
| void | operator= (const SubField< Type > &) |
| void | operator= (const tmp< Field< Type > > &) |
| void | operator= (const Type &) |
| | Assignment of all entries to the given value.
|
| 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 &) |
Static Public Member Functions |
| template<class Type2> |
| static tmp< Field< Type > > | NewCalculatedType (const Field< Type2 > &f) |
| | Return a pointer to a new calculatedFvPatchFieldField created on.
|
| static Field< Type > & | null () |
| | Return a null Field.
|
Static Public Attributes |
| static const char *const | typeName |
Friends |
| Ostream & | operator (Ostream &, const Field< Type > &) |
| Ostream & | operator (Ostream &, const tmp< Field< Type > > &) |
Member Typedef Documentation
Component type.
Reimplemented in DimensionedField, GeometricField, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField< Type >, Foam::surfaceMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< TransferType::dataType, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, PatchField, Foam::GeoMesh< MESH > >, GeometricField< scalar, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Type, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, Foam::fvPatchField< Type >, Foam::volMesh >, and GeometricField< scalar, Foam::fvPatchField< Type >, Foam::volMesh >.
Definition at line 95 of file Field.H.
Declare type of subField.
Definition at line 98 of file Field.H.
Constructor & Destructor Documentation
Construct null.
Used for temporary fields which are initialised after construction
| Field |
( |
const |
label |
) |
[explicit] |
Construct given size.
Used for temporary fields which are initialised after construction
Construct given size and initial value.
Construct by 1 to 1 mapping from the given field.
Construct by 1 to 1 mapping from the given tmp field.
Construct by interpolative mapping from the given field.
Construct by interpolative mapping from the given tmp field.
Construct by mapping from the given field.
Construct by mapping from the given tmp field.
Construct as copy or re-use as specified.
Construct as copy of subField.
Construct from a dictionary entry.
Member Function Documentation
Clone.
Reimplemented from List< Type >.
Reimplemented in DimensionedField, fixedValuePointPatchField, mixedPointPatchField, valuePointPatchField, curve, basicSymmetryFvPatchField, calculatedFvPatchField, coupledFvPatchField, defaultFvPatchField, directionMixedFvPatchField, fixedGradientFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, transformFvPatchField, zeroGradientFvPatchField, cyclicFvPatchField, emptyFvPatchField, processorFvPatchField, symmetryFvPatchField, wedgeFvPatchField, directMappedFixedValueFvPatchField, expDirectionMixedFvPatchField, fixedNormalSlipFvPatchField, freestreamFvPatchField, inletOutletFvPatchField, oscillatingFixedValueFvPatchField, outletInletFvPatchField, partialSlipFvPatchField, slipFvPatchField, timeVaryingMappedFixedValueFvPatchField, timeVaryingUniformFixedValueFvPatchField, turbulentInletFvPatchField, uniformFixedValueFvPatchField, waveTransmissiveFvPatchField, fvPatchField, calculatedFvsPatchField, coupledFvsPatchField, fixedValueFvsPatchField, slicedFvsPatchField, cyclicFvsPatchField, emptyFvsPatchField, processorFvsPatchField, symmetryFvsPatchField, wedgeFvsPatchField, fvsPatchField, cellMotionFvPatchField, angularOscillatingDisplacementPointPatchVectorField, angularOscillatingVelocityPointPatchVectorField, oscillatingDisplacementPointPatchVectorField, oscillatingVelocityPointPatchVectorField, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, fixedValuePointPatchField< Foam::Vectorector< scalar > >, and valuePointPatchField< Foam::Vectorector< scalar > >.
| static tmp<Field<Type> > NewCalculatedType |
( |
const Field< Type2 > & |
f |
) |
[inline, static] |
Return a pointer to a new calculatedFvPatchFieldField created on.
freestore without setting patchField values
Definition at line 198 of file Field.H.
Return a null Field.
Reimplemented from List< Type >.
Reimplemented in DimensionedField, GeometricField, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField< Type >, Foam::surfaceMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< TransferType::dataType, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, PatchField, Foam::GeoMesh< MESH > >, GeometricField< scalar, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Type, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, Foam::fvPatchField< Type >, Foam::volMesh >, and GeometricField< scalar, Foam::fvPatchField< Type >, Foam::volMesh >.
Referenced by globalPointPatch::localPoints(), and globalPointPatch::meshPoints().
Here is the caller graph for this function:
1 to 1 map from the given field
1 to 1 map from the given tmp field
Interpolative map from the given field.
Interpolative map from the given tmp field.
Map from the given field.
Map from the given tmp field.
1 to 1 reverse-map from the given field
1 to 1 reverse-map from the given tmp field
Interpolative reverse map from the given field.
Interpolative reverse map from the given tmp field.
Negate this field.
Reimplemented in GeometricField, GeometricField< Type, Foam::fvsPatchField< Type >, Foam::surfaceMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< TransferType::dataType, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, PatchField, Foam::GeoMesh< MESH > >, GeometricField< scalar, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Type, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, Foam::fvPatchField< Type >, Foam::volMesh >, and GeometricField< scalar, Foam::fvPatchField< Type >, Foam::volMesh >.
Return a component field of the field.
Reimplemented in DimensionedField, GeometricField, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField< Type >, Foam::surfaceMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< TransferType::dataType, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, PatchField, Foam::GeoMesh< MESH > >, GeometricField< scalar, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Type, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< scalar, Foam::fvPatchField< Type >, Foam::volMesh >, and GeometricField.
Replace a component field of the field.
Replace a component field of the field.
| void replace |
( |
const |
direction, |
|
|
const cmptType & |
| |
|
) |
| | |
Replace a component field of the field.
Return the field transpose (only defined for second rank tensors).
Reimplemented in DimensionedField, GeometricField, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< Type, Foam::GeoMesh< MESH > >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Foam::Vectorector< scalar >, Foam::volMesh >, DimensionedField< Type >, DimensionedField< Foam::Vectorector< scalar >, Foam::pointMesh >, DimensionedField< TransferType::dataType, Foam::volMesh >, DimensionedField< Type, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField< Type >, Foam::surfaceMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< TransferType::dataType, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, PatchField, Foam::GeoMesh< MESH > >, GeometricField< scalar, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Type, Foam::pointPatchField< Type >, Foam::pointMesh >, GeometricField< Foam::Vectorector< scalar >, Foam::fvPatchField< Type >, Foam::volMesh >, GeometricField< Type, Foam::fvPatchField< Type >, Foam::volMesh >, and GeometricField< scalar, Foam::fvPatchField< Type >, Foam::volMesh >.
| void writeEntry |
( |
const word & |
keyword, |
|
|
Ostream & |
os | |
|
) |
| | const |
Write the field as a dictionary entry.
Reimplemented from UList< Type >.
| void operator= |
( |
const Type & |
|
) |
|
Assignment of all entries to the given value.
Reimplemented from List< Type >.
Reimplemented in fixedValuePointPatchField, valuePointPatchField, directionMixedFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, expDirectionMixedFvPatchField, fixedNormalSlipFvPatchField, partialSlipFvPatchField, fvPatchField, fixedValueFvsPatchField, slicedFvsPatchField, fvsPatchField, fixedValuePointPatchField< Foam::Vectorector< scalar > >, and valuePointPatchField< Foam::Vectorector< scalar > >.
| void operator= |
( |
const VectorSpace< Form, Cmpt, nCmpt > & |
|
) |
|
| 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 & |
|
) |
|
Reimplemented in directionMixedFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, expDirectionMixedFvPatchField, fixedNormalSlipFvPatchField, partialSlipFvPatchField, fvPatchField, fixedValueFvsPatchField, slicedFvsPatchField, and fvsPatchField.
| void operator-= |
( |
const Type & |
|
) |
|
Reimplemented in directionMixedFvPatchField, fixedValueFvPatchField, mixedFvPatchField, slicedFvPatchField, expDirectionMixedFvPatchField, fixedNormalSlipFvPatchField, partialSlipFvPatchField, fvPatchField, fixedValueFvsPatchField, slicedFvsPatchField, and fvsPatchField.
| void operator *= |
( |
const scalar & |
|
) |
|
| void operator/= |
( |
const scalar & |
|
) |
|
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
Copyright © 2000-2007 OpenCFD Ltd
|