Está en la página 1de 42

From versatile analysis

methods to interactive
simulation with a motion
platform based on
SimulationX and FMI
SimulationX
Tutorial, 8th Modelica Conference
Dr. Ines Gubsch, IVMA, TUD
Christian Schubert, IVMA, TUD
Christian Kehrer, ITI GmbH

Topic

1.
2.
3.
4.
5.
6.
7.

Overview
Modeling of a simple example
Versatile analysis methods
SimulationX Libraries
Code Export
Wheel Loader model for Code Export via FMI
Summary

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Topic

1. Overview
a) Graphical User Interface
b) File handling
c) Post Processing
2. Modeling of a simple example
3. Versatile anaylsis methods
4. SimulationX Libraries
5. Code Export
6. Wheel Loader model for Code Export via FMI
7. Summary

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Overview

Graphical User Interface


Fully customizable,
dynamical GUI
Four different model
views simultaneously:
Diagram View
Text View
3D View

Diagram View

Task
Pane

Library Bar

Documentation View

Model explorer for easy


access to all components,
types, parameters and
result variables
2011 ITI GmbH | www.simulationx.com

Text View

Result Window
Model Explorer

Output

Result
Manager

Overview

File Handling
Modelica Search Path
Modelica Options

Opening (Diagram View, 3D View)


Add SimulationX calculation environment
Recording of results
Add base class Modelica.Icons

Different file formats:


Modelica file (*.mo)
SimulationX file (*.ism)
SimulationX project (*.isx)

2011 ITI GmbH | www.simulationx.com

Overview

Post Processing
Result windows
Plotting options y(t) and y(x) incl.
measuring, freezing and drag & drop
Multiple file formats (*.txt, *.bin, *.rfs,
*.csv, *.dat, *.xml, *.bmp, *.jpeg, *.gif,
*.tiff, *.png, *.emf)
FFT analysis

Momentary displays
Linkable to any result variable

3D Animation
Oservation while running simulation
Video export (*.avi, *.wmv)
2011 ITI GmbH | www.simulationx.com

Topic

1. Overview
2. Modeling of a simple example
a) Modeling
b) Parameterization
c) Creation of user defined types
3. Versatile analysis methods
4. SimulationX Libraries
5. Code Export
6. Wheel Loader model for Code Export via FMI
7. Summary

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Modeling of a simple example

Modeling
Graphical placement, modification and
connection of elements
Simultaneous textual editing with ad hoc
effect in every other view
Connections with modifiable properties
Switchable autorouting
Replace, add or delete nodes by mouseclick

TypeDesigner for creation of


compounds and new types

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Modeling of a simple example

10

Parameterization
Parameterization using units
Reference on every variable
within the whole model
Formula and math. expressions
incl. logical conditions and
alternatives
Syntax check after every
parameter input
Parameter sets available as
Windows-metadata

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Modeling of a simple example

12

TypeDesigner
Create user-defined models:
Creation of completely new
types
Extension: Modification of any
existing models
Compounds: group several
elements together to one new
model

Edit existing models:


Add certain features to the
built-in models

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

13

Modeling of a simple example

TypeDesigner: creation of compounds


Local or global storage
(Inner) Connectors: compounds interfaces to the
outside world
(Inner) Components: definition of parameters and
result variables
Local Types: type in type constructs
Toggle components in Activity Groups
Behaviour described with algorithms and equations
Editable Modelica Code
HTML Documentation accessible via context help
Different Security levels
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Topic

1. Overview
2. Modeling of a simple example
3. Versatile analysis methods
a) Transient simulation in time domain
b) Linear System Analysis
c) Periodic Steady-State Simulation
4. SimulationX Libraries
5. Code Export
6. Wheel Loader model for Code Export via FMI
7. Summary

2011 ITI GmbH | www.simulationx.com

15

Versatile analysis methods

16

Transient simulation
Activation of protocol attributes
Global or selective

Settings of the property dialog

General
Reset points
Tracing
Solvers

Global Symbolic Analysis


Determination of consistent initial
values
Creation and customizing of result
windows
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Versatile analysis methods

18

Linear System Analysis


Linearization of model equations at current
operating point
Performable at any time instant
Natural frequencies and mode shapes
Computation from Jacobian matrices
All state values are taken into account (regardless of
the physical domain)

Input-Ouput-Analysis
Analyzing the transmission behavior
Interpretation of the model as a system with inputs
and outputs
2011 ITI GmbH | www.simulationx.com

19

Versatile analysis methods

Calculation of Eigenvalues and Eigenvectors


Computation of natural frequencies and damping
time constants of the damped oscillation
Additional: natural frequencies of the undamped
system
Filter options stored in model
Display of:
Complex eigenvalues
Damped and undamped
natural frequencies
Damping factor D
Time constants
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

20

Versatile analysis methods

Deviation and Distribution of Energy


Eigenvector as a value and in the form of
a bar chart
Distribution of energy of a natural mode
influence of certain elements on the
respective natural frequency
Kinetic energy
Potential energy
Power loss

Extension of MSL elements for


observation of energy distribution and
deviation within LSA necessary
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Versatile analysis methods

21

Campbell Diagram
Identification of critical
speeds of rotational
systems
Resonance points
visible as crossing
points of natural
frequencies with orders
Measurement by
mouse click
Adjustable speed range

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Versatile analysis methods

22

Vibration Mode Animation


3D allocation of natural frequencies and corresponding
components
Use of momentary
displays and adjusted
elements from
Mechanics.MultiBody
Controllable while
running animation:
Amplification factor
Animation frequency

2011 ITI GmbH | www.simulationx.com

Versatile analysis methods

Frequency Response Function


Complex frequency response of a linear
system
Plot of frequency response function from
selected input to output
Several options for the description of the
excitation for every input
Result representation:
Magnitude and phase
Real- and imaginary part
Nyquist-Plot
2011 ITI GmbH | www.simulationx.com

25

26

Versatile analysis methods

Poles and Zeros


Graphical representation
and listing of exact values
of Smith-poles and zeros
in the complex frequency
plane
Evaluation of stability
properties
For systems with multiple
inputs and outputs
Ready for Copy-Paste

Poles

Zeros
2011 ITI GmbH | www.simulationx.com

27

Versatile analysis methods

Export of system matrices


ODE state-space representation:

x = Ax + Bu
y = Cx + Du
DAE descriptor form:

Ex = Ax + Bu
y = Cx + Du

xstate variables
uinput variables
youtput variables

MATLAB-source code or Modelica format


2011 ITI GmbH | www.simulationx.com

Versatile analysis methods

Periodic Steady-State Simulation


Periodic solutions of nonlinear systems in
dependence of a reference quantity
Harmonic Balance as parametric analysis
Result quantities over reference quantity:

Amplitude and phase


Fluctuation coefficient
Real- and imaginary part
Excitations

Results over one period for a user defined


value of the reference quantity:
Unbiased deflection
Deflection with mean value
Fluctuation

2011 ITI GmbH | www.simulationx.com

29

Topic

1.
2.
3.
4.
5.
6.
7.

32

Overview
Modeling of a simple Example
Different analysis methods
SimulationX Libraries
Code Export
Wheel Loader model for Code Export via FMI
Summary

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

SimulationX Libraries

33

SimulationX Libraries extending Modelica Standard


Connections are model objects
carrying names, parameters, initial
values and result variables
Variable values or expressions to be
assigned to parameters proprietary ports
Graphical interactive editing of curves
including multiple options for
interpolation and approximation

2011 ITI GmbH | www.simulationx.com

SimulationX Libraries

34

Combine elements from MSL & SimulationX Libraries


Interface definition as Modelica
class model or as special
Modelica transformer block
Containing each of the
appropriate port types
Connecting the physical
variables by equations
Sum of both flow quantities is
zero, while potential quantities
have to be equivalent
2011 ITI GmbH | www.simulationx.com

Topic

1.
2.
3.
4.
5.

Overview
Modeling of a simple Example
Different analysis methods
SimulationX Libraries
Code Export
a) Ensurance of Real Time Capabilities
b) Code Export Interfaces
6. Wheel Loader model for Code Export via FMI
7. Summary

2011 ITI GmbH | www.simulationx.com

35

Code Export

Natural frequencies
Identification of
State variables with
highest influence on
the critical
eigenfrequencies
Components with
highest influence on
the critical
eigenfrequencies
2011 ITI GmbH | www.simulationx.com

36

Code Export

37

Performance analysis
Identification of state values with
high influence on preventing
increase of calculation step size
Recording of weighted error
estimates for every state value
Detection of critical, i.e. stiff
components and strong
nonlinearities
Model reduction for optimization
of CPU time

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

38

Code Export

Switchable model complexity


Example: Gear of SimulationX Power Transmission
library

For NVH analyses:


Non-linear and high stiffness of tooth contact
With backlash
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Code Export

39

Switchable model complexity


Example: Gear of SimulationX Power Transmission
library

For real-time simulation:

Rigid, without backlash

Reduction of dynamics, dimension and complexity

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

40

Code Export

Code Export interfaces


Guided by Code Export wizard
Integration into multiple simulation
systems
Direct HiL and RCP support without the
necessity of third-party tools
Accelerated simulation runs using
executable models
Support of platform-independent model
exchange
FMI for Model Exchange
FMI for Co-Simulation
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Code Export

41

FMI Code Export workflow


Start Code Export wizard
Specification of project
properties
Selective definition of
Inputs
Outputs
Parameters

Code Generation incl.


transformation to ODE
form
code optimization
2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Topic

1.
2.
3.
4.
5.
6.
7.

Overview
Modeling of a simple example
Versatile analysis methods
SimulationX Libraries
Code Export
Wheel Loader model for Code Export via FMI
Summary

2011 ITI GmbH | www.simulationx.com

42

Wheel Loader model for Code Export via FMI

43

Wheel loader model


SimulationX model to be run on
an interactive motion platform
Studying the influence of the
human operator on the machine
Realtime multi body system incl.

hydraulic cylinders and valves


a reduced drivetrain
Paceijka tire models
contact between bucket and
underground

2011 ITI GmbH | www.simulationx.com

FMI

SARTURIS

Topic

1.
2.
3.
4.
5.
6.
7.

44

Overview
Modeling of a simple example
Versatile analysis methods
SimulationX Libraries
Code Export
Wheel Loader model for Code Export via FMI
Summary

2011 ITI GmbH | www.simulationx.com

8th International Modelica Conference, Dresden 2011

Summary

45

Summary
Handling of Modelica models within the SimulationX
Graphical User Interface
Versatile analysis methods in time and frequency
domain
Differences and combination of elements from pure
Modelica and SimulationX Libraries
Tools for users support in achieving real time
capabilities
Code export interfaces including workflow for
generation of FMI export of a wheel loader model

2011 ITI GmbH | www.simulationx.com

Summary

46

More Information (1) Listen to us


2 Lectures

The Functional Mockup Interface

Implementation of Modelisar Functional Mock-up Interfaces in SimulationX

ITI Vendor Session

Simulating n-dimensional Modelica models with SimulationX

4 Partners Lectures

Experiences with the new FMI Standard - Selected Applications at Dresden University (IVMA)

Simulation-based development of automotive control software with Modelica (Daimler, Qtronic)

Real Time Simulation of Vapour Compression Cycles (TLK)

Optimization-Tool for local renewable energy usage in the connected system Building-eMobility (IAD)

3 Lectures about SimulationX

Auto-Extraction of Modelica Code from Finite Element Analysis or Measurement Data (OptiY)

High-speed train pneumatic braking system with wheel-slide protection device: a modelling application from system design
to HiL testing (Global Crown Technology)

Modelica Delft-Tyre Interface (Modelon AB)

2011 ITI GmbH | www.simulationx.com

Summary

More Information (2) Talk to us

2011 ITI GmbH | www.simulationx.com

47

Summary

More Information (3) Read about us


http://www.itisim.com/
http:// www.simulationx.com/
http://tu-dresden.de/bft

2011 ITI GmbH | www.simulationx.com

48

Summary

49

Interactive Motion Platform - Location

7 min by feet

2011 ITI GmbH | www.simulationx.com

Summary

At last
Let me wish (you and of course us all):
A successful conference
Intoxicating lectures
A lot of new contacts
Many interesting discussions
And
Have a good ride!

2011 ITI GmbH | www.simulationx.com

50

Supporting your visions

ITI GmbH
Headquarters
Webergasse 1 Haus C2
01067 Dresden Germany
T + 49 (0) 351.260 50 - 0
www.iti.de

También podría gustarte