|

Calculating average monthly rainfall amounts from a Time Series using a SubModel

Description

In this example, a SubModel is used to generate monthly mean precipitation amounts from a Time Series element containing rainfall rate data. The mean values are exported from the SubModel and used as the means in a Stochastic element that generates daily rainfall.

The definition of the Time Series element 'Rainfall_Data' is passed into the SubModel. Inside of the SubModel, monthly cumulative amounts are divided by the month counts to get average rainfall amounts for each of the 12 months. The final value of this vector of monthly average rainfalls is exported to the outer model through the SubModel output interface. Enter the SubModel to see a detailed description of how monthly mean precipitation amounts are calculated.

Run the model and open the Time History element 'Generated Rainfall' to see the monthly mean precipitation amounts (calculated in the SubModel) and the generated precipitation history.

 

Making Better Decisions In An Uncertain World