Sunteți pe pagina 1din 38

Modelica Open Source Modeling & Simulation Language

Ali BOYALI (PhD) Mechanical Engineer

3/18/13

Outline

Modelica Open Source Modeling & Simulation Language

1- Modeling and Simulation Concepts 2- Modelica Modeling & Simulation Language 3- Modelica Libraries & Applications 4- Modelica Association & Conclusion
3/18/13

Modeling and Simulation

The aim is to

Manage complexity of the systems

Simulate system behavior, assess safety, performance and optimize system before it is constructed.

Build virtual prototypes

Verify system operation

Analyze what-if scenerios

3/18/13

System Description

Systems are collection of objects whose properties we want to study.

There are natural and artificial systems.

The reason of study is to understand interaction of system parts and whole system behavior. 3/18/13

Examples of Complex Systems

Population Dynamics (System Dynamics, supply chain management, epidemics)


Bio-medical, Bio-mechanics Power plants Robotics Aerospace Automotive

3/18/13

Model Concept & Experiment

Problems in Experiments are;


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

Experiment might be too expensive


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

Experiment might be too dangerous

Experiments can be performed on models in virtual environments without any danger.for expriment might not yet exist. System needed

3/18/13

Model Concept

Mental Models

(Statement like a person is reliable)

A model of a system is anything an experiment Physical Model can be applied to, in order to answer questions about that A physical model that mimics the real system system.
Mathematical Model

A description of a system where relationships are expressed in mathematical form. 3/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 compatible3/18/13 with experimenter

Modeling & Simulation


Casual Modeling Acasual Modeling

Declarative language just require the developer to define the is also called Block-Oriented modeling. problem at a higher level and leaves the solution to simulation tool. It is a procedural method and requires the developer to define the order of calculation.

3/18/13

Modelica Modeling and Simulation Language


Key Benefits Are

Modelica is a new object oritented modeling and simulation language.


Object Oriented

It is suitable for multi-domain Standart involving modeling Libraries but not limeted to, mechanical, electrical, hydraulics and control systems, process Absolutely Free oriented applications and system dynamics.

Acasual Modeling

Modelica is designed such that it can be Inheritences similar Multible utilized in a

3/18/13

Modelica Modeling and Simulation Language

Every thing is object and class in Modelica programming Language. (Real, integer, models, functions, parametrized class)

3/18/13

Modelica Modeling and Simulation Language

Electrical Components

3/18/13

Modelica Classes and Inheritance

Simplest Modelica Model

3/18/13

Modelica Classes and Inheritance

Modelica Model Example

3/18/13

Modelica Models

3/18/13

Modelica Connection Class

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

3/18/13

Modelica Models

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

3/18/13

Modelica Libraries

All component models are re-usable.

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

Modelica standart libraries developed by Modelica Association are freely available in source code and can be modified.

There are standart modelica libraries disributed over internet.

Every 6.. 12 Months new versions are relased. 3/18/13

Modelica Libraries
Standart

Library

Other Libraries

Magnetic Library for Electromagnetic devices Thermo-fluid library for fluid systems Vehicle Dynamics Library Neural Networks Waste Water System Dynamics Thermal Power Plants

3/18/13

Industry

Modelica LibrariesModelica Examples


Dynamics -

Forester

3/18/13

World

Population Dynamics

Modelica LibrariesModelica Examples


The System Dynamics methodology is frequently being used for the description of complex interactions between different biological species. This application area, which forms part of the ecological sciences, is usually referred to as population dynamics.

3/18/13

Waste

Modelica LibrariesModelica Examples


Water

Is used for analyzing and optimization of waste water treatment process.

3/18/13

Electro

magnetic actuator

Modelica LibrariesModelica Examples


It includes components for modeling of electromagnetic devices with lumped magnetic networks. Those models are suited for both rough design of the magnetic subsystem of a device as well as for efficient dynamic simulation at system level together with neighboring subsystems

3/18/13

ENNA GmbH

Modelica LibrariesModelica Examples


Building

heating

system

3/18/13

Modelica LibrariesModelica Examples

3/18/13

Household Refrigerator

Modelica LibrariesModelica Examples

Compressor

3/18/13

Tube & Wire Condensor

Modelica LibrariesModelica Examples

Power Consumption

Vapour Quality 3/18/13

Modelica LibrariesModelica Examples

3/18/13

Dynasim, from Dynasim AB, Sweeden (is a part of Dassault System since 2006)

Commercial & Free Modelica Simulation Environments

MathModelica, From MathCore, Sweeden OpenModelica from Linkping University, Sweeden SimulationX, from ITI GmbH, Germany

SCICOS from INRIA, France

MapleSIM from Canada,

MOSILAB from Germany

3/18/13

Modelica Simulations

3/18/13

Modelica Simulations

3/18/13

Modelica Simulations

3/18/13

Modelica Simulations

3/18/13

Modelica Simulations

3/18/13

Modelica Simulations

3/18/13

Modelica Simulations

Flexible Body

3/18/13

Modelica Assosiation

All infos is free language www.modelica.org Modelicacanabe found underand is developed by the non-profit Modelica Association since 1996. (Specifications, simulation environments, free libraries, 300 papers) 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. 3/18/13

Questions
Thank you for your attention. QUESTIONS?

3/18/13