GoldSim provides two advanced options for defining Time Series elements:
- Recording output history
- Link to external time series definition
These two advanced options are illustrated below.
Recording Output History
You can read the output of any other element in GoldSim, "record" the results, and then "play them back" in a subsequent run of the model.
This is useful for model verification testing when you make changes to a model and want to compare results before and after the changes were made. Below is a screen capture from a large model that includes a recording of output from a previous version of the model.
Linking a Time Series
In this example, the SubModel is run once at the beginning of the simulation. It is run for 480 days with a 30 day time step. In this case, because the SubModel has no inputs, it is only run once (at the beginning of the main model's simulation). The main model is run for 400 days, but has a 1 day time step. A time history from inside the SubModel is passed outside to the "Linked_to_SubModel" element (and plotted).
You can link a time history generated within a SubModel to a Time Series element outside of the SubModel. The primary application of this advanced option is to transfer time series between SubModels.
To link a time series, add an output to the Submodel output interface with the output type set to Time History.
Link the time series output from the submodel by setting the Data Source to Linked.
To Open the Model File:
- Start GoldSim
- Click on the File and select Open Example...
- Browse to General Examples --> TimeSeries
- Select the file called RecordingLinkingTimeSeries.gsm
Please sign in to leave a comment.