Note: This is documentation for version 5.20 of Source. For a different version of Source, select the relevant space by using the Spaces menu in the toolbar above">Note: This is documentation for version 5.20 of Source. For a different version of Source, select the relevant space by using the Spaces menu in the toolbar above

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Simulation TS-phases2_JM_aug_2013.docxSimulation time-step phases

Note the colouring convention used to represent the various Source phases:

Undertaken if using River Operations
Plugins

Functions
Resource Assessment
Ordering phase
Run network
Ownership
Flow phase 


The phases of execution followed in a standard run are:

  1. Start the simulation time-step.
  2. Read and Assign input values from a time series for the current time-step. For example, if you are using an inflow node and the data source for the inflow node is a time series, then a value is read from the time series corresponding to the current time-step and assigned to the inflow node.
  3. Start River Operations: This overrides the values assigned from the input time series from the tabular view.
  4. Start the forecasting phase: Run the forecast models which do not use functions.
  5. Evaluate functions and modelled variables - where Time of Evaluation equals Start Of TimeStep 
  6. Continue forecasting phase: Run the forecast models which do use functions.
  7. River Operations override functions and forecast values: If River Operations is used, then:
    1. Override the values generated by functions.
    2. Override the values generated by forecast models.
  8. Plugins: All valid Source plugins will be notified before each simulation time-step is run.
  9. Resource Assessment Phase.
    1. Per Resource Assessment System
      1. Evaluate functions and modelled variables - where Time of Evaluation equals Resource Assessment.  
      2. Process Resource Assessment System
  10. Ordering phase:
    1. Evaluate functions and modelled variables - where Time of Evaluation equals Ordering Phase and where the function is not used at a network element
    2. Process Water Users:
      1. Per Water User:
        1. Evaluate functions and modelled variables - where Time of Evaluation equals Order Phase, and where the function is used at this Water User.
        2. Calculate and distribute the demands of each Water user
    3. Constraint Phase:
      1. Per Network Element:
        1. Calculate minimum and maximum constraints at each element and pass the constraints downstream
    4. Ordering Phase:
      1. Per Network Element:
        1. Evaluate functions and modelled variables - where Time of Evaluation equals Order Phase, and where the function is used at this network element.
        2. Calculate regulated orders and pass upstream
        3. Calculate off allocation orders and pass upstream
  11. Flow Phase
    1. Evaluate functions and modelled variables - where Time of Evaluation equals Flow Phase and where the function is not used at a network element
    2. Per Network Element:
      1. Evaluate functions and modelled variables - where Time of Evaluation equals Flow Phase, and where the function is used at this network element
      2. Water Ownership - pre-timestep calculations
      3. Off Allocation: Generate additional release requests
      4. The wetland cluster that the element belongs to is solved for this time-step.
      5. Execute element flow phase calculations
      6. Water Ownership - post-timestep calculations, and colouring of water
      7. Calculate Constraint Factors for element
      8. Constituent modeling is executed.
  12. Evaluate functions and modelled variables - where Time of Evaluation equals Post Flow Phase
  13. Resource Assessment Post Time Step Phase
  14. Finalise constituent modeling (marker routing).
  15. End of the forecasting phase.
  16. Evaluate functions and modelled variables - where Time of Evaluation equals End of Time Step
  17. Evaluate modelled variables - where Time of Evaluation equals Post Function Evaluation
  18. Recording phase: Writes the current time-step results to the requested recorders.
  19. Plugins: All valid Source plugins will be notified after every simulation time-step is run.
  20. End of the simulation time-step.
  • No labels