OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

Field Class Template Reference

Inheritance diagram for Field:

Inheritance graph
[legend]
Collaboration diagram for Field:

Collaboration graph
[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

Declare type of subField.

Definition at line 98 of file Field.H.


Constructor & Destructor Documentation

Field (  ) 

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

Field ( const   label,
const Type &   
)

Construct given size and initial value.

Field ( const UList< Type > &   )  [explicit]

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< Type > &   ) 

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.


Member Function Documentation

tmp<Field<Type> > clone (  )  const

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.

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 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.

void writeEntry ( const word &  keyword,
Ostream &  os 
) const

Write the field as a dictionary entry.

Reimplemented from UList< Type >.

void operator= ( const UList< Type > &   ) 

void operator= ( const SubField< Type > &   ) 

void operator= ( const tmp< Field< Type > > &   ) 

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 scalar &   ) 

void operator/= ( const scalar &   ) 


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const Field< Type > &   
) [friend]

Ostream& operator ( Ostream &  ,
const tmp< Field< Type > > &   
) [friend]


Member Data Documentation

const char* const typeName [static]

Definition at line 103 of file Field.H.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd