1 / 16

Modelica Training Workshop: Discrete Events and Large System Modeling

Join the Simulation Research Group at LBNL for a workshop on discrete events, large system modeling, and thermal-fluid systems. Learn best practices and how to propagate parameters and media packages effectively. Explore examples and common practices for building complex system models. Enhance your skills in Modelica simulation by following expert guidance. Don't miss this opportunity to excel in your modeling capabilities!

suzettet
Download Presentation

Modelica Training Workshop: Discrete Events and Large System Modeling

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Outline Part 1: Discrete Events and Hybrid Systems Part 2: Best Practice 2.2 Build Large System Models 2.3 Propagating Parameters and Media Packages Workshop Website: https://simulationresearch.lbl.gov/modelica/WorkShops/2012-05-07-lbnl

  3. Exercise 1 • model ifwhen • Real x; • Real y; • Real z; • equation • x = time; • when x >5 then • y = x + 1; • end when; • if x > 5 then • z = x + 1; • else • z = 0; • end if; • end ifwhen;

  4. Part 2: Buildings Library 2. Best Practice (Continued) 2.2 Build Large System Models 2.3 Propagating Parameters and Media Packages 2.4 Thermal-fluid systems

  5. 2.2 Build Large System Models How to solve not well-posted or over-specified problem when building a large complex system • Split the large system into small independent components • Test the small component with well controlled conditions. • Example: • Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples • KMinusU • Calculated with equations • RequestCounter • Uses algorithm • Commands->Simulate and plot

  6. 2.3 Propagating Parameters and Media Packages Always define the value of common parameter at the top level of the model Bad Practice Good Practice

  7. 2.3 Propagating Parameters and Media Packages Always define the value of common media package at the top level of the model Top System Model Sub-system Model that uses Sensor model Sensor Model

  8. 2.3 Propagating Parameters and Media Packages Common parameters: Nominal flow rate for air loop, chilled water loop and condenser water loop Common media packages: Air, Chilled water, Condenser water Chiller plant with water-size economizer

  9. 2.3 Propagating Parameters and Media Packages Find where these parameters and Medium packages are used: Nominal Flow Conditions: air loop: mAir_flow_nominal chilled water loop: mCHW_flow_nominal condenser water loop: mCW_flow_nominal Common media packages: Air: MediumAir Chilled water: MediumCHW Condenser water: MediumCW

  10. 2.3 Propagating Parameters and Media Packages Find the path of propagating (e.g. Heat Exchanger): 1. System model m1_flow_nominal=mCW_flow_nominal, 2. Buildings.Fluid.HeatExchangers.ConstantEffectiveness m1_flow_nominal 3. Buildings.Fluid.HeatExchangers.BaseClasses.PartialEffectiveness m1_flow_nominal 4. Buildings.Fluid.Interfaces.StaticFourPortHeatMassExchanger 5. Buildings.Fluid.Interfaces.PartialFourPortInterface

  11. 2.3 Thermal-fluid System Source and Boundary Condition

  12. 2.3 Thermal-fluid System Source and Boundary Condition • Step 1 • Modelica.Fluid.Sources.MassFlowSource_T, • Buildings.Fluid.MixingVolumes.MixingVolume • Buildings.Fluid.Sources.FixedBoundary, • Step 2 • Define the parameters • Step 3 • Check the grammar • Compile and run simulation (need license)

  13. 2.3 Thermal-fluid System Model Fluid Junction Correct Wrong

  14. 2.3 Thermal-fluid System Thermal Expansion of Water

  15. 2.3 Thermal-fluid System Thermal Expansion of Water Expansion Vessel Fixed Pressure BC

  16. 2.3 Thermal-fluid System Nominal Values • Parameters for the nominal operating conditions. • Value set to component typically have if they are run at full load or design conditions

More Related