-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsolver-config.h
58 lines (52 loc) · 1.37 KB
/
solver-config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//------------------------------------------------------------------------------
//
// Solver configuration data
// (c) maisvendoo, 04/09/2018
// Developer: Dmitry Pritykin
//
//------------------------------------------------------------------------------
/*!
* \file
* \brief Solver configuration data
* \copyright maisvendoo
* \author Dmitry Pritykin
* \date 04/09/2018
*/
#ifndef SOLVER_CONFIG_H
#define SOLVER_CONFIG_H
#include <QString>
/*!
* \struct
* \brief Solver configuration data
*/
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
struct solver_config_t
{
/// ODE solution method (solver name)
QString method;
/// Intital time
double start_time;
/// Stop integration time
double stop_time;
/// Initial time step value (step value for fixed step methods)
double step;
/// Maximal step value
double max_step;
/// Number of substep
size_t num_sub_step;
/// Local error of solution
double local_error;
solver_config_t()
: method("euler")
, start_time(0.0)
, stop_time(10.0)
, step(3e-3)
, max_step(3e-3)
, num_sub_step(1)
, local_error(1e-5)
{
}
};
#endif // SOLVER_CONFIG_H