OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

GeometricField< Type, PatchField, GeoMesh > Class Template Reference

Generic GeometricField class. More...

Inheritance diagram for GeometricField< Type, PatchField, GeoMesh >:
Collaboration diagram for GeometricField< Type, PatchField, GeoMesh >:

List of all members.


Classes

class  GeometricBoundaryField

Public Types

typedef GeoMesh::Mesh Mesh
typedef GeoMesh::BoundaryMesh BoundaryMesh
typedef DimensionedField< Type,
GeoMesh > 
DimensionedInternalField
typedef Field< Type > InternalField
typedef PatchField< Type > PatchFieldType
typedef Field< Type >::cmptType cmptType
 Component type.

Public Member Functions

 TypeName ("GeometricField")
 Runtime type information.
 GeometricField (const IOobject &, const Mesh &, const dimensionSet &, const word &patchFieldType=PatchField< Type >::calculatedType())
 Constructor given IOobject, mesh, dimensions and patch type.
 GeometricField (const IOobject &, const Mesh &, const dimensionSet &, const wordList &patchFieldTypes)
 Constructor given IOobject, mesh, dimensions and patch types.
 GeometricField (const IOobject &, const Mesh &, const dimensioned< Type > &, const word &patchFieldType=PatchField< Type >::calculatedType())
 Constructor given IOobject, mesh, dimensioned<Type> and patch type.
 GeometricField (const IOobject &, const Mesh &, const dimensioned< Type > &, const wordList &patchFieldTypes)
 Constructor given IOobject, mesh, dimensioned<Type> and patch types.
 GeometricField (const IOobject &, const Mesh &, const dimensionSet &, const Field< Type > &, const PtrList< PatchField< Type > > &)
 Constructor from components.
 GeometricField (const IOobject &, const Mesh &)
 Construct and read given IOobject.
 GeometricField (const IOobject &, const Mesh &, Istream &)
 Construct and read from given stream.
 GeometricField (const GeometricField< Type, PatchField, GeoMesh > &)
 Construct as copy.
 GeometricField (const IOobject &, const GeometricField< Type, PatchField, GeoMesh > &)
 Construct as copy of tmp<GeometricField> deleting argument.
 GeometricField (const word &newName, const GeometricField< Type, PatchField, GeoMesh > &)
 Construct as copy resetting name.
 GeometricField (const IOobject &, const GeometricField< Type, PatchField, GeoMesh > &, const word &patchFieldType)
 Construct as copy resetting name.
 GeometricField (const IOobject &, const GeometricField< Type, PatchField, GeoMesh > &, const wordList &patchFieldTypes)
 Construct as copy resetting IO parameters and boundary types.
virtual ~GeometricField ()
DimensionedInternalField & dimensionedInternalField ()
 Return dimensioned internal field.
const DimensionedInternalField & dimensionedInternalField () const
 Return dimensioned internal field.
InternalField & internalField ()
 Return internal field.
const InternalField & internalField () const
 Return internal field.
GeometricBoundaryField & boundaryField ()
 Return reference to GeometricBoundaryField.
const GeometricBoundaryField & boundaryField () const
 Return reference to GeometricBoundaryField for const field.
label timeIndex () const
 Return the time index of the field.
label & timeIndex ()
 Return the time index of the field.
void storeOldTimes () const
 Store the old-time fields.
void storeOldTime () const
 Store the old-time field.
label nOldTimes () const
 Return the number of old time fields stored.
const GeometricField< Type,
PatchField, GeoMesh > & 
oldTime () const
 Return old time field.
GeometricField< Type,
PatchField, GeoMesh > & 
oldTime ()
 Return non-const old time field.
void storePrevIter () const
 Store the field as the previous iteration value.
const GeometricField< Type,
PatchField, GeoMesh > & 
prevIter () const
 Return previous iteration field.
void correctBoundaryConditions ()
 Correct boundary field.
bool needReference () const
 Does the field need a reference level for solution.
tmp< GeometricField< cmptType,
PatchField, GeoMesh > > 
component (const direction) const
 Return a component of the field.
bool writeData (Ostream &) const
 WriteData member function required by regIOobject.
tmp< GeometricField< Type,
PatchField, GeoMesh > > 
T () const
 Return transpose (only if it is a tensor field).
void relax (const scalar alpha)
 Relax field (for steady-state solution).
void relax ()
 Relax field (for steady-state solution).
void negate ()
 Negate this field.
void replace (const direction, const GeometricField< cmptType, PatchField, GeoMesh > &)
void replace (const direction, const dimensioned< cmptType > &)
void max (const dimensioned< Type > &)
void min (const dimensioned< Type > &)
void max (const GeometricField< Type, PatchField, GeoMesh > &, const dimensioned< Type > &)
void min (const GeometricField< Type, PatchField, GeoMesh > &, const dimensioned< Type > &)
void scale (const GeometricField< Type, PatchField, GeoMesh > &, const GeometricField< Type, PatchField, GeoMesh > &)
void scale (const GeometricField< Type, PatchField, GeoMesh > &, const dimensioned< Type > &)
void operator= (const GeometricField< Type, PatchField, GeoMesh > &)
void operator= (const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void operator= (const dimensioned< Type > &)
void operator== (const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void operator== (const dimensioned< Type > &)
void operator+= (const GeometricField< Type, PatchField, GeoMesh > &)
void operator+= (const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void operator-= (const GeometricField< Type, PatchField, GeoMesh > &)
void operator-= (const tmp< GeometricField< Type, PatchField, GeoMesh > > &)
void operator*= (const GeometricField< scalar, PatchField, GeoMesh > &)
void operator*= (const tmp< GeometricField< scalar, PatchField, GeoMesh > > &)
void operator/= (const GeometricField< scalar, PatchField, GeoMesh > &)
void operator/= (const tmp< GeometricField< scalar, PatchField, GeoMesh > > &)
void operator+= (const dimensioned< Type > &)
void operator-= (const dimensioned< Type > &)
void operator*= (const dimensioned< scalar > &)
void operator/= (const dimensioned< scalar > &)
template<>
tmp< GeometricField< scalar,
fvPatchField, volMesh > > 
component (const direction) const
 Return a component field of the field.
template<>
void replace (const direction, const GeometricField< scalar, fvPatchField, volMesh > &gsf)
template<>
tmp< GeometricField< scalar,
fvPatchField, volMesh > > 
component (const direction) const
 Return a component field of the field.
template<>
void replace (const direction, const GeometricField< scalar, fvPatchField, volMesh > &sf)

Static Public Member Functions

static const GeometricField
< Type, PatchField, GeoMesh > & 
null ()
 Return a null geometric field.

Friends

Ostream & operator (Ostream &, const GeometricField< Type, PatchField, GeoMesh > &)
Ostream & operator (Ostream &, const tmp< GeometricField< Type, PatchField, GeoMesh > > &)

Detailed Description

template<class Type, template< class > class PatchField, class GeoMesh>
class Foam::GeometricField< Type, PatchField, GeoMesh >

Generic GeometricField class.

Source files

Definition at line 75 of file GeometricField.H.


Member Typedef Documentation

Definition at line 96 of file GeometricField.H.

typedef PatchField<Type> PatchFieldType

Definition at line 97 of file GeometricField.H.

Component type.

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 265 of file GeometricField.H.


Constructor & Destructor Documentation

GeometricField ( const IOobject &  io,
const Mesh &  mesh,
const dimensionSet &  ds,
const word &  patchFieldType = PatchField<Type>::calculatedType() 
) [inline]

Constructor given IOobject, mesh, dimensions and patch type.

This allocates storage for the field but not values. Used only within this class to create TEMPORARY variables

Definition at line 179 of file GeometricField.C.

References Foam::endl(), Foam::Info, and IOobject::info().

Here is the call graph for this function:

GeometricField ( const IOobject &  io,
const Mesh &  mesh,
const dimensionSet &  ds,
const wordList &  patchFieldTypes 
) [inline]

Constructor given IOobject, mesh, dimensions and patch types.

This allocates storage for the field but not values. Used only within this class to create TEMPORARY variables

Definition at line 209 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const Mesh &  mesh,
const dimensioned< Type > &  dt,
const word &  patchFieldType = PatchField<Type>::calculatedType() 
) [inline]

Constructor given IOobject, mesh, dimensioned<Type> and patch type.

Definition at line 236 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const Mesh &  mesh,
const dimensioned< Type > &  dt,
const wordList &  patchFieldTypes 
) [inline]

Constructor given IOobject, mesh, dimensioned<Type> and patch types.

Definition at line 265 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const Mesh &  mesh,
const dimensionSet &  ds,
const Field< Type > &  iField,
const PtrList< PatchField< Type > > &  ptfl 
) [inline]

Constructor from components.

Definition at line 294 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const Mesh &  mesh 
) [inline]

Construct and read given IOobject.

Definition at line 321 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const Mesh &  mesh,
Istream &  is 
) [inline]

Construct and read from given stream.

Definition at line 361 of file GeometricField.C.

GeometricField ( const GeometricField< Type, PatchField, GeoMesh > &  gf  )  [inline]

Construct as copy.

Definition at line 401 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const GeometricField< Type, PatchField, GeoMesh > &  gf 
) [inline]

Construct as copy of tmp<GeometricField> deleting argument.

Construct as copy resetting IO parameters

Definition at line 464 of file GeometricField.C.

GeometricField ( const word &  newName,
const GeometricField< Type, PatchField, GeoMesh > &  gf 
) [inline]

Construct as copy resetting name.

Definition at line 496 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const GeometricField< Type, PatchField, GeoMesh > &  gf,
const word &  patchFieldType 
) [inline]

Construct as copy resetting name.

Construct as copy resetting IO parameters and patch type

Definition at line 559 of file GeometricField.C.

GeometricField ( const IOobject &  io,
const GeometricField< Type, PatchField, GeoMesh > &  gf,
const wordList &  patchFieldTypes 
) [inline]

Construct as copy resetting IO parameters and boundary types.

Definition at line 594 of file GeometricField.C.

~GeometricField (  )  [inline, virtual]

Definition at line 629 of file GeometricField.C.


Member Function Documentation

TypeName ( "GeometricField< Type, PatchField, GeoMesh >"   ) 

Runtime type information.

const Foam::GeometricField< Type, PatchField, GeoMesh > & null (  )  [inline, static]

Return a null geometric field.

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 22 of file GeometricFieldI.H.

Foam::GeometricField< Type, PatchField, GeoMesh >::DimensionedInternalField & dimensionedInternalField (  )  [inline]

Return dimensioned internal field.

Definition at line 641 of file GeometricField.C.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

const Foam::GeometricField< Type, PatchField, GeoMesh >::DimensionedInternalField & dimensionedInternalField (  )  const [inline]

Return dimensioned internal field.

Definition at line 33 of file GeometricFieldI.H.

const Foam::GeometricField< Type, PatchField, GeoMesh >::InternalField & internalField (  )  const [inline]

Return internal field.

Definition at line 43 of file GeometricFieldI.H.

Foam::GeometricField< Type, PatchField, GeoMesh >::GeometricBoundaryField & boundaryField (  )  [inline]

Return reference to GeometricBoundaryField.

Definition at line 664 of file GeometricField.C.

Referenced by Foam::fvc::average(), nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcNut(), mutSpalartAllmarasWallFunctionFvPatchScalarField::calcUTau(), mutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcYPlus(), mutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField::calcYPlus(), homogeneousMixture< ThermoType >::cellReactants(), extendedFaceToCellStencil::collectData(), extendedCellToFaceStencil::collectData(), outletStabilised< Type >::correction(), linearUpwind< Type >::correction(), Foam::resError::div(), EulerD2dt2Scheme< Type >::fvcD2dt2(), hhuMixtureThermo< MixtureType >::hhuMixtureThermo(), hhuCombustionThermo::huBoundaryTypes(), fvMeshSubset::interpolate(), pointPatchInterpolation::interpolate(), localMin< Type >::interpolate(), surfaceInterpolationScheme< Type >::interpolate(), localMax< Type >::interpolate(), PhiScheme< Type, PhiLimiter >::limiter(), LimitedScheme< Type, Limiter, LimitFunc >::limiter(), Foam::mag(), Foam::magSqr(), Foam::fv::makeFvGradScheme(), Foam::MapGeometricFields(), GeometricField< Type, PatchField, GeoMesh >::max(), GeometricField< Type, PatchField, GeoMesh >::min(), GeometricField< Type, PatchField, GeoMesh >::negate(), Foam::operator<<(), hPsiMixtureThermo< MixtureType >::read(), hRhoMixtureThermo< MixtureType >::read(), GeometricField< Type, PatchField, GeoMesh >::replace(), Foam::stabilise(), Foam::fvc::surfaceIntegrate(), Foam::T(), Foam::transform(), extendedUpwindCellToFaceStencil::weightedSum(), outletStabilised< Type >::weights(), ensightParts::writeField(), and Foam::writePatchGraph().

Here is the caller graph for this function:

const Foam::GeometricField< Type, PatchField, GeoMesh >::GeometricBoundaryField & boundaryField (  )  const [inline]

Return reference to GeometricBoundaryField for const field.

Definition at line 52 of file GeometricFieldI.H.

Foam::label timeIndex (  )  const [inline]

Return the time index of the field.

Definition at line 60 of file GeometricFieldI.H.

Foam::label & timeIndex (  )  [inline]

Return the time index of the field.

Definition at line 68 of file GeometricFieldI.H.

void storeOldTimes (  )  const [inline]

Store the old-time fields.

Definition at line 674 of file GeometricField.C.

References regIOobject::setUpToDate().

Referenced by Foam::MapGeometricFields(), and GeometricField< Type, PatchField, GeoMesh >::needReference().

Here is the call graph for this function:

Here is the caller graph for this function:

void storeOldTime (  )  const [inline]

Store the old-time field.

Definition at line 695 of file GeometricField.C.

Foam::label nOldTimes (  )  const [inline]

Return the number of old time fields stored.

Definition at line 719 of file GeometricField.C.

References IOobject::writeOpt().

Here is the call graph for this function:

const Foam::GeometricField< Type, PatchField, GeoMesh > & oldTime (  )  const [inline]

Return old time field.

Definition at line 734 of file GeometricField.C.

Referenced by Foam::MULES::explicitSolve(), and EulerD2dt2Scheme< Type >::fvcD2dt2().

Here is the caller graph for this function:

Foam::GeometricField< Type, PatchField, GeoMesh > & oldTime (  )  [inline]

Return non-const old time field.

(Not a good idea but it is used for sub-cycling)

Definition at line 760 of file GeometricField.C.

void storePrevIter (  )  const [inline]

Store the field as the previous iteration value.

Definition at line 771 of file GeometricField.C.

const Foam::GeometricField< Type, PatchField, GeoMesh > & prevIter (  )  const [inline]

Return previous iteration field.

Definition at line 797 of file GeometricField.C.

Referenced by GeometricField< Type, PatchField, GeoMesh >::relax().

Here is the caller graph for this function:

bool needReference (  )  const [inline]

Does the field need a reference level for solution.

Definition at line 827 of file GeometricField.C.

References GeometricBoundaryField::evaluate(), regIOobject::setUpToDate(), and GeometricField< Type, PatchField, GeoMesh >::storeOldTimes().

Referenced by fvMatrix< Type >::setComponentReference(), and Foam::setRefCell().

Here is the call graph for this function:

Here is the caller graph for this function:

tmp<GeometricField<cmptType, PatchField, GeoMesh> > component ( const   direction  )  const

Return a component of the field.

Reimplemented from DimensionedField< Type, GeoMesh >.

Referenced by Foam::fvc::magSqrGradGrad().

Here is the caller graph for this function:

bool writeData ( Ostream &  os  )  const [inline, virtual]

WriteData member function required by regIOobject.

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 876 of file GeometricField.C.

References GeometricField< Type, PatchField, GeoMesh >::relax().

Here is the call graph for this function:

Foam::tmp< Foam::GeometricField< Type, PatchField, GeoMesh > > T (  )  const [inline]

Return transpose (only if it is a tensor field).

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 887 of file GeometricField.C.

void relax ( const scalar  alpha  )  [inline]

Relax field (for steady-state solution).

alpha = 1 : no relaxation alpha < 1 : relaxation alpha = 0 : do nothing

Definition at line 850 of file GeometricField.C.

void relax (  )  [inline]

Relax field (for steady-state solution).

alpha is read from controlDict

Definition at line 857 of file GeometricField.C.

References GeometricField< Type, PatchField, GeoMesh >::operator==(), and GeometricField< Type, PatchField, GeoMesh >::prevIter().

Referenced by GeometricField< Type, PatchField, GeoMesh >::writeData().

Here is the call graph for this function:

Here is the caller graph for this function:

void negate (  )  [inline]

Negate this field.

Reimplemented from Field< Type >.

Definition at line 1000 of file GeometricField.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::internalField(), GeometricField< Type, PatchField, GeoMesh >::min(), and dimensioned< Type >::value().

Referenced by fvMatrix< Type >::operator+=().

Here is the call graph for this function:

Here is the caller graph for this function:

void replace ( const   direction,
const GeometricField< cmptType, PatchField, GeoMesh > &   
)

void replace ( const direction  d,
const dimensioned< cmptType > &  ds 
) [inline]

void max ( const dimensioned< Type > &  dt  )  [inline]

void min ( const dimensioned< Type > &  dt  )  [inline]

void max ( const GeometricField< Type, PatchField, GeoMesh > &  ,
const dimensioned< Type > &   
)

void min ( const GeometricField< Type, PatchField, GeoMesh > &  ,
const dimensioned< Type > &   
)

void scale ( const GeometricField< Type, PatchField, GeoMesh > &  ,
const GeometricField< Type, PatchField, GeoMesh > &   
)

void scale ( const GeometricField< Type, PatchField, GeoMesh > &  ,
const dimensioned< Type > &   
)

void operator= ( const GeometricField< Type, PatchField, GeoMesh > &  gf  )  [inline]

Definition at line 1011 of file GeometricField.C.

Referenced by GeometricBoundaryField::operator=().

Here is the caller graph for this function:

void operator= ( const tmp< GeometricField< Type, PatchField, GeoMesh > > &  tgf  )  [inline]

Definition at line 1036 of file GeometricField.C.

void operator= ( const dimensioned< Type > &  dt  )  [inline]

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 1072 of file GeometricField.C.

void operator== ( const tmp< GeometricField< Type, PatchField, GeoMesh > > &  tgf  )  [inline]

Definition at line 1083 of file GeometricField.C.

References boundaryField(), and dimensioned< Type >::value().

Referenced by GeometricField< Type, PatchField, GeoMesh >::relax().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator== ( const dimensioned< Type > &  dt  )  [inline]

Definition at line 1102 of file GeometricField.C.

void operator+= ( const GeometricField< Type, PatchField, GeoMesh > &  gf  )  [inline]

Definition at line 1145 of file GeometricField.C.

void operator+= ( const tmp< GeometricField< Type, PatchField, GeoMesh > > &  tgf  )  [inline]

Definition at line 1145 of file GeometricField.C.

void operator-= ( const GeometricField< Type, PatchField, GeoMesh > &  gf  )  [inline]

Definition at line 1146 of file GeometricField.C.

void operator-= ( const tmp< GeometricField< Type, PatchField, GeoMesh > > &  tgf  )  [inline]

Definition at line 1146 of file GeometricField.C.

void operator*= ( const GeometricField< scalar, PatchField, GeoMesh > &  gf  )  [inline]

Definition at line 1147 of file GeometricField.C.

void operator*= ( const tmp< GeometricField< scalar, PatchField, GeoMesh > > &  tgf  )  [inline]

Definition at line 1147 of file GeometricField.C.

void operator/= ( const GeometricField< scalar, PatchField, GeoMesh > &  gf  )  [inline]

Definition at line 1148 of file GeometricField.C.

void operator/= ( const tmp< GeometricField< scalar, PatchField, GeoMesh > > &  tgf  )  [inline]

Definition at line 1148 of file GeometricField.C.

void operator+= ( const dimensioned< Type > &  dt  )  [inline]

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 1145 of file GeometricField.C.

void operator-= ( const dimensioned< Type > &  dt  )  [inline]

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 1146 of file GeometricField.C.

void operator*= ( const dimensioned< scalar > &  dt  )  [inline]

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 1147 of file GeometricField.C.

void operator/= ( const dimensioned< scalar > &  dt  )  [inline]

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 1148 of file GeometricField.C.

tmp< GeometricField< scalar, fvPatchField, volMesh > > component ( const   direction  )  const [inline]

Return a component field of the field.

Reimplemented from DimensionedField< Type, GeoMesh >.

Definition at line 42 of file volFields.C.

void replace ( const   direction,
const GeometricField< scalar, fvPatchField, volMesh > &  gsf 
) [inline]

Definition at line 51 of file volFields.C.

tmp< GeometricField< scalar, fvPatchField, volMesh > > component ( const   direction  )  const [inline]

Return a component field of the field.

Reimplemented from DimensionedField< Type, GeoMesh >.

void replace ( const   direction,
const GeometricField< scalar, fvPatchField, volMesh > &  sf 
) [inline]


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const GeometricField< Type, PatchField, GeoMesh > &   
) [friend]

Ostream& operator ( Ostream &  ,
const tmp< GeometricField< Type, PatchField, GeoMesh > > &   
) [friend]


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