Chombo + EB + MF  3.2
Public Member Functions | Static Public Attributes | Protected Attributes | Static Private Attributes | List of all members
ARK4< X, FI, FE, dX > Class Template Reference

#include <ARK4.H>

Public Member Functions

 ARK4 ()
 
void define (const X &a_state, Real a_dt)
 
void advance (Real a_time, X &a_state)
 
void resetDt (Real a_dt)
 
bool isDefined () const
 

Static Public Attributes

static const int s_nStages = 6
 Runge-Kutta coefficients. More...
 
static const Real s_gamma = 0.25
 
static const Real s_aE [s_nStages][s_nStages]
 
static const Real s_aI [s_nStages][s_nStages]
 
static const Real s_b [s_nStages]
 
static const Real s_c [s_nStages] = { 0.0, 0.5, 0.332, 0.62, 0.85, 1.0 }
 

Protected Attributes

bool m_isDefined
 
Real m_dt
 
m_phi [s_nStages]
 
dX m_kE [s_nStages-1]
 
dX m_kI [s_nStages-1]
 
dX m_kEfinal
 
dX m_rhs
 
FI m_fI
 
FE m_fE
 

Static Private Attributes

static ARK4< XConcept, FIConcept, FEConcept, dXConcepttestConcept
 

Constructor & Destructor Documentation

◆ ARK4()

template<class X, class FI, class FE, class dX>
ARK4< X, FI, FE, dX >::ARK4 ( )
inline

References XConcept::define().

Member Function Documentation

◆ define()

template<class X , class FI , class FE , class dX >
void ARK4< X, FI, FE, dX >::define ( const X &  a_state,
Real  a_dt 
)

◆ advance()

template<class X , class FI , class FE , class dX >
void ARK4< X, FI, FE, dX >::advance ( Real  a_time,
X &  a_state 
)

References CH_assert.

◆ resetDt()

template<class X , class FI , class FE , class dX >
void ARK4< X, FI, FE, dX >::resetDt ( Real  a_dt)

References Abs(), and CH_assert.

◆ isDefined()

template<class X, class FI, class FE, class dX>
bool ARK4< X, FI, FE, dX >::isDefined ( ) const
inline

Member Data Documentation

◆ s_nStages

template<class X, class FI, class FE, class dX>
const int ARK4< X, FI, FE, dX >::s_nStages = 6
static

Runge-Kutta coefficients.

◆ s_gamma

template<class X, class FI, class FE, class dX>
const Real ARK4< X, FI, FE, dX >::s_gamma = 0.25
static

◆ s_aE

template<class X, class FI, class FE, class dX>
const Real ARK4< X, FI, FE, dX >::s_aE
static
Initial value:
= {
{0., 0., 0., 0., 0., 0.},
{0.5, 0., 0., 0., 0., 0.},
{0.221776, 0.110224, 0., 0., 0., 0.},
{-0.04884659515311857, -0.17772065232640102, 0.8465672474795197, 0., 0., 0.},
{-0.15541685842491548, -0.3567050098221991, 1.0587258798684427, 0.30339598837867193, 0., 0.},
{ 0.2014243506726763, 0.008742057842904185, 0.15993995707168115, 0.4038290605220775, 0.22606457389066084, 0.}
}

◆ s_aI

template<class X, class FI, class FE, class dX>
const Real ARK4< X, FI, FE, dX >::s_aI
static
Initial value:
= {
{0., 0., 0., 0., 0., 0.},
{0.25, 0.25, 0., 0., 0., 0.},
{0.137776, -0.055776, 0.25, 0., 0., 0.},
{0.14463686602698217, -0.22393190761334475, 0.4492950415863626, 0.25, 0., 0.},
{0.09825878328356477, -0.5915442428196704, 0.8101210538282996, 0.283164405707806, 0.25, 0.},
{0.15791629516167136, 0., 0.18675894052400077, 0.6805652953093346, -0.27524053099500667, 0.25}
}

◆ s_b

template<class X, class FI, class FE, class dX>
const Real ARK4< X, FI, FE, dX >::s_b
static
Initial value:
=
{0.15791629516167136, 0., 0.18675894052400077, 0.6805652953093346, -0.27524053099500667, 0.25}

◆ s_c

template<class X, class FI, class FE, class dX>
const Real ARK4< X, FI, FE, dX >::s_c = { 0.0, 0.5, 0.332, 0.62, 0.85, 1.0 }
static

◆ m_isDefined

template<class X, class FI, class FE, class dX>
bool ARK4< X, FI, FE, dX >::m_isDefined
protected

◆ m_dt

template<class X, class FI, class FE, class dX>
Real ARK4< X, FI, FE, dX >::m_dt
protected

◆ m_phi

template<class X, class FI, class FE, class dX>
X ARK4< X, FI, FE, dX >::m_phi[s_nStages]
protected

◆ m_kE

template<class X, class FI, class FE, class dX>
dX ARK4< X, FI, FE, dX >::m_kE[s_nStages-1]
protected

◆ m_kI

template<class X, class FI, class FE, class dX>
dX ARK4< X, FI, FE, dX >::m_kI[s_nStages-1]
protected

◆ m_kEfinal

template<class X, class FI, class FE, class dX>
dX ARK4< X, FI, FE, dX >::m_kEfinal
protected

◆ m_rhs

template<class X, class FI, class FE, class dX>
dX ARK4< X, FI, FE, dX >::m_rhs
protected

◆ m_fI

template<class X, class FI, class FE, class dX>
FI ARK4< X, FI, FE, dX >::m_fI
protected

◆ m_fE

template<class X, class FI, class FE, class dX>
FE ARK4< X, FI, FE, dX >::m_fE
protected

◆ testConcept

template<class X, class FI, class FE, class dX>
ARK4<XConcept, FIConcept, FEConcept, dXConcept> ARK4< X, FI, FE, dX >::testConcept
staticprivate

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