Modelica Training Workshop Exercises and Guides

modelica training workshop 3 l.w
1 / 15
Embed
Share

Explore Modelica Training Workshop exercises covering block diagram calculations, oscillator modeling, simulation guides, and Buildings Library usage. Enhance your skills in modeling and simulation with practical examples and step-by-step instructions.

  • Modelica
  • Training
  • Workshop
  • Simulation
  • Exercises

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Modelica Training Workshop 3 Wangda Zuo, Michael Wetter Simulation Research Group Energy and Environmental Technologies Division Lawrence Berkeley National Laboratory, USA 5/14/2012

  2. Outline 1. Language: Connectors, Components, Connection 2. Usage of Buildings Library - Download Buildings library - Things to start with 2

  3. Exercise 1 Use block diagram to calculate cos(sin(t) + 2 ) 3

  4. Exercise 2 Spring.srel0=2 mass.L=1 mass.s(start=3.5) Fix.s0=1 4

  5. Guides for Exercise 2 1. Create a new top-level model Oscillator 2. Save the model: - File->Save - Ctrl + S 5

  6. Guides for Exercise 2 3. Find component models and set parameters: Modelica.Mechanics.Translational.Components.Fixed S0=1.0 Modelica.Mechanics.Translational. Components.Spring s_rel=2, c=10000 Modelica.Mechanics.Translational.Components.Mass m=1, L=1, s(start=3.5) Spring.srel0=2 mass.L=1 4. Connect 5. Check grammar mass.s(start=3.5) Fix.s0=1 6

  7. Guides for Exercise 2 6. Run the simulation tstop = 1.0s 7. Plot the Results: - Absolute position of mass center: mass.s - Velocity of mass: mass.v Spring.srel0=2 mass.L=1 What you find? mass.s(start=3.5) Fix.s0=1 7

  8. Guides for Exercise 2 8. Change parameters and re-run the simulation -Mass.s.start=4.5 -Mass.m = 10 -tstop = 100 9. Change the connection direction, see what happens. Note: You need to read the definition of parameters carefully! 10. Compare the result of two simulations 8

  9. Part 2: Usage of Buildings Library 9

  10. Open Buildings Library 1. Download the newest version 1.1 Build1 (2012-02-29) http://simulationresearch.lbl.gov/modelica/Download 2. Unzip 3. Open the library - Windows: Double click package.mo - Linux: dymola package.mo 10

  11. Modelica Buildings Library Buildings Heat Transfer Boundary Conditions Airflow Controls Fluid Media Room Utilities Mixed Air, Constructions Multizone Continuous, Discrete, Set Point Constant Property Liquid Water, Gases PT Decoupled, Gases Constant Density, Ideal Gases Perfect Gases Conductor, Convection, Radiosity, Sources, Windows Construction Sky Actuators, Boilers, Chillers, Delays, Fixed Resistance, Heat Exchanger, Mass Exchanger, Mixing Volumes, Movers, Sensors, Sources, Storages Comfort, Diagnostics, IO, Math, Psychrometrics, Reports Temperature, Solar Geometry, Solar Irradiation, Weather Data 200+ HVAC Models and Functions, Open Source and Freely available at http://simulationresearch.lbl.gov/modelica 11

  12. File Structures To view the files: 1. Browse it in Dymola 2. Browse the file system in OS and open the .mo file in text editor 12

  13. Things to start with - Know where the component models are Exercise: Find the - Stratified tank - Weather reader - Carnot chiller 13

  14. Things to start with - Make good use of the documentation Exercise: What is the difference of different chiller models 14

  15. Things to start with - Learn from examples How to use the component How to build a large system. Chiller plant 15

Related


More Related Content