A Simple First-Model Using the Berkeley-Madonna Program

Similar documents
A Simple First-Model Using the Berkeley-Madonna Program

Graphing with Excel. Mr. Heinrich/Mr. Flock R.O.W.V.A. High School, Oneida, IL Physics 4B

Spreadsheet View and Basic Statistics Concepts

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Getting Started With Excel

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Using LoggerPro. Nothing is more terrible than to see ignorance in action. J. W. Goethe ( )

Microsoft Excel 2007 Lesson 7: Charts and Comments

Math 2524: Activity 1 (Using Excel) Fall 2002

ITS Training Class Charts and PivotTables Using Excel 2007

0 Graphical Analysis Use of Excel

PART 7. Formatting Pages

Physics 101, Lab 1: LINEAR KINEMATICS PREDICTION SHEET

Using Microsoft Word. Paragraph Formatting. Displaying Hidden Characters

Recipes4Success. Draw and Animate a Rocket Ship. Frames 5 - Drawing Tools

6.3. Applying Designs CHAPTER

MAKING TABLES WITH WORD BASIC INSTRUCTIONS. Setting the Page Orientation. Inserting the Basic Table. Daily Schedule

Chapter 10 Working with Graphs and Charts

Pre-Lab Excel Problem

How to use Excel Spreadsheets for Graphing

Microsoft Excel 2007 Creating a XY Scatter Chart

Three-Dimensional (Surface) Plots

SAAM II Version 2.1 Basic Tutorials. Working with Parameters Basic

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1

Excel Spreadsheets and Graphs

Websites Geogebra Homepage: Use the Webstart Version of Geogebra or download a stand alone version.

Geogebra Introductory Activity

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

Grapher 10 Ribbon Bar

The Mathcad Workspace 7

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

LABQUEST 2 DATA LOGGER

Introduction to GIS & Mapping: ArcGIS Desktop

Creating and Modifying Charts

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

Spreadsheet Concepts: Creating Charts in Microsoft Excel

Using the Customize Dialog Box

Intro To Excel Spreadsheet for use in Introductory Sciences

Section 33: Advanced Charts

BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7)

Better Histograms Using Excel. Michael R. Middleton School of Business and Management, University of San Francisco

EDIT202 Spreadsheet Lab Prep Sheet

v SMS 12.1 Tutorial GIS Requirements GIS Module Map Module ArcGis (Optional) Time minutes Prerequisites None Objectives

v Overview SMS Tutorials Prerequisites Requirements Time Objectives

Chapter 5. Inserting Objects. Highlights

Working with the Dope Sheet Editor to speed up animation and reverse time.

Welcome to Computers for ESL Students, 4th Edition

Put the Graphs for Each Health Plan on the Same Graph

Review the interactive to learn how to navigate and interact with slides in the PowerPoint window.

Get comfortable using computers

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

SciGraphica. Tutorial Manual - Tutorials 1and 2 Version 0.8.0

Introduction to Modeling with Simile

Microsoft Visio Working with Connectors

Introduction to SPSS

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

EPANET Tutorial. Project Setup Our first task is to create a new project in EPANET and make sure that certain default options are selected.

Getting Started with Word

SolidWorks 2½D Parts

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited EXCEL INTERMEDIATE

Graphical User Interface. GUI in MATLAB. Eng. Banan Ahmad Allaqta

Excel 2010: Getting Started with Excel

INTRODUCTION TO MATLAB INTERACTIVE GRAPHICS EXERCISES

Excel Level 1

Autodesk Inventor Design Exercise 2: F1 Team Challenge Car Developed by Tim Varner Synergis Technologies

Installing a Custom AutoCAD Toolbar (CUI interface)

EXCEL 2003 DISCLAIMER:

v SMS 12.2 Tutorial GIS Requirements GIS Module Map Module ArcGis (Optional) Time minutes Prerequisites None Objectives

Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001

Barchard Introduction to SPSS Marks

Logger Pro Resource Sheet

Click the buttons in the interactive below to learn how to navigate and interact with slides in the

Microsoft Excel 2000 Charts

Copyright 2016 The evsm Group, All Rights Reserved. Deny. Approve. Customer Incoming Demand. Create Technical Proposal. Qty=50. Create Review Package

Chapter 2 The Design Window

Learn the three palettes. Learn how data is passed in LabVIEW. Create a subvi using two different methods.

Patterning Math Lab 4a

Combining a Bar Graph with a Line Graph 1

Figure 1: My Blocks are blue in color, and they appear in the Custom palette in NXT-G.

Downloading, Installing, and Configuring Blackboard Drive

COMPUTER TECHNOLOGY SPREADSHEETS BASIC TERMINOLOGY. A workbook is the file Excel creates to store your data.

Tutorial 3: Using the Waveform Viewer Introduces the basics of using the waveform viewer. Read Tutorial SIMPLIS Tutorials SIMPLIS provide a range of t

2.1 Transforming Linear Functions

Creating a Histogram Creating a Histogram

Microsoft Word. Introduction

Getting Started with DADiSP

1 Introduction to Using Excel Spreadsheets

Tricking it Out: Tricks to personalize and customize your graphs.

3.1 System Dynamics Tool: Vensim PLE Tutorial 1. Introduction to Computational Science: Modeling and Simulation for the Sciences

Microsoft Excel 2007

2. Write Your Test Questions & Create Interactions Page 12

Creating a Basic Chart in Excel 2007

Activity 1 Creating a simple gradebook

VIEWZ 1.3 USER MANUAL

PART 7. Getting Started with Excel

Chapter 1: Introduction to the Microsoft Excel Spreadsheet

Microsoft Excel 2010 Tutorial

Fuselage and Sharks Tooth

Version 1.1. COPYRIGHT 1999 Tufts University and Vernier Software. ISBN (Windows) ISBN (Macintosh)

Creating a Box-and-Whisker Graph in Excel: Step One: Step Two:

Transcription:

A Simple First-Model Using the Berkeley-Madonna Program For this introduction, we will be creating a model of a simple system with two compartments analogous to containers of a liquid which can flow between the containers depending upon the difference in quantity in the two compartments: Assuming that you have downloaded and installed the Berkeley-Madonna program, startup the program (selecting the demo mode when asked). We will be creating a model using the graphical interface and so you can close the default equations view that appears when the program is started. Under the file menu, select New Flowchart. You should have a blank model like this:

First we will add the two compartments, called Reservoirs in the program. Select the reservoir tool at the top of the flowchart (third tool from the left) and click in the open space in the window roughly where you want the reservoir located. You can always drag it around later. Do this twice to create both reservoirs. Edit the reservoir names by right-clicking by the default name in the upper left of the reservoir. Change those names to A and B as shown in the model diagram above. Your flowchart should look something like this: Next we want to add the flow between the two compartments. Select the flow tool from the toolbar (looks like an arrow with a dot in the middle). Now click on reservoir A and drag over to reservoir B to add the flow. If you get the flow wrong (or any other diagram object), you can always select that object and push the del button at the end of the toolbar. Also rename that flow to Jab. Now your flowchart should look like this: Next we have to add flowchart objects that indicate what parts of the model influence the flow Jab. Select the Arc tool (curved arrow), click on reservoir A and then drag

over to the flow Jab. Again, select the Arc tool and draw an arc from reservoir B to flow Jab. Now your model should look like this: You can bend the arcs around by grabbing the little box that appears when the arc is selected. Now there are several question marks in the diagram that we will fix in a moment. Notice that the model equations above have a parameter called k. Enter that parameter into the model by selecting the globals toolbar item. Type in the entry k = 0.5 followed by the enter key. You should see that the parameter has appeared in the equation view on the left under {Globals}. Now return to the model flowchart, and double-click on the flow Jab. You want to edit the equation field at the bottom of this dialog box that appears. Notice that A and B are listed as Required inputs this is because you drew arcs from those two reservoirs indicating that they will be influences on the flow. Also shown is the Optional input of the parameter k. Enter the equation as shown in the figure at the start of this document. Make sure you use parentheses to force the subtraction operation to be done before the multiplication by k. Also, don t forget the * for multiplication. The dialog for Jab should now look like this:

Once you push Ok, the question mark in the flow should now have disappeared because you have fully specified the equation for that flow. The reservoirs still have question marks because their initial values have not been set. Double-click on each reservoir and set these initial values: A0 = 100, B0 = 20. Now your flowchart should look like this: The last item we need to set is the final time for the simulation. Often you can just go along with the default the program chooses, but let s set the final time. Look at the parameters for the run over on the right. Select the STOPTIME and change the value from 10 to 5. Push the Run button (or pick Run from under the Compute menu item). You should see a graph like this: Notice that the quantities for A and B are plotted with two separate vertical axes. At time zero, they start at the initial values as entered. By time = 5, they are both approaching a quantity of 60. This value should make sense to you given the equation used for the flow. Also note that conservation of the quantities is maintained: the sum of the initial A and B values is equal to the sum of the final values.

There are quite a few options for the graph, try out the toolbar items at the top of the plot. If you double-click by one of the plot axes, you can change the scales and axis labels, by first unchecking the Auto checkbox. Sometimes it is easier to view the results if you set the same scales for both variables A and B. Some of the other options for the graph: Select the fifth button from the left to add a legend to the graph that can be dragged around to somewhere convenient. Try the Line appearance button eight buttons from the left. If you want to see the raw data, pick the fourth button from the left. Pick the variables to be graphed by double-clicking in the middle of the graph. Ordinarily you would not put variables with different units (like compartment quantities and flow rates) on the same graph. Lastly, take a look at the equations that were automatically created by the program based on your flowchart. The entries should make sense to you based on your understanding of the compartment modeling process. Although the demo version of the program will not allow you to save your models, there are some things you can save for your reports. You can paste the model flowchart into a word processor by making the flowchart visible (pick the Flowchart tab at the top of the center window) and selecting Copy image from under the Flowchart menu item at the top. You can save graphs for adding to a report by making the graph visible and then selecting Save graph from under the File menu item. This will save the graph as a jpeg image file.

You can paste the set of equations into your report (or into an email) by dragging your mouse in the text view of the equations to select their text and then selecting Copy under the edit menu. Another useful tool is available from under the Parameters window as Define sliders Pick the parameter k and Add it to the sliders. Now go back to the graph and notice there is a slider at the bottom. Drag the slider back and forth: when you release the slider, the model will be re-run and new results displayed. This can be a good way to see the effect of the value of model parameters on the solution.