8.10. C++ Tutorials¶
Re-implementation of selected Python tutorials in C++ using DAE Tools Development package.
Importing DAE Tools pyDAE module(s), units and variable types developing models, setting up a simulation, declaring auxiliary objects (DAE solver, data reporter, log), simulation run-time options, running a smulation. |
|
Using distribution domains, distributing parameters/variables/equations on domains, using derivative functions (dt, d, d2), setting boundary and initial conditions. |
|
Using arrays (discrete distribution domains), specifying degrees of freedom, setting initial guesses. |
|
Using ports, making port connections, declaring components (instances of other models). |
|
Declaring discontinuous equations (symmetrical state transition networks: daeIF statements). |
|
Declaring discontinuous equations (non-symmetrical state transition networks: daeSTN statements). |
|
Declaring and using external functions. |
|
IPOPT NLP solver, its setup and options. |
8.10.1. What’s the time (C++)¶
Re-implementation of What’s the time? (AKA: Hello world!) example.
Source code: whats_the_time.cpp
8.10.2. Tutorial 1 (C++)¶
Re-implementation of Tutorial 1 example.
Source code: tutorial1.cpp
8.10.3. Tutorial 2 (C++)¶
Re-implementation of Tutorial 2 example.
Source code: tutorial2.cpp
8.10.4. Tutorial 4 (C++)¶
Re-implementation of Tutorial 4 example.
Source code: tutorial4.cpp
8.10.5. Tutorial 5 (C++)¶
Re-implementation of Tutorial 5 example.
Source code: tutorial5.cpp
8.10.6. Tutorial 6 (C++)¶
Re-implementation of Tutorial 6 example.
Source code: tutorial6.cpp
8.10.7. Tutorial 14 (C++)¶
Re-implementation of Tutorial 14 example.
Source code: tutorial14.cpp
8.10.8. Optimisation tutorial 1 (C++)¶
Re-implementation of Optimisation tutorial 1 example.
Source code: opt_tutorial1.cpp