FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <finiteVolume/FitData.H>


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 55 of file FitData.H.

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.

Constructor & Destructor Documentation

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

Construct from components.

Definition at line 35 of file FitData.C.

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

virtual ~FitData (  ) [inline, virtual]

Destructor.

Definition at line 113 of file FitData.H.


Member Function Documentation

const ExtendedStencil& stencil (  ) const [inline]

Return reference to the stencil.

Definition at line 120 of file FitData.H.

bool linearCorrection (  ) const [inline]

Definition at line 125 of file FitData.H.

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

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

Definition at line 132 of file FitData.C.

References cmptMag(), cmptMax(), d, Foam::endl(), primitiveMesh::faceCentres(), Foam::mag(), mesh, Foam::nl, p, List< T >::setSize(), List< T >::size(), SVD::VSinvUt(), WarningIn, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

virtual void calcFit (  ) [pure virtual]

Calculate the fit for all the faces.

bool movePoints (  )

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

Definition at line 320 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