Loading [MathJax]/extensions/tex2jax.js
OGS
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Typedefs
b
c
e
f
h
j
k
l
m
n
p
q
r
s
t
v
w
x
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
x
Variables
Typedefs
Enumerations
Macros
a
b
c
e
g
h
i
l
m
n
o
p
r
s
t
v
w
x
CreateEvolutionaryPIDcontroller.cpp
Go to the documentation of this file.
1
12
#include "
CreateEvolutionaryPIDcontroller.h
"
13
14
#include "
BaseLib/Algorithm.h
"
15
#include "
BaseLib/ConfigTree.h
"
16
#include "
EvolutionaryPIDcontroller.h
"
17
#include "
TimeStepAlgorithm.h
"
18
19
namespace
NumLib
20
{
21
class
TimeStepAlgorithm;
22
std::unique_ptr<TimeStepAlgorithm>
createEvolutionaryPIDcontroller
(
23
BaseLib::ConfigTree
const
& config)
24
{
26
config.
checkConfigParameter
(
"type"
,
"EvolutionaryPIDcontroller"
);
27
29
auto
const
t0 = config.
getConfigParameter
<
double
>(
"t_initial"
);
31
auto
const
t_end = config.
getConfigParameter
<
double
>(
"t_end"
);
33
auto
const
h0 = config.
getConfigParameter
<
double
>(
"dt_guess"
);
34
36
auto
const
h_min = config.
getConfigParameter
<
double
>(
"dt_min"
);
38
auto
const
h_max = config.
getConfigParameter
<
double
>(
"dt_max"
);
40
auto
const
rel_h_min = config.
getConfigParameter
<
double
>(
"rel_dt_min"
);
42
auto
const
rel_h_max = config.
getConfigParameter
<
double
>(
"rel_dt_max"
);
43
45
auto
const
tol = config.
getConfigParameter
<
double
>(
"tol"
);
46
47
return
std::make_unique<EvolutionaryPIDcontroller>(
48
t0, t_end, h0, h_min, h_max, rel_h_min, rel_h_max, tol);
49
}
50
}
// end of namespace NumLib
Algorithm.h
ConfigTree.h
CreateEvolutionaryPIDcontroller.h
EvolutionaryPIDcontroller.h
TimeStepAlgorithm.h
BaseLib::ConfigTree
Definition:
ConfigTree.h:103
BaseLib::ConfigTree::checkConfigParameter
void checkConfigParameter(std::string const ¶m, T const &value) const
Definition:
ConfigTree-impl.h:147
BaseLib::ConfigTree::getConfigParameter
T getConfigParameter(std::string const ¶m) const
Definition:
ConfigTree-impl.h:39
NumLib
Definition:
ProjectData.h:35
NumLib::createEvolutionaryPIDcontroller
std::unique_ptr< TimeStepAlgorithm > createEvolutionaryPIDcontroller(BaseLib::ConfigTree const &config)
Definition:
CreateEvolutionaryPIDcontroller.cpp:22
NumLib
TimeStepping
Algorithms
CreateEvolutionaryPIDcontroller.cpp
Generated by
1.9.1