The Simulation Infrastructure contains everything that is not a model of a real-world system. It enables MATLAB to actually run a simulation, monitor it's progress, log user-defined values and plot the results. The code for this is located in the folder core/+simulation.

Class Infrastructure

The infrastructure class is the backbone of every V-HAB model. It is one of the first classes a user interacts with, because the standard setup class in every example project inherits from simulation.infrastructure. It contains methods for the initialization of a new model and simulation runs, for setting up the standard monitors and the all-important run() method, which actually starts a simulation.

Events

The infrastructure class triggers several events. (See 4. Events API (timer, source))  These are:

Name

init_pre
init_post
step_pre
step_post

finish

pause
run


Class Container


Monitors


Helper

  • Keine Stichwörter