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

FitData< FitDataType, ExtendedStencil, Polynomial > Class Template Reference

Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determines whether the fit is for a corrected linear scheme (first two coefficients are corrections for owner and neighbour) or a pure upwind scheme (first coefficient is correction for owner ; weight on face taken as 1). More...

Inheritance diagram for FitData< FitDataType, ExtendedStencil, Polynomial >:
Collaboration diagram for FitData< FitDataType, ExtendedStencil, Polynomial >:

List of all members.


Public Member Functions

 FitData (const fvMesh &mesh, const ExtendedStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
 Construct from components.
virtual ~FitData ()
 Destructor.
const ExtendedStencil & stencil () const
 Return reference to the stencil.
bool linearCorrection () const
void calcFit (scalarList &coeffsi, const List< point > &, const scalar wLin, const label faci)
 Calculate the fit for the specified face and set the coefficients.
virtual void calcFit ()=0
 Calculate the fit for all the faces.
bool movePoints ()
 Recalculate weights (but not stencil) when the mesh moves.

Detailed Description

template<class FitDataType, class ExtendedStencil, class Polynomial>
class Foam::FitData< FitDataType, ExtendedStencil, Polynomial >

Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determines whether the fit is for a corrected linear scheme (first two coefficients are corrections for owner and neighbour) or a pure upwind scheme (first coefficient is correction for owner ; weight on face taken as 1).

Source files

Definition at line 50 of file FitData.H.


Constructor & Destructor Documentation

FitData ( const fvMesh &  mesh,
const ExtendedStencil &  stencil,
const bool  linearCorrection,
const scalar  linearLimitFactor,
const scalar  centralWeight 
) [inline]

Construct from components.

Definition at line 27 of file FitData.C.

References Foam::exit(), Foam::FatalError, and FatalErrorIn.

Here is the call graph for this function:

virtual ~FitData (  )  [inline, virtual]

Destructor.

Definition at line 110 of file FitData.H.


Member Function Documentation

const ExtendedStencil& stencil (  )  const [inline]

Return reference to the stencil.

Definition at line 117 of file FitData.H.

bool linearCorrection (  )  const [inline]

Definition at line 122 of file FitData.H.

void calcFit ( scalarList &  coeffsi,
const List< point > &  C,
const scalar  wLin,
const label  faci 
) [inline]

Calculate the fit for the specified face and set the coefficients.

Definition at line 124 of file FitData.C.

virtual void calcFit (  )  [pure virtual]

Calculate the fit for all the faces.

bool movePoints (  )  [inline]

Recalculate weights (but not stencil) when the mesh moves.

Definition at line 312 of file FitData.C.


The documentation for this class was generated from the following files:
  • src/finiteVolume/interpolation/surfaceInterpolation/schemes/FitData/FitData.H
  • src/finiteVolume/interpolation/surfaceInterpolation/schemes/FitData/FitData.C
Copyright © 2000-2009 OpenCFD Ltd