Lesson 8 - Specifying Simulation Settings and Running the Model (2024)

This website uses cookies to ensure you get the best experience on our website. Learn more

Courses: Introduction to GoldSim:

Now that we have built the model, we are almost ready to run it. The last thing we need to do is specify how we want the model to be run. In particular, we need to specify how long we wish to run the model for, and what thetimestepshould be. We do this by defining thesimulation settings.

  1. Open the Simulation Settings dialog by pressingF2. You can also open the Simulation Settings dialog by choosingRun | Simulation Settingsfrom the main menu bar, or by pressing Simulation Setting button in the toolbar:
    Lesson 8 - Specifying Simulation Settings and Running the Model (1)
    The dialog looks like this:
    Lesson 8 - Specifying Simulation Settings and Running the Model (2)
  2. The first thing we need to do is specify theDurationof the simulation. We said that we wanted to predict the water volume over the next several days. So let’s set theDurationto 72 hours (abbreviated as hr).
  3. In order to simulate how a system might evolve over time in a program like GoldSim, it is necessary to discretize time into discrete intervals referred to astimesteps. GoldSim then “steps through time” by carrying out calculations every timestep, with the values at the current timestep often computed as a function of the values at the previous timestep. The appropriate timestep length is a function of how rapidly the system represented by your model is changing: the more rapidly it is changing, the shorter the timestep required to accurately model the system. We will discuss this in more detail in a subsequent Unit. For now let’s use a timestep of 15 minutes. So for theBasic Step, enter 15 minutes (abbreviated as min).
    Once you make these changes, the dialog should look like this:
    Lesson 8 - Specifying Simulation Settings and Running the Model (3)
  4. Close the dialog by pressing theOKbutton.

Let's now run the model that simulates the tank filling up (and leaking).

  1. PressF5or press the Run button on the toolbar:
    Lesson 8 - Specifying Simulation Settings and Running the Model (4)
    GoldSim first checks to make sure the model is ready to run a simulation and if everything is OK, the model then immediately starts running. When the simulation finishes running, a “Simulation Complete!” message is displayed. (For this simple model, this takes a fraction of a second).
  2. ClickOKto close the message. The model is now inResult Mode(up until this point, it was inEdit Mode). Note that when a model is in Result Mode, GoldSim prevents you from making changes to the model that could invalidate the results (e.g., changing the structure of the model, or changing input values).

If you look at the graphics pane, you will note that all of the elements now display a small green box on the lower right-hand side of the element:

Lesson 8 - Specifying Simulation Settings and Running the Model (5)

These are referred to asoutput ports. (You don’t need to worry about them for now, but they will be discussed in detail in a subsequent Unit.)

Register for the GoldSim User Conference: Seattle (USA), 9-11 September 2024 Learn more.

Lesson 8 - Specifying Simulation Settings and Running the Model (2024)
Top Articles
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 6644

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.