This example model demonstrates the use of a Spreadsheet element to export model outputs during shorter time steps in the simulation. In this model, the simulation runs for 1000 years with a 100 yr basic time step and an Elapsed Time type of simulation.
The time steps in the model are dynamically adjusted using the Advanced Simulation Property called "Maximum Time Between Updates." You can read more about controlling the time step length in this chapter of the GoldSim Help: Dynamically Controlling the Timestep (goldsim.com). Below is a screen capture of the model, showing how the variable Dyn_TimeStep is used to control the maximum time between updates. This is set using 3 Data elements:
- Start_Short_Period_YR: Enter the year to start the period with shorter time steps (300 yr)
- End_Short_Period_YR: Enter the year to end the period with shorter time steps (400 yr)
- Shorter_Time_Step: Enter the length of time for the shorter time step (2 yr)
This model provides a way to export results for both the scheduled time steps and also for the dynamically adjusted time steps when the time step is made shorter. Inside the Container called "Shorter_TimeStep" you will see a Spreadsheet element that is exporting the model output using a row offset.
In addition, we use a Time History Result element called "Export History" to export the model output on each of the basic time steps of the model as defined in the Simulation Settings.
The result is a spreadsheet with both the time history reported on each of the basic steps of the simulation and also the outputs that occurred on the shorter time steps.
Comments
0 comments
Please sign in to leave a comment.