Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
OPENMI: 5.3 Implementing the SetValues method
OPENMI: 5.3 Implementing the SetValues method

5 3 Implementing the SetValues method

The calling sequence for the SetValues method is shown on figure 15 below.

Image Removed
Fig. 15. Calling sequence for the SetValues method

The EngineWrapper class decides what has to be done, based on the QuantityID and the ElementSetID. In the Simple River engine core there is only one possible variable that can act as input, which is the storage of water in the nodes. For the Simple River model, inflow is interpreted as additional inflow, which means that the inflow already received from other sources (the boundary inflow) is not overwritten. The inflow is added to the current storage in the nodes. The ElementSetID is parsed and the node number to which the water is going is determined.

...

4.5.4 Implementing the GetValues method

...