Template Numerical Library version\ main:9e7b0f4
Loading...
Searching...
No Matches
TNL::Solvers::ODE::Methods::Heun2< Value > Struct Template Reference

Second order Heun's method and Heun-Euler method with adaptive time step. More...

#include <TNL/Solvers/ODE/Methods/Heun2.h>

Collaboration diagram for TNL::Solvers::ODE::Methods::Heun2< Value >:

Public Types

using ValueType = Value

Static Public Member Functions

static constexpr ValueType getCoefficient (const std::size_t stage, const std::size_t i)
static constexpr ValueType getErrorCoefficient (std::size_t i)
static constexpr std::size_t getStages ()
static constexpr ValueType getTimeCoefficient (std::size_t i)
static constexpr ValueType getUpdateCoefficient (std::size_t i)
static constexpr bool isAdaptive ()

Static Protected Attributes

static constexpr std::array< Value, Stages > higher_order_update_coefficients { 1.0/2.0, 1.0/2.0 }
static constexpr std::array< std::array< Value, Stages >, Stages > k_coefficients
static constexpr std::array< Value, Stages > lower_order_update_coefficients { 1.0, 0.0 }
static constexpr std::size_t Stages = 2
static constexpr std::array< Value, Stages > time_coefficients { 0.0, 1.0 }

Detailed Description

template<typename Value = double>
struct TNL::Solvers::ODE::Methods::Heun2< Value >

Second order Heun's method and Heun-Euler method with adaptive time step.

Template Parameters
Valueis arithmetic type used for computations.

Member Data Documentation

◆ k_coefficients

template<typename Value = double>
std::array< std::array< Value, Stages>, Stages > TNL::Solvers::ODE::Methods::Heun2< Value >::k_coefficients
staticconstexprprotected
Initial value:

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