Location: LBNL, Building 90, Room 3122

Date: Friday June 3, 2016, and Monday June 13, 2016.

## Friday June 3

 Part 0: Logistics (10-10:30am) Review Agenda (10 minutes) Goal Be able to navigate Dymola, build your own model, incorporate libraries, understand capabilities Explain mix of guided/self-guided (can take breaks whenever want during self-guided) Setup (20 minutes) Get Dymola loaded and open with buildings library on everyone’s computer Part 1: Navigating Dymola (10:30am-11:45am) Explore Modeling interface (20 minutes) Left Menu: Packages: view what you’ve already loaded. Scroll to `Modelica.Thermal.HeatTransfer.Examples.TwoMasses` Double click on each element to see what there is. Use top right menu bar options to change view. See equations. See info, use arrows to go up/down in hierarchy Test: can everyone get the equations page showing for mass2? Note that you didn’t have to isolate the dependent variable on the left hand side. Running simulation: (20 minutes) Go to simulation tab Press simulate On left will be things you can display. Figure out how to plot temperatures of both masses as a function of time. Figure out how to change the capacity of mass 1 to 100, and what its temperature is at time 1 by resimulating the model. Right click on plot window. Change units to milliseconds Right click to show the results in a table window. Right click in the variable browser on the model name to export results to file. Try yourself: (30 minutes) Open `Modelica.Electrical.Analog.Examples.ShowVariableResistor`. Open the parameter windows of the components and open the components. Simulate example. Plot various variables of interest. Lunch (11:45-12:45) Part 2: Make your own model (12:45-4:00) Questions from the morning (10 min) Discuss how to create a new model (15 min) How this fits in with packages and libraries. Where things are stored Making your own model (1 hr): Create a wind turbine that takes as input the wind speed and computes the generated power. Vectorize your turbine to create a wind turbine farm. Build your own larger model: boiler (1.5 hr) Follow instructions at: http://simulationresearch.lbl.gov/modelica/releases/latest/help/Buildings_Examples_Tutorial_Boiler.html Part 3: Wrap up (4-4:30) Questions from afternoon (10 min) Resources (10 min) Plan for the next half-day (10 min) Goal You go home and try to use Modelica for your own purposes. We will not have a planned agenda. This will be like "office hours" where you can bring your own model and questions. We will use the time to debug, enhance and explore models and functionalities of Modelica.

## Monday June 13, 2016

 Part 4: Question, answer and hands-on training (1:00-4:00) Bring your own model and questions. This time will be used to debug models and answer questions.

## Pre-requisites

Prior to the workshop, install Dymola 2016 FD01 and the Modelica Buildings library as described below.

### Dymola 2016 FD01

#### Windows

Install Dymola 2016 FD01 trial version from Dassault. The instructions to access the non-trial license for the training will be sent by email.

Install a C/C++ compiler such as Microsoft Visual Studio Express 2013 from Microsoft.

#### Linux

To install the Linux 64 bit version of Dymola, proceed as follows:

1. Register at the link at Dassault.

### Modelica Buildings library

To install the Buildings library version 3.0,

2. unzip the file, and to test the installation after you updated the license as described in the email,
3. open with Dymola the file `Buildings 3.0.0/package.mo`,
4. open the model `Buildings.Examples.Tutorial.SpaceCooling.System3`, and
5. select from the pull-down menu ‘‘Commands->Simulate and plot’’. This will simulate the model and generate a plot.

### Notes

Some users had the error message ‘‘Error connecting to Dymola license server’’ when they were connected to VPN. If this is the case,

1. disconnect from vpn, and
2. in Dymola, enter the port number 27000 under ‘‘Help -> License -> Setup -> Port (optional).’’.

For the server name, please see the email as we are not allowed to share it publicly.

#### Failed compilation on Windows

Some users could not compile and simulate the example. If this is the case, try to adjust the path to your compiler under ‘‘Simulation-> Setup -> Compiler’’.

## Site access

The workshop will be held onsite at LBNL, in building 90, room 3122.

All attendees will automatically be added to the LBNL security access list if they have registered for this workshop. We can only accommodate 15 registrants.

### Berkeley Lab shuttle service

The Blue Route Shuttle takes you directly to building 90.

The Berkeley Lab Blue Route shuttle runs frequently from the Downtown Berkeley BART station to the lab (Uphill). It picks up passengers from various stops in downtown Berkeley. For locations, please refer to http://www2.lbl.gov/Workplace/Facilities/Support/Busses/off-site_blue.html#sched.

Note that the lab shuttle stop closest to BART is located at the corner of Addison Street and Shattuck Avenue, on the same side as (and next to) the Bank of America.

The shuttle stops will all be marked with the Berkeley Lab shuttle bus sign.

A site Map to the location is at http://www2.lbl.gov/Workplace/lab-site-map.html.

An interactive map to the location is at http://map.lbl.gov/#UMAP_2012091840117%7CBLD_2012092167088.

For detailed information including schedules, please see LBNL Shuttle Service at http://www2.lbl.gov/Workplace/Facilities/Support/Busses/off-site_blue.html#sched, or http://www.nextbus.com/#!/lbl/blue/up/bart.

Important: You are required to show a Shuttle Pass, along with a government issued photo ID (Drivers License or Passport) in order to access the lab.