UpwindFitData< Polynomial > Class Template Reference

Data for the quadratic fit correction interpolation scheme to be used with upwind biased stencil. More...

Inheritance diagram for UpwindFitData< Polynomial >:
[legend]
Collaboration diagram for UpwindFitData< Polynomial >:
[legend]

Public Member Functions

 TypeName ("UpwindFitData")
 
 UpwindFitData (const fvMesh &mesh, const extendedUpwindCellToFaceStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
 Construct from components. More...
 
virtual ~UpwindFitData ()=default
 Destructor. More...
 
const List< scalarList > & owncoeffs () const
 Return reference to owner fit coefficients. More...
 
const List< scalarList > & neicoeffs () const
 Return reference to neighbour fit coefficients. More...
 
- Public Member Functions inherited from FitData< UpwindFitData< Polynomial >, extendedUpwindCellToFaceStencil, Polynomial >
 FitData (const fvMesh &mesh, const extendedUpwindCellToFaceStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
 Construct from components. More...
 
virtual ~FitData ()=default
 Destructor. More...
 
const extendedUpwindCellToFaceStencilstencil () const
 Return reference to the stencil. More...
 
scalar linearLimitFactor () const
 Factor the fit is allowed to deviate from the base scheme. More...
 
scalar centralWeight () const
 Return weight for central stencil. More...
 
label dim () const
 Dimensionality of the geometry. More...
 
label minSize () const
 Minimum stencil size. More...
 
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. More...
 
virtual void calcFit ()=0
 Calculate the fit for all the faces. More...
 
bool movePoints ()
 Recalculate weights (but not stencil) when the mesh moves. More...
 
- Public Member Functions inherited from MeshObject< Mesh, MeshObjectType, Type >
 MeshObject (const Mesh &mesh)
 Construct on Mesh type. More...
 
virtual ~MeshObject ()=default
 Destructor. More...
 
const Mesh & mesh () const
 
virtual bool writeData (Ostream &os) const
 

Additional Inherited Members

- Static Public Member Functions inherited from MeshObject< Mesh, MeshObjectType, Type >
template<class... Args>
static const Type & New (const Mesh &mesh, Args &&... args)
 Get existing or create a new MeshObject. More...
 
static bool Delete (const Mesh &mesh)
 Static destructor. More...
 
- Protected Member Functions inherited from FitData< UpwindFitData< Polynomial >, extendedUpwindCellToFaceStencil, Polynomial >
void findFaceDirs (vector &idir, vector &jdir, vector &kdir, const label faci)
 Find the normal direction (i) and j and k directions for face faci. More...
 
- Protected Attributes inherited from MeshObject< Mesh, MeshObjectType, Type >
const Mesh & mesh_
 

Detailed Description

template<class Polynomial>
class Foam::UpwindFitData< Polynomial >

Data for the quadratic fit correction interpolation scheme to be used with upwind biased stencil.

- linearCorrection = true : fit calculated for corrected linear scheme

  • linearCorrection = false : fit calculated for corrected upwind scheme
Source files

Definition at line 57 of file UpwindFitData.H.

Constructor & Destructor Documentation

◆ UpwindFitData()

UpwindFitData ( const fvMesh mesh,
const extendedUpwindCellToFaceStencil stencil,
const bool  linearCorrection,
const scalar  linearLimitFactor,
const scalar  centralWeight 
)

Construct from components.

Definition at line 38 of file UpwindFitData.C.

References DebugInfo, DebugInFunction, and Foam::nl.

◆ ~UpwindFitData()

virtual ~UpwindFitData ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "UpwindFitData< Polynomial >"  )

◆ owncoeffs()

const List< scalarList > & owncoeffs ( ) const
inline

Return reference to owner fit coefficients.

Definition at line 109 of file UpwindFitData.H.

Referenced by PureUpwindFitScheme< Type, Polynomial, Stencil >::correction(), and UpwindFitScheme< Type, Polynomial, Stencil >::correction().

Here is the caller graph for this function:

◆ neicoeffs()

const List< scalarList > & neicoeffs ( ) const
inline

Return reference to neighbour fit coefficients.

Definition at line 115 of file UpwindFitData.H.

Referenced by PureUpwindFitScheme< Type, Polynomial, Stencil >::correction(), and UpwindFitScheme< Type, Polynomial, Stencil >::correction().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: