Sandals  v0.0.0
A C++ library for ODEs/DAEs integration
Loading...
Searching...
No Matches
Chebyshev51.hxx
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2 * Copyright (c) 2025, Davide Stocco and Enrico Bertolazzi. *
3 * *
4 * The Sandals project is distributed under the BSD 2-Clause License. *
5 * *
6 * Davide Stocco Enrico Bertolazzi *
7 * University of Trento University of Trento *
8 * e-mail: davide.stocco@unitn.it e-mail: enrico.bertolazzi@unitn.it *
9\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
10
11#pragma once
12
13#ifndef SANDALS_CHEBYSHEV51_HXX
14#define SANDALS_CHEBYSHEV51_HXX
15
16namespace Sandals
17{
34 class Chebyshev51Tableau : public Tableau<5>
35 {
36 public:
37 using Tableau<5>::Type;
38 using Tableau<5>::Vector;
39 using Tableau<5>::Matrix;
40
45 this->name = "Chebyshev51";
46 this->type = Type::ERK;
47 this->order = 1;
48 this->A << 0.0, 0.0, 0.0, 0.0, 0.0,
49 1.0/25.0, 0.0, 0.0, 0.0, 0.0,
50 2.0/25.0, 2.0/25.0, 0.0, 0.0, 0.0,
51 3.0/25.0, 4.0/25.0, 2.0/25.0, 0.0, 0.0,
52 4.0/25.0, 6.0/25.0, 4.0/25.0, 2.0/25.0, 0.0;
53 this->b << 1.0/5.0, 8.0/25.0, 6.0/25.0, 4.0/25.0, 2.0/25.0;
54 this->c << 0.0, 1.0/25.0, 4.0/25.0, 9.0/25.0, 16.0/25.0;
55 }
56 }; // class Chebyshev51Tableau
57
65 template <Integer N, Integer M = 0>
66 class Chebyshev51 : public RungeKutta<5, N, M>
67 {
68 public:
70
75
80 Chebyshev51(System t_system) : RungeKutta<5, N, M>(Chebyshev51Tableau(), t_system) {}
81
82 }; // class Chebyshev51
83
84} // namespace Sandals
85
86#endif // SANDALS_CHEBYSHEV51_HXX
Chebyshev51()
Definition Chebyshev51.hxx:74
Chebyshev51(System t_system)
Definition Chebyshev51.hxx:80
typename Implicit< N, M >::Pointer System
Definition Chebyshev51.hxx:69
Butcher tableau for the 5-stage Runge-Kutta-Chebyshev order 1 method.
Definition Chebyshev51.hxx:35
Chebyshev51Tableau()
Definition Chebyshev51.hxx:44
std::shared_ptr< Implicit< N, M > > Pointer
Definition Implicit.hxx:42
RungeKutta(const RungeKutta &)=delete
The namespace for the Sandals library.
Definition Sandals.hh:73
Struct container for the Butcher tableau of a Runge-Kutta method.
Definition Tableau.hxx:36
enum class type :Integer {ERK=0, IRK=1, DIRK=2} Type
Definition Tableau.hxx:37
Eigen::Matrix< Real, S, S > Matrix
Definition Tableau.hxx:39
Integer order
Definition Tableau.hxx:43
Type type
Definition Tableau.hxx:42
Eigen::Vector< Real, S > Vector
Definition Tableau.hxx:38
Matrix A
Definition Tableau.hxx:45
std::string name
Definition Tableau.hxx:41
Vector b
Definition Tableau.hxx:46
Vector c
Definition Tableau.hxx:48