﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title><![CDATA[GoldSim Wiki - Page Updates]]></title><link>http://www.GoldSim.com/Wiki/</link><atom:link href="http://www.GoldSim.com/Wiki/Knowledge Base.RSS.aspx?Category=Knowledge Base.How GoldSim Works" rel="self" type="application/rss+xml" /><description><![CDATA[Recent Page updates]]></description><pubDate>Sat, 25 May 2013 08:27:33 GMT</pubDate><generator>ScrewTurn Wiki RSS Feed Generator</generator><item><title><![CDATA[Time Series Element]]></title><link>http://www.GoldSim.com/Wiki/Knowledge Base.TimeSeries.ashx</link><author> (jlillywh)</author><description><![CDATA[<h2 class="separator">Time Series Element<a class="headeranchor" id="Time_Series_Element_3" href="#Time_Series_Element_3" title="Link to this Section"></a></h2>
<div class="imageright"><img class="image" src="GetFile.aspx?Page=Knowledge%20Base.TimeSeries&amp;File=TimeSeries.jpg" alt="Image" /></div><b>Time Series elements</b> provide a very flexible and powerful way to input external time histories of data into GoldSim (i.e., a table showing how a variable changes as a function of time). <br /><br />The Time Series element was greatly enhanced in GoldSim 10.1 and later versions. The changes include an addition of Time Shifting options, support for multiple series, and ability to import history from other simulation models.  <br /><br /><br /><br /><h3 class="separator">Related Model Library Articles<a class="headeranchor" id="Related_Model_Library_Articles_0" href="#Related_Model_Library_Articles_0" title="Link to this Section"></a></h3> 
<ul><li><a class="pagelink" href="Model%20Library.Sampling-a-Continuous-Loop-of-Historic-Time-Series-Data.ashx" title="Sampling a Continuous Loop of Historic Time Series Data"> Sampling a Continuous Loop of Historic Time Series Data</a></li><li><a class="unknownlink" href="Knowledge Base.Model%20Library.Indexing-a-Historic-Record.ashx" title="Knowledge Base.Indexing-a-Historic-Record"> Indexing Historic Records</a><br /></li></ul><br /><h3 class="separator">See Also<a class="headeranchor" id="See_Also_1" href="#See_Also_1" title="Link to this Section"></a></h3> 
<ul><li><a href="AllPages.aspx?Cat=GoldSim%20Element%20" class="systemlink" title=" Other GoldSim elements"> Other GoldSim elements</a><br /></li></ul><br /><h3 class="separator">Other Resources<a class="headeranchor" id="Other_Resources_2" href="#Other_Resources_2" title="Link to this Section"></a></h3>
<ul><li><a class="externallink" href="http://www.goldsim.com/Topic/35/#TimeSeries%20" title=" Video Library" target="_blank"> Video Library</a><br /></li></ul>
]]></description><pubDate>Wed, 03 Apr 2013 21:19:49 GMT</pubDate><guid isPermaLink="false">FD318C9D8FB55671EA7410D674BB5253</guid></item><item><title><![CDATA[Comparing Time Varying Data in GoldSim and Spreadsheets]]></title><link>http://www.GoldSim.com/Wiki/Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets.ashx</link><author> (jlillywh)</author><description><![CDATA[<h3 class="separator">Introduction<a class="headeranchor" id="Introduction_0" href="#Introduction_0" title="Link to this Section"></a></h3>The purpose of this article is to help GoldSim users who want to compare GoldSim model results to results of similar calculations done in a spreadsheet.  Because of fundamental differences between spreadsheets and dynamic simulators like GoldSim, people sometimes find it challenging to compare time-dependent results in the two programs.&nbsp;<br /><br />This article first describes the differences between dynamic simulation tools (i.e., GoldSim) and spreadsheets. Following this introduction, it describes some problems people commonly encounter when comparing GoldSim results to spreadsheet results. This article is intended to help the modeler appreciate the differences between dynamic simulation and spreadsheet modeling and provide instruction on how to avoid the problems that might arise due to the misunderstandings described in this article.<br /><br /><h3 class="separator">Dynamic Simulation<a class="headeranchor" id="Dynamic_Simulation_1" href="#Dynamic_Simulation_1" title="Link to this Section"></a></h3>GoldSim is a dynamic simulation tool. Dynamic simulation is the use of a computer program to model time-varying behavior of a system. In GoldSim, time is a built-in variable, explicitly associated with all model variables and the system you are modeling. The state of the system is updated and reported at specific reporting periods (i.e., time steps) during the simulation. The results for all reporting periods are stored in the computer’s memory. In GoldSim, there is an internal clock that keeps track of time and reports this in various ways (i.e., the simulated date, the simulated month, the elapsed time, etc.). The model variables are updated automatically each time the internal clock is updated. The clock is updated at scheduled time steps defined by the user and also at other points in time (when specified events occur during the simulation).  That is, it is important to note that in GoldSim, clock updates don’t necessarily occur only at scheduled time steps; they can also occur at times in between the scheduled time steps.<br /><br />Typically, the modeler is interested in seeing how model variables behave over time. In GoldSim, the model progresses forward in time from a defined starting point and continues running until a defined end point. During the simulation, all the model variables are updated and saved so that these values can be viewed by the modeler.&nbsp;<br /><br /><h3 class="separator">Spreadsheet Modeling<a class="headeranchor" id="Spreadsheet_Modeling_2" href="#Spreadsheet_Modeling_2" title="Link to this Section"></a></h3>A spreadsheet is very different from a dynamic simulation tool. A spreadsheet is a computer program that simulates a paper-accounting worksheet using a grid of cells organized in rows and columns that contains text, numeric values, or formulas. One of the widely known benefits of a spreadsheet is the feature allowing the user to copy and replicate formulas down rows or across columns, thus simplifying the process of repetitive calculations (such as repeating calculations for each time step).<br /><br />One of the most important differences between a dynamic simulation tool (like GoldSim) and a spreadsheet is how the tool deals with the concept of time. Although spreadsheets do recognize dates, time is not explicitly defined inside the internal workings of the spreadsheet program. Typically, the modeler will use rows (or columns) in the spreadsheet to imply time steps. The date label in each row/column is used to reference a time point that corresponds to values and formulas within that same row/column.  Note that as a result of this representation, in a spreadsheet, it is ambiguous as to what the values represent (e.g., do the values represent constant values over a time step, or are they instantaneous values?).&nbsp;
&nbsp;   
On the other hand, as will be seen below, GoldSim has some very specific rules as to how time-varying data is entered and represented, so that there is no ambiguity at all as to what the values represent.&nbsp;
&nbsp; 
These differences in time accounting methods can cause confusion when comparing GoldSim results to those in a spreadsheet. To help avoid misinterpretation of results when comparing GoldSim and spreadsheets, we have summarized three different types of issues that people tend to encounter when comparing GoldSim and spreadsheet results. These are described in the following sections.<br /><br /><h3 class="separator">Problem #1: GoldSim Results Represent Instantaneous Rates While Spreadsheet Results Represent Changes in a Quantity Over an Interval<a class="headeranchor" id="Problem_B:_GoldSim_Results_Represent_Instantaneous_Rates_While_Spreadsheet_Results_Represent_Changes_in_a_Quantity_Over_an_Interval_3" href="#Problem_B:_GoldSim_Results_Represent_Instantaneous_Rates_While_Spreadsheet_Results_Represent_Changes_in_a_Quantity_Over_an_Interval_3" title="Link to this Section"></a></h3>
This is the most common problem encountered when people try to compare spreadsheet results to GoldSim results.  The problem arises because the results computed by the two approaches are fundamentally different.  GoldSim computes instantaneous rates at each time step (e.g., an instantaneous flow rate).  Spreadsheets do not actually deal in rates; they compute changes in a quantity (e.g., a volume) over an interval (i.e., the time step). A change in a volume divided by a time interval does not represent an instantaneous rate; it represents an average rate over the interval.  Comparing an instantaneous rate at time T2 (computed by GoldSim) to an average rate over the time period between T1 and T2 (computed by a spreadsheet) is likely to yield different results.<br /><br />The best way to demonstrate this difference is through examples. Two examples will be used, starting with a simple example involving an overflow from a reservoir with a constant inflow and no outflow. For simplicity, it is assumed that overflow is instantaneous at the point that the capacity of the reservoir is exceeded and is not affected by the physical limitations of an overflow facility, such as a spillway. In this simple example, a reservoir fills up at a constant rate of 4 m3/day, and then begins to overflow after it reaches its capacity of 10 m3. There are no outflows (withdrawals) from this reservoir (the overflow when the reservoir is full is not considered to be an outflow).  We will also assume that we are carrying out the calculation for a period of 4 days, using a daily time step.
In a spreadsheet, the inflow rate (4 m3/day) must be treated as a volume that is applied over a period of time, represented by each row of the spreadsheet. That is, rather than explicitly defining the inflow as a rate, it is treated as a volume applied uniformly over the time step (which is assumed to be 1 day). At any time step i (corresponding to a row in the spreadsheet), the volume (V) and overflow rate (S) are calculated as follows:<br /><br /> 
 V<sub>i</sub> = min(V<sub>i-1</sub> + I<sub>i</sub> - O<sub>i</sub>, V<sub>max</sub>)<br />
S<sub>i</sub> = max(I<sub>i</sub> - O<sub>i</sub> - V<sub>i</sub> + V<sub>i-1</sub>, 0 m<sup>3</sup>)<br /><br />where: 
V<sub>i</sub> = volume at time step i (m<sup>3</sup>)<br />
S<sub>i</sub> = volume that overflows over time step i (m<sup>3</sup>)<br />
I<sub>i</sub> = inflow over time step i (m<sup>3</sup>); 4 m<sup>3</sup> in this example<br />
O<sub>i</sub> = outflow over time step i (m<sup>3</sup>); 0 m<sup>3</sup> in this example<br />
V<sub>max</sub> = maximum volume in reservoir (m<sup>3</sup>); 10 m<sup>3</sup> in this example<br /><br />Table 1 is a summary of the model results for this simple example.  Each row in the spreadsheet represents a time step.<br /><br /><b><i>Table 1 – Reservoir Model: Spreadsheet Results</i></b><br />
<img src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=table1.png" alt="Image" /><br /><br />The inflow and outflow represent volumes applied from the time shown for the current row until the time for the next row down. The volume represents the instantaneous amount reported at the beginning of the time shown for the current row (e.g., the volume at 1 day is 8 m3). The overflow represents the volume of water that overflowed between the time shown in the previous row and the time shown in the current row. For example, between Time = 1 day and Time = 2 day (i.e., during the second day of the simulation), the overflow over the course of the day was 2 m3.  Note that the overflow values shown in the table do not represent flow rates; rather, they represent flow volumes over the time period. In reality, the reservoir overflowed at a rate of 0 m3/day for the first half the second day and 4 m<sup>3</sup>/day for the second half of the second day. The average flow rate over the entire day was therefore 2 m<sup>3</sup>/day. 
For comparison, the same reservoir model was implemented in GoldSim, using a daily time step.  Since GoldSim is a dynamic simulator that incorporates time into the calculations, the overflow is truly represented as a flow rate and not a volume as it is in the spreadsheet. Table 2 is a summary of results that are reported at the scheduled daily time steps of the GoldSim model.&nbsp;<br /><br /><b><i>Table 2 - Reservoir Model: GoldSim Results</i></b>
<img src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=table2a.png" alt="Image" /><br /><br />All values shown in this table represent the same thing: the instantaneous rate (or volume) at that point in time.  Hence, the instantaneous overflow rate at Time = 2 days (i.e., the end of second day or the beginning of the third day) is equal to 4 m3/day.   The volume at that point in time is 10 m<sup>3</sup>.  Note that although the overflow rate shown for at Time = 1 day is 0 m<sup>3</sup>/day, this does not mean the rate was 0 m3/day for either the first day (Time = 0 to 1 days) or the second day (Time = 1 to 2 days).  Rather, it only means that at the end of the first day (i.e., exactly at Time = 1 day), the overflow rate was 0 m3/day.<br /><br />Figure 1 shows three different figures as another way to compare the differences between spreadsheets and GoldSim models. The figure on the top is how the system really works. The reservoir reaches capacity at 1.5 days, at which point the reservoir begins to overflow.  The figure on the lower left is how GoldSim displays results at each scheduled time step. The figure on the lower right is how a spreadsheet would display results. The dots on the lower graphs represent the values that are reported at the scheduled time steps.<br /><br /><table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure1_fixed.png" alt="Image"></td></tr></tbody></table><p class="MsoCaption"><span style="font-size:10.0pt;mso-bidi-font-size:9.0pt"><b><i>Figure
1 - Simple Representation of Reservoir Overflow in GoldSim and a Spreadsheet&nbsp;</i></b><o:p></o:p></span><br /><br />The key point here is that in the GoldSim result plot, the overflow rate represents an instantaneous flow rate. In the spreadsheet plot, it actually represents a quantity over a time step (i.e., an average flow rate). Note that if we were to integrate the overflow rate in the GoldSim model at each scheduled time step (e.g., using an Integrator element or another Reservoir), the results would look like this:<br /><br /><b><i>Table 3 - Reservoir Model: GoldSim Model with Integrated Overflow</i></b><br />
<img src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=table3.png" alt="Image" /><br /><br />As can be seen, GoldSim correctly computes the cumulative amount of overflow at each point in time.  How does GoldSim do this? As noted earlier, the GoldSim internal clock is interrupted on scheduled time steps but is also interrupted by specific events. One such event that interrupts the internal clock is the overflowing of a Reservoir element in GoldSim.  That is, at the point where a Reservoir starts to overflow, GoldSim inserts a new (unscheduled) time step, and this allows GoldSim to accurately capture the actual overflow behavior. However, the results of model variables at these inserted (non-scheduled) time steps are not reported in GoldSim Time History charts (only results at scheduled time steps are displayed).&nbsp;<br /><br />To explore this further, a second more complicated example is presented below. In this example, we will assume that the inflow is changing and in addition to a possible overflow, there is a constant outflow (withdrawal). The reservoir has an upper bound of 12 m3. Once the maximum volume limit is exceeded, it will overflow. The reservoir model runs for 4 days with a daily time step. 
Table 4 shows the inputs and outputs as they would be appear in a typical spreadsheet. It is implied that the inflow and outflow values shown on each row represent constant values over the period of the time shown in the “Day” column. For example, the inflow is a constant 9 m3/day starting at the beginning of the second day (i.e., at Time =1 Day) and ending just before the beginning of the third day (i.e., at Time = 2 day). The calculated volume and the overflow rates are shown just below the row of the inputs to indicate that the values are updated just before the next time step occurs (i.e., at the beginning of the next time step). As noted in the previous example, flows in a spreadsheet actually represent volumes that accrue over each time step.<br /><br /><b><i>Table 4 - Reservoir Storage Calculations in a Spreadsheet</i></b><br /><img src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=table4a.png" alt="Image" /><br /><br />A plot of these spreadsheet results is shown in Figure 2.<br /><br /><table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure2.png" alt="Image"></td></tr></tbody></table><b><i>Figure 2 - Plot of Spreadsheet Model Results</i></b><br /><br />To build this same model in GoldSim, we would use a Time Series element to represent the inflow.
The data in the Time Series element would be explicitly defined to represent constant values over the next time interval (See Figure 3). This ability to specify what the Time Series represents in GoldSim will be discussed further below (see Problem #3).
<table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure3.png" alt="Image"></td></tr></tbody></table><b><i>Figure 3 - Definition of Inflow Data Timeseries</i></b>
<b><i>
</i></b><br /><br />Figure 4 is a screen capture of data that would be entered into the Time Series element.
<table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure4.png" alt="Image"></td></tr></tbody></table><b><i>Figure 4 - Inflow Data for GoldSim Model</i></b><br /><br />The GoldSim model results are shown below in Figure 5.
<table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure5.png" alt="Image"></td></tr></tbody></table>
<b><i>Figure 5 - GoldSim Model Results</i></b><br /><br />As can be seen, the maximum overflow rate appears to have occurred Time = 3 days with a value of 3 m3/day. However, the results shown in this graph must be interpreted carefully. The key point to understand is that the overflow reported is an instantaneous value captured at a specific point in time, NOT the average value over the time step. In this particular case, a time step was inserted sometime between Time = 2 days and Time = 3 days (when the upper bound of the reservoir was reached). The (instantaneous) overflow rate was only plotted, however, once per day (at the scheduled time steps). The values of the overflow rate between Time = 2 days and Time = 3 days cannot not be determined from this plot since only the values on the beginning and end of the third day (i.e., at Time = 2 day and Time = 3 day) were saved.<br /><br />If you were to integrate the overflow rate using an Integrator element, you would see that GoldSim correctly maintains an accounting of the overflowing water. Figure 6 shows the overflow rate and the integral of this rate (cumulative overflow volume) over time, which properly accounts for 26 m<sup>3</sup> of overflow water.<br /><br /><table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure6.png" alt="Image"></td></tr></tbody></table><b><i>Figure 6 - Graph Plot of Model Results Showing Overflow Rates and Volume (5 time steps)</i></b><br /><br />At Time = 3 days, the cumulative overflow has grown to 23 m<sup>3</sup> even though the (instantaneous) overflow rate at that point in time is reported to be 3 m3/day. Clearly, this implies that sometime between Time = 2 days and Time = 3 days, the overflow rate must have been significantly greater than 3 m3/day.<br /><br />This becomes easier to understand if we run the same model with shorter time steps and view the graph again. Figure 7 shows results from the same model with 50 time steps instead of 5 time steps (i.e, the values in the model are updated every 0.1 days instead of every 1 day).<br /><br /><table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure7.png" alt="Image"></td></tr></tbody></table><b><i>Figure 7 - Graph Plot of Model Results Showing Overflow Rates and Volume (50 time steps)</i></b><br /><br />This figure makes it clear that the overflow rate jumped up to 28 m3/day just after Time = 2 days, and then dropped to 3 m3/day at Time = 3 days. Note that unlike a spreadsheet, in GoldSim, all reported flows (inflow and outflow, as well as overflows) represent instantaneous, volumetric fluxes. In a spreadsheet, the flows are treated as discrete, daily volume changes. Moreover, the exact time that the reservoir begins to overflow is left ambiguous in a spreadsheet. In GoldSim, such a change is automatically captured. GoldSim inserts a time step when the overflow begins. This happens regardless of the number of scheduled time steps. As a result, the GoldSim model results (in terms of the volume in the reservoir and the cumulative volume that overflowed) using 5 time steps and 50 time steps are identical; the 50 time step model simply allows for more refined plotting on the time history chart.<br /><br />We can examine this further by viewing the results at the unscheduled time steps. This can be done in GoldSim by setting up a Time Series element to record time histories. (To learn how, open the GoldSim Help file, select the Index tab, and enter “Time Series elements, using to record”.) This will make it possible to view all the changes that occurred in the model without decreasing the simulation time step. Figure 8 shows the results for the overflow rate:<br /><br /><table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure8.png" alt="Image"></td></tr></tbody></table><b><i>Figure 8 – Time Series Recording of the Overflow Rate (including the value at the inserted time step)</i></b><br /><br />As can be seen, the Reservoir started to overflow at about 2.18 days (at which point GoldSim inserted a time step). The overflow rate at this point in time was 28 m3/day. Table 5 is a summary of the all the model inputs and outputs specifically including the values at the inserted event just after Time = 2 days. The row containing the inserted time step is highlighted. (These values were pulled directly out of Time Series elements that were set to record.)<br /><br /><b><i>Table 5 - Summary of the GoldSim Model Results (including values recorded at the inserted time step)</i></b>
<img src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=table5.png" alt="Image" /><br /><br />A table showing results at the scheduled time steps used for display in a Time History Result element are shown in Figure 9.<br /><br />
<table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure9.png" alt="Image"></td></tr></tbody></table><b><i>Figure 9 - Time History Table in GoldSim Model (not including the values at the inserted time step)</i></b><br /><br />Note that these results do not indicate that the overflow rate peaked at 28 m3/d because that value did not fall exactly on the scheduled time step. Hence, if you copy and paste these values with the intent to compare them to parallel calculations done in a spreadsheet, you will discover a discrepancy. The problem is that it is incorrect to assume that the values displayed here are constant over the time step. Instead, they represent the instantaneous values that are recorded at each scheduled time step.
<h3 class="separator">Problem #2: Misuse of Month and Year Time Units<a class="headeranchor" id="Problem_C:_Misuse_of_Month_and_Year_Time_Units_4" href="#Problem_C:_Misuse_of_Month_and_Year_Time_Units_4" title="Link to this Section"></a></h3>
Sometimes people are surprised to find that results of functions involving time units (like months or years) do not match results in a spreadsheet. This usually happens because of differences in the way years and months are defined. <br /><br />It is important to understand that all units in GoldSim must have fixed definitions (e.g., 1 km = 1000 m).  These definitions are constant in time.  The same rule must apply to time units.  Hence, 1 day = 24 hr. Confusion occurs when people use the time unit month (mon) or year (yr).  How are these units defined?<br /><br />GoldSim defines the month time unit (mon) to be the length of an average month, accounting for leap year.  In particular, 1 mon = 30.4375 days.
The year time unit (yr) is defined in GoldSim as the average of leap years and non-leap years on a 4 year cycle so that the unit of a year always equals 365.25 days. <br /><br />It is important to keep in mind that these units have fixed values, independent of the current clock time of the simulation. For example, if you define a variable in GoldSim as “1 mon”, and display the result in units of days, the result will be a constant 30.4375 days even if the model is run for 12 months. For example, the expression “1 mon” will evaluate to 30.4375 days during February and March. Do not confuse the unit “mon” with the model variable “Month”, which is a unitless counter (i.e., an integer) that indicates the current month (cycling between 1 and 12). 
<h3 class="separator">Problem #3: Ambiguity in the Definition of Flow Rates<a class="headeranchor" id="Problem_D:_Ambiguity_in_the_Definition_of_Flow_Rates_5" href="#Problem_D:_Ambiguity_in_the_Definition_of_Flow_Rates_5" title="Link to this Section"></a></h3>Another mistake that is often made when comparing GoldSim results to those in a spreadsheet arises due to ambiguous flow rate definitions. GoldSim forces you to explicitly define what the data in a Time Series represents. In a GoldSim Time Series element, there are 6 different ways to represent time varying data:<br /><br />That is, GoldSim forces you to be very explicit regarding what the time series data you are entering represents.<br /><br />In the spreadsheet shown below in Figure 10, the flow rates are defined as daily values. This time definition is implied due to the date in the first column that appears to consistently change on a daily basis. However, this table is ambiguous. First, what exactly does each value of “Flow Rate” represent? Is it an average value across the entire 24-hr period or is it an instantaneous value taken at a specific time (e.g., noon or midnight)?  Another clarification that needs to be made is whether or not the dates increment by exactly one day for the entire dataset. Are some dates missing and if so, do we assume the flow rate is constant over those missing days?<br /><br /><p class="MsoCaption"><font class="Apple-style-span" size="2"></font><p class="MsoCaption"><font class="Apple-style-span" size="2"><span style="font-size: 10pt; "><b><i><table class="imageauto" align="center" cellpadding="0" cellspacing="0"><tbody><tr><td><img class="image" src="GetFile.aspx?Page=Knowledge Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure10.png" alt="Image"></td></tr></tbody></table></i></b></span></font><p class="MsoCaption"><font class="Apple-style-span" size="2"><span style="font-size: 10pt; "><b><i>Figure
10 - Example Data in a Spreadsheet</i></b><br /><br />Even though these questions might be taken care of through good documentation, the representation of time is often ambiguous in a spreadsheet. Hence, care needs to be taken when comparing this data to results from a dynamic simulator. Figure 11 is an example plot showing how time varying data can be represented in different ways using the same data. The figure shows plots of the same data defined in three different ways: as instantaneous values, as constant values over the next time interval, and as constant values over the previous time interval. Depending on the definition, the model would have very different results. Since the definition of such data in a spreadsheet is ambiguous, care must be used when validating results against that of a GoldSim model.<br /><br />
<img src="GetFile.aspx?Page=Knowledge%20Base.Comparing-Time-Varying-Data-in-GoldSim-and-Spreadsheets&amp;File=figure11.png" class="image" alt="Image" />
<span class="Apple-style-span" style="font-size: 13px; "><br />
<b><i>Figure 11 - Plot of Time-Varying Data with Different Definitions</i></b></span>
<font class="Apple-style-span" size="2"><b><i>
</i></b></font><br /><br />
<h3 class="separator">Conclusions<a class="headeranchor" id="Conclusions_6" href="#Conclusions_6" title="Link to this Section"></a></h3>
As seen in the previous sections, there are some significant differences in the way flow rates and flow volumes are defined in spreadsheets and dynamic simulators. Becoming more aware of these differences will help to ensure that appropriate comparisons of results are made between the tools. The main points to consider when comparing GoldSim models to spreadsheet models are as follows:<br /><br /><ul><li>Time series data are explicitlydefined in GoldSim and loosely defined in a spreadsheet.</li><li>Flow rates in GoldSim are reportedas instantaneous values, whereas spreadsheet results typically representaverage values (quantities over a fixed time interval).</li><li>GoldSim might insert unscheduled time steps thatare not reported in a Time History chart</li><li>The time units (such as mon, d,yr, hr) are different than model variables of time (such as Month, Day, Year,Hour) and should be used cautiously.<br /></li></ul><br />For answers to questions about comparing GoldSim results to spreadsheet data, please contact us at <a class="emaillink" href="mailto:&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#103;&#111;&#108;&#100;&#115;&#105;&#109;&#46;&#99;&#111;&#109;" title="&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#103;&#111;&#108;&#100;&#115;&#105;&#109;&#46;&#99;&#111;&#109;">&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#103;&#111;&#108;&#100;&#115;&#105;&#109;&#46;&#99;&#111;&#109;</a>.<br /><br /><h3 class="separator">See Also<a class="headeranchor" id="See_Also_7" href="#See_Also_7" title="Link to this Section"></a></h3>
<p class="MsoNormal"><a href="http://www.goldsim.com/Wiki/TimeSeries.ashx">http://www.goldsim.com/Wiki/TimeSeries.ashx</a><o:p></o:p>
<p class="MsoNormal"><a href="http://www.goldsim.com/Web/Products/GoldSimPro/Spreadsheets/">http://www.goldsim.com/Web/Products/GoldSimPro/Spreadsheets/</a><o:p></o:p><p class="MsoNormal"> &nbsp;&nbsp;
]]></description><pubDate>Fri, 22 Mar 2013 22:10:47 GMT</pubDate><guid isPermaLink="false">806848618B8D8F675599CE63E4D4C0FA</guid></item><item><title><![CDATA[Learn How To Use GoldSim]]></title><link>http://www.GoldSim.com/Wiki/Knowledge Base.Learn_GoldSim.ashx</link><author> (jlillywh)</author><description><![CDATA[<h2 class="separator">Learn How to Use GoldSim<a class="headeranchor" id="Learn_How_to_Use_GoldSim_4" href="#Learn_How_to_Use_GoldSim_4" title="Link to this Section"></a></h2>
A variety of resources for learning GoldSim are available within GoldSim application and online.  <br /><br /><table id="TocContainerTable"><tr><td><div id="TocContainer"><p class="small"><b>Table of Contents</b><span id="ExpandTocSpan"> [<a href="#" onclick="javascript:if(document.getElementById('Toc').style['display']=='none') document.getElementById('Toc').style['display']=''; else document.getElementById('Toc').style['display']='none'; return false;">Hide/Show</a>]</span></p><div id="Toc"><p><br />&nbsp;&nbsp;&nbsp;<a href="#Learn_How_to_Use_GoldSim_4">Learn How to Use GoldSim</a><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Installed_with_the_GoldSim_Application_0">Installed with the GoldSim Application</a><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Online_Resources_1">Online Resources</a><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GoldSim_Support_2">GoldSim Support</a><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#See_Also_3">See Also</a><br /></p></div></div></td></tr></table><br /><h3 class="separator">Installed with the GoldSim Application<a class="headeranchor" id="Installed_with_the_GoldSim_Application_0" href="#Installed_with_the_GoldSim_Application_0" title="Link to this Section"></a></h3>
When you install GoldSim on your machine, a number of tools are also installed to help you to learn GoldSim. <br /><br /><ul><li><b>GoldSim Tutorial</b><br />The GoldSim Tutorial  is available via the Tutorial button on the Start dialog (displayed whenever GoldSim is run), or by selecting Help | Tutorial from the main GoldSim menu.</li><li><b>The Example Files</b><br />A folder labeled "General Examples" is installed in the same directory as the program. You can quickly access these files by selecting File|Open Example… from the main GoldSim menu. This directory contains example model files showing how to use each of the elements.</li><li><b>Help System</b><br />The Help system contains all of the contents of the User’s Guide, with the exception of the technical appendices. Help System is accessible from Help buttons within GoldSim properties dialog or from the Help menu.</li><li><b>The User’s Guide</b><br />All features of GoldSim are described in the User's Guide. Go to Start Menu, then All Programs. Under each GoldSim version, you should find a folder for User's Guide. <br /></li></ul><br />
<h3 class="separator">Online Resources<a class="headeranchor" id="Online_Resources_1" href="#Online_Resources_1" title="Link to this Section"></a></h3>
<ul><li><b>The Video Library</b><br />A collection of Micromedia Flash videos are available in <a class="externallink" href="http://www.goldsim.com/Topic/35/" title=" the Video Library" target="_blank"> the Video Library</a> in GoldSim website.</li><li><b>Modeler's Corner</b><br /><a class="externallink" href="http://www.goldsim.com/Topic/437/ " title=" Modeler's Corner" target="_blank"> Modeler's Corner</a> articles are published with GoldSim newsletters. You can find these articles in GoldSim website.</li><li><b>GoldSim Forum</b><br />If you have any questions or issues in using GoldSim, post questions at <a class="externallink" href="http://www.goldsim.com/Forum/ " title=" GoldSim Forum" target="_blank"> GoldSim Forum</a>.</li><li><b>GoldSim Wiki</b><ol><li><b>Model Library</b><br />GoldSim Wiki contains <a class="pagelink" href="Knowledge Base.Model%20Library.MainPage.ashx" title="Main Page"> the Model Library</a> with a number of models illustrating how GoldSim can be used for particular applications.</li><li><b>Knowledge Base</b><br /><a class="pagelink" href="Knowledge%20Base.MainPage%20.ashx" title="Main Page"> Knowledge Base</a> contains a collections of articles about tips and tricks in building and running models, issues and questions about installation and other issues. <br /></li></ol></li></ul><br />
<h3 class="separator">GoldSim Support<a class="headeranchor" id="GoldSim_Support_2" href="#GoldSim_Support_2" title="Link to this Section"></a></h3>When you purchase GoldSim, you are entitled to 1 year of free email support (support@goldsim.com) as a part of <a class="externallink" href="http://www.goldsim.com/Topic/31/" title="GoldSim Subscription program" target="_blank">GoldSim Subscription program</a>. Email <a class="emaillink" href="mailto:&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#103;&#111;&#108;&#100;&#115;&#105;&#109;&#46;&#99;&#111;&#109;&#32;" title=" GoldSim support"> GoldSim support</a> with your questions.<br /><br /><ul><li><b>Web-based training session</b><br />If you have already purchased GoldSim (or if you are evaluating GoldSim in order to determine if you want to purchase the software), you are entitled to a free one hour, live web-based training session.</li><li><b>Training workshop</b><br />The GoldSim Technology Group puts on 2 and 3 day training workshops on the use of GoldSim.  This is an excellent way to quickly become an effective GoldSim modeler.  To view more information on our website regarding training workshops, click <a class="externallink" href="http://www.goldsim.com/Topic/32/" title="here" target="_blank">here</a>.<br /></li></ul><br />
<h3 class="separator">See Also<a class="headeranchor" id="See_Also_3" href="#See_Also_3" title="Link to this Section"></a></h3><a href="Knowledge Base.AllPages.aspx?Cat=General%20Interest%20" class="systemlink" title=" Other articles in General Interest Category"> Other articles in General Interest Category</a>
]]></description><pubDate>Fri, 22 Mar 2013 18:26:32 GMT</pubDate><guid isPermaLink="false">0244DECBB458F79E4C5A8289A3E2DA11</guid></item></channel></rss>