Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior...

28
DR. TAREK A. TUTUNJI ADVANCED MODELING AND SIMULATION MECHATRONICS ENGINEERING DEPARTMENT PHILADELPHIA UNIVERSITY, JORDAN 2013 Modeling and Simulation Principles

Transcript of Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior...

Page 1: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

D R . T A R E K A . T U T U N J I

A D V A N C E D M O D E L I N G A N D S I M U L A T I O N

M E C H A T R O N I C S E N G I N E E R I N G D E P A R T M E N T

P H I L A D E L P H I A U N I V E R S I T Y , J O R D A N

2 0 1 3

Modeling and Simulation Principles

Page 2: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

What is a Model?

A model is a partial representation of a system’s (dynamic) behavior. There is no the model for a system. Many different models can be associated with the same system depending on what level of approximation we desire. The latter is a function of the purpose for the desired model. A model should be represented with a quality tag indicating its fidelity in reproducing the system’s behavior, or the range of signals it is valid for, or the size of approximation error we may expect

[Ref] Albertos and Mareels

Page 3: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

What is a System?

Page 4: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Model Categories

Continuous vs. discrete

Static vs. dynamic

Linear vs. nonlinear

Time-variant vs. time-invariant

Deterministic vs. stochastic

SISO vs. MIMO

Page 5: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Modeling Cycle

Page 6: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Verification and Validation

Model verification investigates whether the executable model reflects the conceptual model within the specified limits of accuracy. Implementation

Alternative models

Animation

Model validation tell us whether the executable model is suitable for fulfilling the envisaged task within its field of application. Replicative validity

Predictive validity

Page 7: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Simulation Advantages over Experiments

It is cheaper (time and money) to model virtual prototypes than it is to build real prototypes.

Some system states cannot be brought about in the real

system Normally all aspects of virtual experiments are

repeatable Simulated models are generally completely controllable Simulated models are generally fully monitorable

Page 8: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Mathematical Models

Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation, control design, and reconstruction of variables.

There are two ways to obtain these models:

Theoretical modeling based on first (physical) principles

Experimental modeling (identification) with measured input and output variables

[Ref.] Prof. Rolf Isermann

Page 9: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Physical Modeling

In physical modeling the laws of physics are used to describe the behavior and inner action mechanism of a system or a component.

The selection of the relevant relationships depending upon suitability and efficiency and the establishment of cause and effect chains, requires a comprehensive understanding of the system and remains an engineering task

Page 10: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Experimental Modeling

Experimental modeling consists of the development of mathematical models of dynamic systems on the basis of measured data or at least providing existing models with parameters

Parameter estimation estimates parameter values using existing models

System identification creates models to fit experimental data

Page 11: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Experimental Models

Page 12: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Modeling vs. Experimental Validation

[Ref.] Craig and Stolfi

Page 13: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Mechatronic Design Process

[Ref.] Prof. Divdas Shetty

Page 14: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Bottom-up design process

Page 15: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Top-down design process

Page 16: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

V-Model MSD from Association of German Engineers Guidelines, VDI 2206

Page 17: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Integrated Design Issues

Concurrent engineering of the mechatronics approach relies heavily on the use of system modeling and simulation throughout the design and prototyping stages.

It is especially important that it be programmed in a visually intuitive environment.

block diagrams, flow charts, state transition diagrams, and bond graphs.

Page 18: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Computer-Aided Systems: Important Features

Modeling: Block diagrams for working with understandable multi-disciplinary

models that represent a physical phenomenon.

Simulation: Numerical methods for solving models containing differential, discrete,

linear, and nonlinear equations.

Project Management: Database for maintaining project information and subsystem models for eventual reuse.

Design: Numerical methods for constrained optimization of performance

functions based on model parameters and signals.

Page 19: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Computer-Aided Systems: Important Features

Analysis: Frequency-domain and time-domain tools

Real-Time Interface: A plug-in card is used to replace part of the model with actual hardware

by interfacing to it with actuators and sensors.

Code Generator: Produces efficient high-level source code (such as C/C++) from the block

diagram. The control code will be compiled and used on the embedded processor.

Embedded Processor Interface: Communication between the process and the computer-aided

prototyping environment.

Page 20: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Information Systems: Modeling

Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic.

Models can be static or dynamic Static models produce no motion, heat transfer, fluid flow, traveling

waves, or any other changes.

Dynamic models have energy transfer which results in power flow. This causes motion, heat transfer, and other phenomena that change in time.

Models are cause-and-effect structures—they accept external information and process it with their logic and equations to produce one or more outputs. Parameter is a fixed-value unit of information

Signal is a changing-unit of information

Models can be text-based programming or block diagrams

Page 21: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Information Systems: Simulation

Simulation is the process of solving the model and is performed on a computer.

Simulation process can be divided into three sections:

Initialization

Iteration,

Termination.

Page 22: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Simulation Methods

[Ref.] Prof. Rolf Isermann

Page 23: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Real-Time Simulation

[Ref.] Prof. Rolf Isermann

Page 24: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Hardware-In-the-Loop (HIL)

The hardware-in-the-loop simulation (HIL) is characterized by operating real components in connection with real-time simulated components.

Usually, the control system hardware and software is the real system, as used for series production. The controlled process (consisting of actuators, physical processes, and sensors) can either comprise simulated components or real components,

Page 25: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

PC-Based Hardware-in-the-Loop Simulation

Page 26: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Control Prototyping

For the design and testing of complex control systems and their algorithms under real-time constraints, a real-time controller simulation (emulation) with hardware (e.g., off-the-shelf signal processor) other than the final series production hardware (e.g., special ASICS) may be performed.

The process, the actuators, and sensors can then be real. This is called control prototyping

Page 27: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Real-Time Simulation

[Ref.] Prof. Rolf Isermann

Page 28: Modeling and Simulation Principles · Mathematical process models for static and dynamic behavior are required for various steps in the design of mechatronic systems, such as simulation,

Reference

George Pelz. Mechatronic Systems: modeling and simulation with HDLs. Chapter 2 Wiley 2003

Devdas Shetty and Richard A Kolk. Mechatronics System Design, 2nd edition. Chapter 2. Cengage Learning 2011

Rolf Isermann “Mechatronics Design Approach” Chapter 2 in Mechatronics Handbook edited by Bishop