Loading...
HomeMy WebLinkAboutOASIS Enterprise Tutorial Part 2 - InputOASIS Enterprise Tutorial -Part 2: Input Additional notes can be found below slides OASIS Input Data There are three types of input data in an OASIS model: 1.Timeseries data 2.Operations Control Language (OCL) code 3.Static data This section will review how to access these inputs in the model. Start again at the “Find Runs” tab (previously discussed in OASIS Tutorial Part 1 –Overview) 3 Find the Simbase Run –from the first dropdown menu, choose “General, Name” 4 In the field, type “simbase” and click search 5 Select the run by clicking anywhere in the row 6 First, lets find some inflow timeseries data; with the Simbase run selected, click the “Find Data in Run” button 7 This window allows you to find any data contained in the run; click the “+” to add a field to the query From the dropdown menu select Type is “OCL Time Series” and click Search Data. Then add another query field. In the next query field choose Name contains “inflow” and then click “Search Data” A list of inflow timeseries in the run will appear. Select a single timeseries and click the “Plot Window” button The plot window that opens will show the tabular daily inflow data, as well as a plot of the timeseries After closing the Plot window, return to the Find Runs window Let’s take a look at OCL. With the Simbase run selected, click on the Main OCL button Main.ocl is the starting point for all models. It includes commands for calling other OCL files and other model components. To open an OCL file, you can Ctrl+Left Click on the file name. Let’s open Beech_Mtn_Ops.ocl This file contains a simple operation for setting the minimum release from Buckeye Lake, conditioned based on the reservoir storage and the time of year Comments can be added to an OCL file either by bracketing text in /* */ for multiple lines, or by prefacing the comment with // for single lines OCL Code Let’s find some static data; go back to the Find Data table. Delete the “Name Contains” field by clicking the “-” button Change “Type Is” field to OCL Lookup and click search In this model, Lookup tables are used to compute monthly wastewater discharges associated with demand nodes. Click on a lookup and open in a Plot Window The window will show the monthly variation in discharges as a fraction of raw water demand, and can be edited here Next, to see how this Lookup table is used, go to the Find Runs tab, click Simbase, and the Setup Window All OCL files can also be viewed from the Setup window; click on the “Input Data” tab, click “Return_flows.ocl” in the OCL Codes section, and click the “Text Editor Button” In this window it shows the syntax for referring to a lookup table and multiplying it by the delivery for the associated demand node Close the window and go back to the Setup window The other place to view Input data is from the schematic; from the Run tab, click the schematic button and select “Open default schematic” In the schematic, double click on the red demand node for Beech Mtn In the window that opens, click on the green icon that appears when you hover over the “Time Pattern” item The seasonal demand pattern will appear in a Plot Window for viewing and modifying OASIS can also tell you the differences between runs that have been created; let’s go back to the Find Runs tab and delete (“-”) the “Name Contains Field” Search for all runs associated with your username; select both runs and click the Multi Run button Click the “Open run difference” button The window that opens will highlight the change in demand that was made when creating the “Alternative 1” run (refer to OASIS Tutorial Part 1 –Overview) With the Multi Run Window still open, go to the Run tab and click Execute; note that you now have the option to execute both runs simultaneously Select All runs, and choose to allow 2 runs in parallel; if executed both runs will now process at the same time That’s all for input. In the next section we will learn about viewing and customizing output from the model