#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. | |
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 |
X | 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, dXConcept > | testConcept |
void ARK4< X, FI, FE, dX >::define | ( | const X & | a_state, | |
Real | a_dt | |||
) | [inline] |
References ARK4< X, FI, FE, dX >::m_dt, ARK4< X, FI, FE, dX >::m_fE, ARK4< X, FI, FE, dX >::m_fI, ARK4< X, FI, FE, dX >::m_isDefined, ARK4< X, FI, FE, dX >::m_kE, ARK4< X, FI, FE, dX >::m_kEfinal, ARK4< X, FI, FE, dX >::m_kI, ARK4< X, FI, FE, dX >::m_phi, ARK4< X, FI, FE, dX >::m_rhs, ARK4< X, FI, FE, dX >::s_gamma, and ARK4< X, FI, FE, dX >::s_nStages.
void ARK4< X, FI, FE, dX >::advance | ( | Real | a_time, | |
X & | a_state | |||
) | [inline] |
References CH_assert, ARK4< X, FI, FE, dX >::isDefined(), ARK4< X, FI, FE, dX >::m_dt, ARK4< X, FI, FE, dX >::m_fE, ARK4< X, FI, FE, dX >::m_fI, ARK4< X, FI, FE, dX >::m_kE, ARK4< X, FI, FE, dX >::m_kEfinal, ARK4< X, FI, FE, dX >::m_kI, ARK4< X, FI, FE, dX >::m_phi, ARK4< X, FI, FE, dX >::m_rhs, ARK4< X, FI, FE, dX >::s_aE, ARK4< X, FI, FE, dX >::s_aI, ARK4< X, FI, FE, dX >::s_b, ARK4< X, FI, FE, dX >::s_c, and ARK4< X, FI, FE, dX >::s_nStages.
bool ARK4< X, FI, FE, dX >::isDefined | ( | ) | const [inline] |
References ARK4< X, FI, FE, dX >::m_isDefined.
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::resetDt().
const int ARK4< X, FI, FE, dX >::s_nStages = 6 [static] |
Runge-Kutta coefficients.
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::define().
const Real ARK4< X, FI, FE, dX >::s_gamma = 0.25 [inline, static] |
Referenced by ARK4< X, FI, FE, dX >::define().
const Real ARK4< X, FI, FE, dX >::s_aE [inline, 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.} }
Referenced by ARK4< X, FI, FE, dX >::advance().
const Real ARK4< X, FI, FE, dX >::s_aI [inline, 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} }
Referenced by ARK4< X, FI, FE, dX >::advance().
const Real ARK4< X, FI, FE, dX >::s_b [inline, static] |
Initial value:
{0.15791629516167136, 0., 0.18675894052400077, 0.6805652953093346, -0.27524053099500667, 0.25}
Referenced by ARK4< X, FI, FE, dX >::advance().
const Real ARK4< X, FI, FE, dX >::s_c = { 0.0, 0.5, 0.332, 0.62, 0.85, 1.0 } [inline, static] |
Referenced by ARK4< X, FI, FE, dX >::advance().
bool ARK4< X, FI, FE, dX >::m_isDefined [protected] |
Referenced by ARK4< X, FI, FE, dX >::define(), and ARK4< X, FI, FE, dX >::isDefined().
X ARK4< X, FI, FE, dX >::m_phi[s_nStages] [protected] |
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::define().
dX ARK4< X, FI, FE, dX >::m_kE[s_nStages-1] [protected] |
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::define().
dX ARK4< X, FI, FE, dX >::m_kI[s_nStages-1] [protected] |
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::define().
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::define().
Referenced by ARK4< X, FI, FE, dX >::advance(), and ARK4< X, FI, FE, dX >::define().
ARK4<XConcept, FIConcept, FEConcept, dXConcept> ARK4< X, FI, FE, dX >::testConcept [static, private] |