Chapter 2-Modeling, Simulation and Prototyping of Systems in Mechatronics Context
Chapter 2-Modeling, Simulation and Prototyping of Systems in Mechatronics Context
K.Sivanathan
Assistant Professor
Department of Mechatronics
SRM University
Lecture 9-Introduction to Modeling
K.Sivanathan
Assistant Professor
Department of Mechatronics
SRM University
What is a Model?
k c
Dynamic System Models
NI LabVIEW
MapleSoft MapleSim ANSI C
Simulink® is a registered trademark of The MathWorks, Inc. All other trademarks are the
property of their respective owners.
Lecture 10-Modeling Approaches for
Multidisciplinary Systems
K.Sivanathan
Assistant Professor
Department of Mechatronics
SRM University
Mechatronic Systems -Examples
Engine Control
Navigation
Control
Flight Control
Steam Turbine
Control
Language
scope
Levels of
Abstraction
Modularity
Tool support
Tool
Transparency
Deployment
Lecture 11
Model Verification and Validation
• Validation is the process of determining whether the
conceptual model is an accurate representation of the actual
system being analyzed. Validation deals with building the right
model.
• Verification is the process of determining whether a simulation
computer program works as intended (i.e., debugging the
computer program). Verification deals with building the model
right.
Validation Conceptual
Real - Model
World
System
Simulation
Program
The V model with the industrial guideline
for MBD in Mechatronics– VDI 2206
Mechatronic product design and degree of
product maturity
VDI 2206-Different levels of Models
Topological model:
The topology of the system to be simulated is modeled as the “arrangement
and interlinking of function-performing elements”.
-kinematic (e.g. number of kinematic joints, position of robot’s joints),
-dynamic (e.g. movement of masses due forces) and
-mechatronic function (e.g. control, monitoring)
Physical model:
Describes system-adapted variables, such as mass, length, resistances, number
of connections etc. It is pointed out that this is a domain specific view.
Mathematical model: (Constraint model)
The physical model is transferred into an abstract representation of the model,
using mathematical descriptions. The modeler can choose the depth of the
modeling, using more or less detailed models of e.g. friction, applying
linearization of non-linear properties etc.
Numerical model: (Realization model)
The mathematical model is prepared in such a way that it can be simulated, i.e.
it is discretized and a solver is chosen. The model is also parameterized, i.e.
concrete number values are assigned to variables.
Lecture 12-13
Different types of Simulation/Testing
Different Testing Paradigms
• The first step is the MIL, where neither the controller
nor the plant operates in real time. This step, usually
used toward the beginning of the process, allows
engineers to study the performance of the system
and design the control algorithm(s) in a virtual
environment, running computer simulations of the
complete system, or subsystem.
• Rapid Control Prototyping (RCP) provides the
engineer with the ability to quickly test and iterate
their control strategies on a real-time computer with
actual hardware. The control strategy is simulated in
real-time on a processor that augments or replaces
the real embedded controller, allowing the user to
investigate and refine the control algorithms while
operating with the real system under control. RCP is
now a commonly used method to develop and test
control strategies.
Different Testing Paradigms
• In SIL phase, the actual Production Software
Code is incorporated into the mathematical
simulation that contains models of the
Physical System. This is done to permit
inclusion of software functionality for which
no model(s) exists or to enable faster
simulation runs.
• Controller HIL is a technique for running a
mathematical simulation model of a system
on a real-time computer, integrated with
actual controller hardware and software, such
that the controller acts as though it were
integrated into the real system. This is used
for testing and validation of embedded
electronic controllers, prior to testing in a
vehicle or on a dynamometer.
Real-Time Testing (RTT)
• Test that provides deterministic stimulus for reliability and accurate
simulation of an environment
• RTT Types:
– Model in the loop (MIL)
– Rapid Control Prototyping (RCP)
– Software in the Loop(SIL)
– Processor in the Loop(PIL)
– Hardware in the Loop (HIL)
– Functional Testing / Test Cells
Types of Models