Software-Entwicklungswerkzeuge

Similar documents
Software-Entwicklungswerkzeuge. Modelica Overview. Contents. 1. Modelica Introduction. 2. Modelica Users View. 3. Modelica Libraries

Modelica. Language, Libraries, Tools, Workshop and EU-Project RealSim

Modeling Technical Systems [ ] Mag MA MA Schweiger Gerald TU Graz Spring 2017

Dymola Dynamic Modeling Laboratory

Modelica. Language, Libraries, Tools, and Conferences

Rotational3D Efficient modelling of 3D effects in rotational mechanics

Proceedings of the 4th International Modelica Conference, Hamburg, March 7-8, 2005, Gerhard Schmitz (editor)

Physical Modelling with Simscape

CUSTOMIZED TEACHER ASSESSMENT BLUEPRINT. Test Code: 5936 Version: 01

SimulationX The Powerful Simulation Software Package for the Future

Scicos/Modelica for modeling and simulation

Dymola Dynamic Modeling Laboratory

Sensor Accuracy in Vehicle Safety

Industrial Training Zone (ITZ) eseries Courses

MapleSim User's Guide

Simulation-based development of automotive control software with Modelica

MathWorks Technology Session at GE Physical System Modeling with Simulink / Simscape

ESI ITI Academy. Courses and Contents

Modelling of Hybrid Electric Vehicle Components in Modelica. And Comparison with Simulink THESIS

Simulation of Piping 3D Designs Powered by Modelica

An Easy-to-use Generic Model Configurator for Models in Multiple Tool Formats

car=1700 FS gear=13.5 Wind: cw=0.33 AutoGear ThrottlePos JMotorPump=0.28 TS Jturbine=0.034 TS 1 Engine converter ECU ControlBox

Variable Structure Modeling for Vehicle Refrigeration Applications

Robust and computationally efficient dynamic simulation of ORC systems: the thermocycle Modelica library

Tutorial Two Built in Mesh

Co-Simulation von Flownex und ANSYS CFX am Beispiel einer Verdrängermaschine

Simscape User s Guide. R2014a

Anticipatory Shifting Optimization of a Transmission Control Unit for an Automatic Transmission through Advanced Driver Assistance Systems

Quick Start Training Guide

EVAL6235PD. L6235 three-phase brushless DC motor driver demonstration board. Features. Description

Towards Unified System Modeling with the ModelicaML UML Profile

PATENT PENDING RABBIT EARS THERMOELECTRIC GENERATOR

Modelica Environments and OpenModelica

Design optimisation of industrial robots using the Modelica multi-physics modeling language

Model Based Design and System Simulation with SimulationX and Tool Integration with optislang

Proceedings of the 4th International Modelica Conference, Hamburg, March 7-8, 2005, Gerhard Schmitz (editor)

System Level Cooling, Fatigue, and Durability. Co-Simulation. Stuart A. Walker, Ph.D.

Vom Konzept zum Modell physikalischer Systeme Smarter Modellieren mit Simscape

Manipulation and Fluid Power. October 07, 2008

Introduction to Physical Modelling Rory Adams Senior Application Engineer

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

ILA1F572PB1A0 integrated drive ILA with servo motor V - CANopen - PCB connector

Electronic SD1, AS 8, ASR 14, ASR 20

Advanced Systems Technology Program

MECHATRONICS. William Bolton. Sixth Edition ELECTRONIC CONTROL SYSTEMS ENGINEERING IN MECHANICAL AND ELECTRICAL PEARSON

High-Fidelity Transmission Simulation for Hardware-in-the-Loop Applications

Real Time Simulation of Complex Automatic Transmission Models. Marius Băţăuş, Andrei Maciac, Mircea Oprean, Nicolae Vasiliu

ATV61HC31Y variable speed drive ATV61-310kW - 690V - without EMC filter

SPIRIT. Phase 5 Analog Board Computer and Electronics Engineering

Introducing the first PATENT PENDING solid state selfregulating

Modeling, Simulation and Analysis of Integrated Building Energy and Control Systems. Michael Wetter. October 8, 2009

ATV61HU55M3 ATV61 5,5 kw 7,5HP 240V single phase EMC IP20

FET 2018 FACT SHEET FIELD OF STUDY: MECHANICAL ENGINEERING. National Certificate: N1 Engineering Studies (Motor Mechanic)

Wolfram SystemModeler. Getting Started

ATV32HU75N4 variable speed drive ATV kw V - 3 phase - with heat sink

Hardware-in-the-Loop and Real-Time Testing Techniques

Advanced Modelica Tutorial Exercises

Large scale physics simulations in industrial vehicle simulators

Femap Thermal & Flow V11

output devices. connected to the controller. data communications link. relay systems. user program. MECH1500Quiz1ReviewVersion2 Name: Class: Date:

Ben Zandi, Ph.D. TES International LLC

ATV310H075N4E variable speed drive ATV kw - 1 hp V - 3 phase

Applications of ICFD solver by LS-DYNA in Automotive Fields to Solve Fluid-Solid-Interaction (FSI) Problems

Digital electropneumatic Positioner for the integrated mounting on process control valves

ATV310HU30N4E variable speed drive ATV310-3 kw - 4 hp V - 3 phase

TU Berlin - ECUST Shanghai Module Catalogue

Model Library Mechanics

Introduction to C omputational F luid Dynamics. D. Murrin

ONE DIMENSIONAL (1D) SIMULATION TOOL: GT-POWER

DaVE. Real-time capable visualization and simulation of thermal systems

Model-Based Dynamic Optimization with OpenModelica and CasADi

FET 2018 FACT SHEET FIELD OF STUDY: MECHANICAL ENGINEERING. National Certificate: N1 Engineering Studies (Fitter and Turner/Toolmaker)

Experiment 4.A. Speed and Position Control. ECEN 2270 Electronics Design Laboratory 1

ATV61HC11N4 SPEED DRIVE 150 HP 460 V ATV61

ATV12HU22M3 variable speed drive ATV12-2.2kW - 3hp V - 3ph - with heat sink

TECHNICAL PRODUCT DATASHEET

ATV71QC16N4 variable speed drive ATV71Q - 160kW / 250HP V - IP20

Proposal for standardization of Heat Transfer Modelling in NewThermal Library

Laboratory of Sensors Engineering Sciences 9 CFU

Comparison of Classic and Finned Piston Reciprocating Linear Air Compressor Using COMSOL Multiphysics

Model Based Systems Engineering Engine Control: from concept to validation. Jan Smolders Technical Account Manager

From versatile analysis methods to interactive simulation with a motion platform based on SimulationX and FMI

ATV32HU11M2437 variable speed drive ATV32-1.1kW 200V - 1P - Bluetooth built-in - w heat sink

Recent applications of overset mesh technology in SC/Tetra

CFD in COMSOL Multiphysics

ATV1200A kv kva

ATV1200A kv kva. Phase-shifting transformer Medium voltage arrestors Cooling fans Human machine interface Plinth (2) Power cells (9)

ATV1200A kv kva

Abaqus Technology Brief. Two-Pass Rolling Simulation

Automated Modelica Package Generation of Parameterized Multibody Systems in CATIA

MID approval no. DE-08-MI004-PTB004 Date of release

A Modelica Library for Scalable Modelling of Aircraft Environmental Control Systems

LM903 Fluid Level Detector

Thermal DC-DC Control System TEC Series

ATV12H018M2 variable speed drive ATV kW hp V - 1ph

POTENTIAL AND BENEFITS OF FUNCTIONAL MOCK-UP INTERFACE - FMI FOR VIRTUAL VEHICLE INTEGRATION

ATV61QC31N4 variable speed drive ATV61Q - 315kW / 500HP V - IP20

Vehicle thermal safety with THESEUS-FE. Author: Dr. Daniel Koester

Important Safety Notice

Drives Motors and PLCs

Transcription:

Software-Entwicklungswerkzeuge Kapitel 41: Werkzeuge zur Simulation dynamischer Systeme Prof. Uwe Aßmann Softwaretechnologie TU Dresden Version 0.1, WS 09/10, 1/16/10

Modelica Overview by Martin Otter Abstract: This slide set gives an overview about the Modelica language, including users view, libraries and a sketch of the language elements. Copyright 2005-2009, Martin Otter. This material is provided "as is" without any warranty. It is licensed under the CC-BY-SA (Creative Commons Attribution-Sharealike 3.0 Unported) License, see next slide and http://creativecommons.org/licenses/by-sa/3.0/legalcode Modelica is a registered trademark of the Modelica Association

License This slide set is provided "as is" without any warranty. It is licensed under the CC-BY-SA (Creative Commons Attribution-Sharealike 3.0 Unported) License (= the license used by Wikipedia). Human-readable summary of the license text: You are free: to Share to copy, distribute and transmit the work, and to Remix to adapt the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work.) Share Alike If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. The legal license text and disclaimer is available from here: http://creativecommons.org/licenses/by-sa/3.0/legalcode Revisions: 2009-07-17 Martin Otter (DLR-RM and Chairman of Modelica Association): First version, based on material from courses given at Technical University of Munich. 2010-01-16 Used in Course Software-Entwicklungswerkzeuge Prof. U. Aßmann, TU Dresden Modelica Overview, Slide 3

Contents 1. Modelica Introduction 2. Modelica Users View 3. Modelica Libraries 4. Modelica Language Elements Modelica Overview, Slide 4

1. Modelica Introduction Goal of Modelica: Modeling the dynamic behavior of technical systems consisting of components from, e.g., mechanical, electrical, thermal, hydraulic, pneumatic, fluid, control and other domains in a convenient way. Models are described by differential, algebraic, and discrete equations. No description by partial differential equations, i.e., no FEM (finite element method) and no CFD (computational fluid dynamics), but using results of, e.g., FEM programs. Modelica is used in industry since year 2000. Modelica Overview, Slide 5

Example: detailed vehicle model Vehicle dynamics (3-dim. mechanics) Drive trains (1-dim. mechanics) courtesy: Modelon AB Hydraulics Combustion Air Conditioning (Thermofluid systems) Electrical/electronic systems Electrical machines courtesy Modelon AB Hierarchical state machines Control (Input/output blocks,...) Modelica Overview, Slide 6

Modelica Language und Simulation-Environments Graphical editor for Modelica models Modelica simulation environment (free or commercial) Textual description on file (equations, "schematic", animation) Free Modelica language Translation of Modelica models in C-Code, Simulation, and interactive scripting (plot, freq. resp.,...) Modelica Simulationenvironment (free or commercial) Modelica Overview, Slide 7

Commercial Modelica Simulation Environments (alphabetical list) CATIA Systems from Dassault Systèmes (based on Dymola kernel with PLM integration) Dymola from Dynasim AB, Sweden (Dynasim was acquired by Dassault Systèmes in 2006). LMS Imagine.Lab AMESim from LMS International MapleSim from MapleSoft, Canada. MathModelica from MathCore AB, Sweden. SimulationX from ITI GmbH, Dresden, Germany. Free Modelica Simulation Environments (alphabetical list) OpenModelica from Linköping University, Sweden (under development; subset of Modelica is available) SCICOS from INRIA, France (under development; subset of Modelica is available). An up-to-date list of Modelica tools is available from www.modelica.org/tools Modelica Overview, Slide 8

Modelica Association Modelica is a free language and is developed by the (non-profit) Modelica Association since 1996 2000: First applications... 2005: Modelica 2.2 2007: Modelica 3.0 2009: Modelica 3.1 (actual) Develops also the largest, free library for multi-domain models (Modelica Standard Library) 62nd Design Meeting in Lund, May 2009 (after release of Modelica 3.1) 80 "individual" and 11 "organizational members" (interested in "active" individual members; Therefore requirement: participation at 2 Modelica Design Meetings in the last 12 months). 6 International Modelica Conferences (Modelica'2008 with 250 participants) All infos under http://www.modelica.org (Specification, simulation environments, free libraries, 300 papers,...) Modelica Overview, Slide 9

2. Modelica Users View Schematics Component/device Connection Connector Each Icon represents a physical component. (electrical resistance, mechanical device, pump,...) A connection line represents the actual physical coupling (wire, fluid flow, heat flow,...) A component consists of connected sub-components (= hierarchical structure) and/or is described by equations. By symbolic algorithms, the high level Modelica description is transformed into a set of explicit differential equations: Modelica Overview, Slide 10

Example: Industrial Robots (from Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.fullRobot) model Resistor extends OnePort; parameter Real R; equation v = R*i; end Resistor; 1000 non-trivial algebraic equations, 80 states. Faster as real-time on slow PC. Modelica Overview, Slide 11

Example: Hardware-in-the-Loop Simulation of automatic gear boxes (different vehicle manufacturers) Electronic Control Unit (Hardware) desired pressure (Simulation) + driver + engine + 1D vehicle dynamics Modelica Overview, Slide 12

3. Modelica Libraries Library Modelica is the Modelica Standard Library which is developed from the Modelica Association. It is freely available in source code and can be modified and used in commercial programs. Every 6.. 12 months a new version is released. It is developed since 1998. Newest version 3.0.1 from Jan. 2009: 780 generic models 550 functions 1450 packages (mostly media definitions) A new version 3.1 will be released in August 2009. Modelica Overview, Slide 13

Library Modelica: Electrical and Thermal Libraries Analog electric and electronic components, such as resistor, capacitor, transformers, diodes, transistors, transmission lines, switches, sources, sensors. Digital electrical components based on the VHDL standard, like basic logic blocks with 9-valued logic, delays, gates, sources, converters between 2-, 3-, 4-, and 9-valued logic. Electrical machines (uncontrolled asynchronous-, synchronous-, DC-machines) Simple thermo-fluid pipe flow, especially to model cooling of machines with air or water (pipes, pumps, valves, ambient, sensors, sources) and lumped heat transfer with heat capacitors, thermal conductors, convection, body radiation, sources and sensors. Modelica Overview, Slide 14

Library Modelica: Media and Mechanical Libraries density as function of pressure and enthalpy for water Large media library with - 1240 gases and mixtures between these gases. - table based media (h = h(t), etc.) - high precision model for water (IF97) - moist air. 1-dim. mechanical systems, e.g., drive trains, planetary gears, convenient definition of speed/torque dependent friction (clutches, brakes, bearings,..) 3-dim. mechanical systems consisting of joints, bodies, force and sensor elements. Joints can be driven by drive trains defined by 1-dim. mechanical system library. Modelica Overview, Slide 15

Library Modelica: Control and Script Libraries Continuous and discrete input/output blocks, e.g., PI, PID, transfer function, state space, filter, logical, non-linear, routing, table source blocks Hierarchical state machines with same modeling power as Statecharts. Modelica is used as synchronous action language, i.e. deterministic behavior is guaranteed (not the case for Statecharts) Logical blocks such as "and, or, edge, timer, ",... A = [1,2,3; 3,4,5; 2,1,4]; b = {10,22,12}; x = Matrices.solve(A,b); Matrices.eigenValues(A); Functions on matrices, such as for solving linear systems, eigen and singular values etc., and functions operating on strings, streams, files, e.g., to copy and remove a file or sort a vector of strings. Modelica Overview, Slide 16

Library Modelica: Sublibraries that will be added in 3.1 Electro-magnetic devices with lumped magnetic networks. E.g. flux tubes, magnetic sources and sensors, magnetic materials. General library for fluid pipe flow for all media of Modelica.Media one and multiple substances one and multiple (homogenous) phases incompressible and compressible Modelica Overview, Slide 17

More free libraries under www.modelica.org/libraries Modelica Overview, Slide 18

Quickly growing number of commercial libraries. Small selection: SmartElectricDrives (ATI, Austria) Controlled electrical machines with quasi-stationary and transient models, e.g., controllers (voltage/frequency, field-oriented, speed/position), power electronics (AD/DC, DC/AC, DC/DC converters, PWM), energy storages (batteries, supercaps, fuel cells),... Hydraulic/Pneumatic Libraries (Modelon AB, Sweden) Libraries to model pipe networks for oil and air. Contain all important standard components like pumps, valves, volumes, lines, sensors PowerTrain (DLR-RM, Germany) Library to model vehicle power trains and all type of planetary gearboxes. E.g. standard and planetary gears with losses, clutches with friction, flexible driveline models, automatic gearboxes, optional 3D effects (mounting on vehicle) Modelica Overview, Slide 19

4. Modelica Language Elements Example: Definition of Capacitor Modelica Overview, Slide 20

Example: Hierarchical Modelica Model textual representation Class name model MotorDrive PI controller; Ramp ramp; Motor motor; graphical representation Gearbox gear(ratio = 100); Inertia inertia(j = 10); SpeedSensor tacho; equation Modifier Instance name connect(controller.y, motor.i_ref); connect(motor.flange, gearbox.flange_a); connect(gearbox.flange_b, inertia.flange_a); connect(inertia.flange_b, tacho.flange); connect(tacho.w, controller.u_m); connect(ramp.y, controller.u_r); end MotorDrive; Connector Modelica Overview, Slide 21

Many pre-defined connectors, e.g.: input/output signals electrical pins electrical plugs (multi-phase networks) VHDL digital input/output signals 3-dim. mechanical frame 1-dim. rotational mechanical flange 1-dim. translational mechanical flange 1-dim. heat transfer fluid port (for all media from Modelica.Media) signal bus Modelica Overview, Slide 22

Different types of variables in a connector definition Category Example Explanation input/output variable input Real u Connected variables are identical; block diagram connection restrictions potential variable Real v; Connected variables are identical flow variable flow Real i; Sum of the connected variables is zero stream variable stream Real h; Describes bi-directional flow of matter (more complicated definition) overdetermined variable set signal bus explandable connector Bus end Bus; Redundant set of variables with constraint equations, e.g., orientation matrix, dq0 transformation (more complicated def.) Content defined by signals connected to the connector. Modelica Overview, Slide 23

Other Language Elements Mathematical notation for matrices and arrays Arrays not only from numbers but also from models (e.g. arrays of resistors). Replaceable submodels, e.g., to change quickly between different versions of a transmission in a vehicle system model. Language elements to define conveniently discontinuous and variable structure systems, e.g., to model friction or ideal switches. Mathematical functions with varying number of input/output arguments. The procedural part of Modelica is used as scripting language. Convenient calling of C, Fortran, and Java functions within Modelica. Powerful library concept (Modelica tool has enough information to find model in the file system automatically, version handling, transformations between versions,...). Modelica Overview, Slide 24