Modelica Presentation

Embed Size (px)

Citation preview

  • 7/29/2019 Modelica Presentation

    1/38

    3/18/13

    o e ca pen ourceModeling & Simulation

    Language

    Ali BOYALI (PhD)

    Mechanical Engineer

  • 7/29/2019 Modelica Presentation

    2/38

    3/18/13

    o e ca pen ourceModeling & Simulation

    LanguageOutline

    1- Modeling and Simulation Concepts

    2- Modelica Modeling & SimulationLanguage

    3- Modelica Libraries & Applications

    4- Modelica Association & Conclusion

  • 7/29/2019 Modelica Presentation

    3/38

    3/18/13

    Modeling and Simulation

    The aim is to

    - Manage complexity of the systems

    - Simulate system behavior, assess safety, performance andoptimize system before it is constructed.

    - Build virtual prototypes

    - Verify system operation

    - Analyze what-if scenerios

  • 7/29/2019 Modelica Presentation

    4/38

    3/18/13

    System Description

    Systems are collection ofobjects whose properties wewant to study.

    There are natural and artificialsystems.

    The reason of study is tounderstand interaction ofsystem parts and wholesystem behavior.

  • 7/29/2019 Modelica Presentation

    5/38

    3/18/13

    Examples of ComplexSystems

    Population Dynamics(System Dynamics,supply chainmanagement,

    epidemics)

    Bio-medical, Bio-mechanics

    Power plants Robotics Aerospace Automotive

  • 7/29/2019 Modelica Presentation

    6/38

    3/18/13

    Model Concept &Experiment

    Model is a representative of real system. It is used for experiments.

    An experiment is the process of extracting information from asystem by exciting its inputs.

    Experiments can be performed on models in virtual environments

    without any danger.

    Problems in Experiments are;

    Experiment might be too expensive

    Experiment might be too dangerous

    System needed for expriment might not yet exist.

  • 7/29/2019 Modelica Presentation

    7/383/18/13

    Model Concept

    A model of a system isanything an experimentcan be applied to, inorder to answerquestions about thatsystem.

    Mental Models

    (Statement like a person is reliable)

    Physical Model

    A physical model that mimics the real system

    Mathematical Model

    A description of a system where relationships are expressed inmathematical form.

  • 7/29/2019 Modelica Presentation

    8/383/18/13

    Simulation

    Simulation is an experiment performed on a model.

    Imitation of some real thing, process or state affairs.

    IT IS REQURED SINCE

    -

    Experiments are too expensive

    - Variables may be inaccessible

    - The time scale may not be compatible with experimenter

  • 7/29/2019 Modelica Presentation

    9/38

    3/18/13

    Modeling & Simulation

    Casual Modeling

    -

    is also called Block-Oriented modeling.

    - It is a procedural method and requires the developer to define theorder of calculation.

    Acasual Modeling

    -

    Declarative language just require the developer to define theproblem at a higher level and leaves the solution to simulationtool.

  • 7/29/2019 Modelica Presentation

    10/38

    3/18/13

    Modelica Modeling andSimulation Language

    Modelica is a new objectoritented modeling andsimulation language.

    It is suitable for multi-domainmodeling involving but notlimeted to, mechanical,electrical, hydraulics and

    control systems, processoriented applications andsystem dynamics.

    Modelica is designed such thatit can be utilized in a similar

    Key Benefits Are

    Object Oriented

    Standart Libraries

    Absolutely Free

    Acasual Modeling

    Multible Inheritences

  • 7/29/2019 Modelica Presentation

    11/38

    3/18/13

    Modelica Modeling andSimulation Language

    Every thing is object and class in Modelica programmingLanguage.

    (Real, integer, models, functions, parametrized class)

  • 7/29/2019 Modelica Presentation

    12/38

    3/18/13

    Modelica Modeling andSimulation Language

    Electrical Components

  • 7/29/2019 Modelica Presentation

    13/38

    3/18/13

    Modelica Classes andInheritance

    Simplest Modelica Model

  • 7/29/2019 Modelica Presentation

    14/38

    3/18/13

    Modelica Classes andInheritance

    Modelica Model Example

  • 7/29/2019 Modelica Presentation

    15/38

    3/18/13

    Modelica Models

  • 7/29/2019 Modelica Presentation

    16/38

    3/18/13

    Modelica ConnectionClass

    Connection class is required in order to combine components forcomplex and multi-domain projects.

  • 7/29/2019 Modelica Presentation

    17/38

    3/18/13

    Modelica Models

    Using classes and component models belong to different engineeringdomains multi-domain complex models can be constructed easily.

  • 7/29/2019 Modelica Presentation

    18/38

    3/18/13

    Modelica Libraries

    All component models are re-usable.

    Since inheritance and re-usability, componentmodels are stored in specific libraries.

    Modelica standart libraries developed byModelica Association are freely available insource code and can be modified.

    There are standart modelica librariesdisributed over internet.

    Every 6.. 12 Months new versions are relased.

  • 7/29/2019 Modelica Presentation

    19/38

    3/18/13

    Modelica Libraries

    Standart Library

    Other Libraries

    - Magnetic Library for Electromagneticdevices

    - Thermo-fluid library for fluid systems

    - Vehicle Dynamics Library

    - Neural Networks

    - Waste Water

    - System Dynamics

    - Thermal Power Plants

  • 7/29/2019 Modelica Presentation

    20/38

    3/18/13

    Modelica Libraries-Modelica Examples

    Industry Dynamics -Forester

  • 7/29/2019 Modelica Presentation

    21/38

    3/18/13

    Modelica Libraries-Modelica Examples

    World PopulationDynamics

    The System Dynamicsmethodology is frequentlybeing used for thedescription of complexinteractions betweendifferent biological species.

    This application area, whichforms part of the ecologicalsciences, is usually referredto as population dynamics.

  • 7/29/2019 Modelica Presentation

    22/38

    3/18/13

    Modelica Libraries-Modelica Examples

    Waste Water Is used for analyzingand optimization ofwaste watertreatment process.

  • 7/29/2019 Modelica Presentation

    23/38

    3/18/13

    Modelica Libraries-Modelica Examples

    Electro magneticactuator

    It includes components for modelingof electromagnetic devices withlumped magnetic networks.

    Those models are suited for bothrough design of the magneticsubsystem of a device as well as forefficient dynamic simulation atsystem level together withneighboring subsystems

    ENNA GmbH

  • 7/29/2019 Modelica Presentation

    24/38

    3/18/13

    Modelica Libraries-Modelica Examples

    Building heatingsystem

  • 7/29/2019 Modelica Presentation

    25/38

    3/18/13

    Modelica Libraries-Modelica Examples

  • 7/29/2019 Modelica Presentation

    26/38

    3/18/13

    Modelica Libraries-Modelica Examples Household Refrigerator

    Compressor

    Tube & Wire

    Condensor

  • 7/29/2019 Modelica Presentation

    27/38

    3/18/13

    Modelica Libraries-Modelica Examples

    Power Consumption

    Vapour Quality

  • 7/29/2019 Modelica Presentation

    28/38

    3/18/13

    Modelica Libraries-Modelica Examples

    ommerc a ree

  • 7/29/2019 Modelica Presentation

    29/38

    3/18/13

    ommerc a reeModelica Simulation

    Environments Dynasim, from Dynasim AB, Sweeden (is a part of Dassault Systemsince 2006)

    MathModelica, From MathCore, Sweeden

    SimulationX, from ITI GmbH, Germany

    MapleSIM from Canada,

    MOSILAB from Germany

    OpenModelica from Linkping

    University, Sweeden

    SCICOS from INRIA, France

  • 7/29/2019 Modelica Presentation

    30/38

    3/18/13

    Modelica Simulations

  • 7/29/2019 Modelica Presentation

    31/38

    3/18/13

    Modelica Simulations

  • 7/29/2019 Modelica Presentation

    32/38

    3/18/13

    Modelica Simulations

  • 7/29/2019 Modelica Presentation

    33/38

    3/18/13

    Modelica Simulations

  • 7/29/2019 Modelica Presentation

    34/38

    3/18/13

    Modelica Simulations

  • 7/29/2019 Modelica Presentation

    35/38

    3/18/13

    Modelica Simulations

  • 7/29/2019 Modelica Presentation

    36/38

    3/18/13

    Modelica Simulations

    Flexible Body

  • 7/29/2019 Modelica Presentation

    37/38

    3/18/13

    Modelica Assosiation

    Modelica is a free language and is developed by the non-profitModelica Association since 1996.

    - 2000: First Applications

    - 2005: Modelica 2.2 was released.

    - 2007: Modelica 3.0 was released (Actual release)

    Develops also the largest, free library for multi-domain models.(Modelica Standart Libraries)

    80 indivuduala and 11 organizational members.

    All infos can be found under www.modelica.org

    (Specifications, simulation environments, free libraries, 300papers)

    http://www.modelica.org/http://www.modelica.org/http://www.modelica.org/
  • 7/29/2019 Modelica Presentation

    38/38

    3/18/13

    Questions

    Thank you for your attention.

    QUESTIONS?