Design a simple component

We're going to start with a very simple component indeed and then develop that component into something a bit more complex.

Our first model component is going to be called Pond.  Initially, it will be extremely simple and have a single input (inflow) and a single output (outflow) and four arguments:

  • timestep - the amount of real time that passes with every tick of the composition  clock.
  • capacity - the maximum amount of stuff the pond can hold before overflowing
  • currentlevel - the amount of stuff the pond holds at any one time
  • flow - the amount of stuff that flows out of the pond every timestep if the pond is overflowing

Pond component

The next step is to ensure we have designed our Open MI component using a .OMI definition file  so that Pipistrelle can identify the component.