Documentation 6b54b78464
Loading...
Searching...
No Matches
CCenteredBase< Derived, Base > Class Template Reference

Base class for Centered schemes, derived classes implement the dissipation term in a const "finalizeFlux" method. More...

#include <centered.hpp>

Inheritance diagram for CCenteredBase< Derived, Base >:
[legend]

Public Member Functions

void ComputeFlux (const Int iEdge, const CConfig &config, const CGeometry &geometry, const CVariable &solution_, const UpdateType updateType, const Double updateMask, CSysVector< su2double > &vector, SparseMatrixType &matrix, su2activevector *edgeMassFluxes) const final
 Implementation of the base centered flux.
 

Protected Member Functions

template<class... Ts>
 CCenteredBase (const CConfig &config, Ts &... args)
 Constructor, store some constants and forward args to base.
 

Static Protected Member Functions

template<class T , size_t N>
static Double numNeighbor (const simd::Array< T, N > &idx, const CGeometry &geometry)
 Special treatment needed to fetch integer data.
 
static Double numNeighbor (unsigned long idx, const CGeometry &geometry)
 

Protected Attributes

const su2double gamma
 
const su2double fixFactor
 
const bool dynamicGrid
 
const su2double stretchParam = 0.3
 

Static Protected Attributes

static constexpr size_t nVar = CCompressibleConservatives<nDim>::nVar
 
static constexpr size_t nPrimVar = Max(Base::nPrimVar, nDim+5)
 

Detailed Description

template<class Derived, class Base>
class CCenteredBase< Derived, Base >

Base class for Centered schemes, derived classes implement the dissipation term in a const "finalizeFlux" method.

Note
See CRoeBase for the role of Base.

Constructor & Destructor Documentation

◆ CCenteredBase()

template<class Derived , class Base >
template<class... Ts>
CCenteredBase< Derived, Base >::CCenteredBase ( const CConfig &  config,
Ts &...  args 
)
inlineprotected

Constructor, store some constants and forward args to base.

Member Function Documentation

◆ ComputeFlux()

template<class Derived , class Base >
void CCenteredBase< Derived, Base >::ComputeFlux ( const Int  iEdge,
const CConfig &  config,
const CGeometry &  geometry,
const CVariable &  solution_,
const UpdateType  updateType,
const Double  updateMask,
CSysVector< su2double > &  vector,
SparseMatrixType &  matrix,
su2activevector *  edgeMassFluxes 
) const
inlinefinal

Implementation of the base centered flux.

◆ numNeighbor() [1/2]

template<class Derived , class Base >
template<class T , size_t N>
static Double CCenteredBase< Derived, Base >::numNeighbor ( const simd::Array< T, N > &  idx,
const CGeometry &  geometry 
)
inlinestaticprotected

Special treatment needed to fetch integer data.

◆ numNeighbor() [2/2]

template<class Derived , class Base >
static Double CCenteredBase< Derived, Base >::numNeighbor ( unsigned long  idx,
const CGeometry &  geometry 
)
inlinestaticprotected

Member Data Documentation

◆ dynamicGrid

template<class Derived , class Base >
const bool CCenteredBase< Derived, Base >::dynamicGrid
protected

◆ fixFactor

template<class Derived , class Base >
const su2double CCenteredBase< Derived, Base >::fixFactor
protected

◆ gamma

template<class Derived , class Base >
const su2double CCenteredBase< Derived, Base >::gamma
protected

◆ nPrimVar

template<class Derived , class Base >
constexpr size_t CCenteredBase< Derived, Base >::nPrimVar = Max(Base::nPrimVar, nDim+5)
staticconstexprprotected

◆ nVar

template<class Derived , class Base >
constexpr size_t CCenteredBase< Derived, Base >::nVar = CCompressibleConservatives<nDim>::nVar
staticconstexprprotected

◆ stretchParam

template<class Derived , class Base >
const su2double CCenteredBase< Derived, Base >::stretchParam = 0.3
protected

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