8.10. C++ Tutorials

Re-implementation of selected Python tutorials in C++ using DAE Tools Development package.

What’s the time (C++)

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.

Tutorial 1 (C++)

Using distribution domains, distributing parameters/variables/equations on domains, using derivative functions (dt, d, d2), setting boundary and initial conditions.

Tutorial 2 (C++)

Using arrays (discrete distribution domains), specifying degrees of freedom, setting initial guesses.

Tutorial 6 (C++)

Using ports, making port connections, declaring components (instances of other models).

Tutorial 4 (C++)

Declaring discontinuous equations (symmetrical state transition networks: daeIF statements).

Tutorial 5 (C++)

Declaring discontinuous equations (non-symmetrical state transition networks: daeSTN statements).

Tutorial 14 (C++)

Declaring and using external functions.

Optimisation tutorial 1 (C++)

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