MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
DgSysEqn< nDim, SysEqn > Class Template Reference

Base class for concrete system-of-equations classes (CRTP). More...

#include <dgcartesiansyseqn.h>

Inheritance diagram for DgSysEqn< nDim, SysEqn >:
[legend]

Public Member Functions

MFloat cfl () const
 
MFloat cflScaled (const MInt polyDeg) const
 

Static Public Member Functions

static constexpr MInt noVars ()
 
static constexpr MInt noNodeVars ()
 
static constexpr MBool hasTimeDependentNodeVars ()
 
static const MStringsysEqnName ()
 
static const MStringconsVarNames (MInt i)
 
static const MStringprimVarNames (MInt i)
 
static const MStringnodeVarNames (MInt i)
 

Public Attributes

MInt m_initialCondition
 
MFloat m_initialNumberWaves
 
MInt m_sourceTerm
 
MInt m_riemannSolver
 

Protected Member Functions

 DgSysEqn (MInt solverId)
 

Protected Attributes

const MInt m_solverId
 

Private Member Functions

SysEqn & derived ()
 
const SysEqn & derived () const
 

Private Attributes

MFloat m_cfl
 

Detailed Description

template<MInt nDim, class SysEqn>
class DgSysEqn< nDim, SysEqn >
Author
Michael Schlottke (mic) mic@a.nosp@m.ia.r.nosp@m.wth-a.nosp@m.ache.nosp@m.n.de
Date
2013-08-08
Template Parameters
nDimNumber of spatial dimensions
SysEqnSystem-of-equations class

Definition at line 28 of file dgcartesiansyseqn.h.

Constructor & Destructor Documentation

◆ DgSysEqn()

template<MInt nDim, class SysEqn >
DgSysEqn< nDim, SysEqn >::DgSysEqn ( MInt  solverId)
explicitprotected

Definition at line 82 of file dgcartesiansyseqn.h.

Member Function Documentation

◆ cfl()

template<MInt nDim, class SysEqn >
MFloat DgSysEqn< nDim, SysEqn >::cfl ( ) const
inline

Definition at line 44 of file dgcartesiansyseqn.h.

44{ return m_cfl; }

◆ cflScaled()

template<MInt nDim, class SysEqn >
MFloat DgSysEqn< nDim, SysEqn >::cflScaled ( const MInt  polyDeg) const
inline

Definition at line 46 of file dgcartesiansyseqn.h.

46 {
47 // cf. Cockburn and Shu, Runge-Kutta Discontinuous Galerkin Methods for
48 // Convection-Dominated Problems, J. Sci. Comp. 16(3), 2001.
49 return cfl() / (2.0 * polyDeg + 1.0);
50 }
MFloat cfl() const

◆ consVarNames()

template<MInt nDim, class SysEqn >
static const MString & DgSysEqn< nDim, SysEqn >::consVarNames ( MInt  i)
inlinestatic

Definition at line 41 of file dgcartesiansyseqn.h.

41{ return SysEqn::s_consVarNames[i]; }

◆ derived() [1/2]

template<MInt nDim, class SysEqn >
SysEqn & DgSysEqn< nDim, SysEqn >::derived ( )
inlineprivate

Definition at line 31 of file dgcartesiansyseqn.h.

31{ return static_cast<SysEqn&>(*this); }

◆ derived() [2/2]

template<MInt nDim, class SysEqn >
const SysEqn & DgSysEqn< nDim, SysEqn >::derived ( ) const
inlineprivate

Definition at line 32 of file dgcartesiansyseqn.h.

32{ return static_cast<const SysEqn&>(*this); }

◆ hasTimeDependentNodeVars()

template<MInt nDim, class SysEqn >
static constexpr MBool DgSysEqn< nDim, SysEqn >::hasTimeDependentNodeVars ( )
inlinestaticconstexpr

Definition at line 39 of file dgcartesiansyseqn.h.

39{ return SysEqn::s_hasTimeDependentNodeVars; }

◆ nodeVarNames()

template<MInt nDim, class SysEqn >
static const MString & DgSysEqn< nDim, SysEqn >::nodeVarNames ( MInt  i)
inlinestatic

Definition at line 43 of file dgcartesiansyseqn.h.

43{ return SysEqn::s_nodeVarNames[i]; }

◆ noNodeVars()

template<MInt nDim, class SysEqn >
static constexpr MInt DgSysEqn< nDim, SysEqn >::noNodeVars ( )
inlinestaticconstexpr

Definition at line 38 of file dgcartesiansyseqn.h.

38{ return SysEqn::s_noNodeVars; }

◆ noVars()

template<MInt nDim, class SysEqn >
static constexpr MInt DgSysEqn< nDim, SysEqn >::noVars ( )
inlinestaticconstexpr

Definition at line 37 of file dgcartesiansyseqn.h.

37{ return SysEqn::s_noVariables; }

◆ primVarNames()

template<MInt nDim, class SysEqn >
static const MString & DgSysEqn< nDim, SysEqn >::primVarNames ( MInt  i)
inlinestatic

Definition at line 42 of file dgcartesiansyseqn.h.

42{ return SysEqn::s_primVarNames[i]; }

◆ sysEqnName()

template<MInt nDim, class SysEqn >
static const MString & DgSysEqn< nDim, SysEqn >::sysEqnName ( )
inlinestatic

Definition at line 40 of file dgcartesiansyseqn.h.

40{ return SysEqn::s_sysEqnName; }

Member Data Documentation

◆ m_cfl

template<MInt nDim, class SysEqn >
MFloat DgSysEqn< nDim, SysEqn >::m_cfl
private

Definition at line 33 of file dgcartesiansyseqn.h.

◆ m_initialCondition

template<MInt nDim, class SysEqn >
MInt DgSysEqn< nDim, SysEqn >::m_initialCondition

Definition at line 58 of file dgcartesiansyseqn.h.

◆ m_initialNumberWaves

template<MInt nDim, class SysEqn >
MFloat DgSysEqn< nDim, SysEqn >::m_initialNumberWaves

Definition at line 59 of file dgcartesiansyseqn.h.

◆ m_riemannSolver

template<MInt nDim, class SysEqn >
MInt DgSysEqn< nDim, SysEqn >::m_riemannSolver

Definition at line 61 of file dgcartesiansyseqn.h.

◆ m_solverId

template<MInt nDim, class SysEqn >
const MInt DgSysEqn< nDim, SysEqn >::m_solverId
protected

Definition at line 65 of file dgcartesiansyseqn.h.

◆ m_sourceTerm

template<MInt nDim, class SysEqn >
MInt DgSysEqn< nDim, SysEqn >::m_sourceTerm

Definition at line 60 of file dgcartesiansyseqn.h.


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