Skip to content

Commit

Permalink
Add documentation for interactive simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Nov 1, 2017
1 parent 724e394 commit f7e90ac
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions UsersGuide/.gitignore
Expand Up @@ -2,6 +2,7 @@
source/*.pyc
source/logo.pdf
/tmp
source/LotkaVolterra*.*
source/dcmotor.*
source/ProfilingTest_prof*
source/VanDerPol.pdf
Expand Down Expand Up @@ -33,6 +34,16 @@ source/switch.pdf
source/switch.png
source/switch.svg
source/tracreleases.rst
source/interface.inc
source/tmp.rst
source/tmp.wiki
source/media/omedit-icons
source/media/mathematica-notebooks.pdf
source/media/omoptim-icons/
source/omchelptext.rst
source/releaselink.inc
source/simoptions.inc
source/testmodel.pdf
source/testmodel.png
source/testmodel.svg
source/tracreleases.inc
Binary file not shown.
35 changes: 35 additions & 0 deletions UsersGuide/source/omedit.rst
Expand Up @@ -320,6 +320,8 @@ The OMEdit Simulation Dialog can be launched by,
- Right clicking the model from the Libraries Browser and choosing
Simulation Setup.

.. _omedit-general-tab :

General Tab
~~~~~~~~~~~

Expand All @@ -333,6 +335,12 @@ General Tab

- *Interval* – the length of one interval (i.e., stepsize)

- :ref:`omedit-interactive`

- Simulate with steps (makes the interactive simulation synchronous; plots nicer curves at the expense of performance)

- Simulation server port

- Integration

- *Method* – the simulation solver. See section :ref:`cruntime-integration-methods` for solver details.
Expand Down Expand Up @@ -596,6 +604,33 @@ Remove Texture Removes the current texture of the shape.
.. figure :: media/visual_features.png
:name: Different visualization features.
.. _omedit-interactive :

Interactive Simulation
----------------------

.. warning ::
Interactive simulation is an experimental feature.
Interactive simulation is enabled by selecting interactive
simulation in the :ref:`General <omedit-general-tab>` tab of the simulation settings.

There are two main modes of execution: asynchronous and synchronous
(simulate with steps). The difference is that in synchronous (step mode),
OMEdit sends a command to the simulation for each step that the simulation
should take. The asynchronous mode simply tells the simulation to run and
samples variables values in real-time; if the simulation runs very fast,
fewer values will be sampled.

When running in asynchronous mode, it is possible to simulate the model
in real-time (with a scaling factor just like simulation flag
:ref:`-rt <simflag-rt>`, but with the ability to change the scaling
factor during the interactive simulation). In the synchronous mode, the
speed of the simulation does not directly correspond to real-time.

.. raw:: html

<video controls width="640" src="_static/interactive-simulation.mp4"></video>

How to Create User Defined Shapes – Icons
-----------------------------------------
Expand Down

0 comments on commit f7e90ac

Please sign in to comment.