system modeling using simulink and simscape - matlab expo

29
1 © 2015 The MathWorks, Inc. System modeling using Simulink and Simscape Abhisek Roy Sruthi Geetha Veer Alakshendra

Upload: others

Post on 10-Feb-2022

62 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: System modeling using Simulink and Simscape - MATLAB EXPO

1© 2015 The MathWorks, Inc.

System modeling using Simulink

and Simscape

Abhisek Roy

Sruthi Geetha

Veer Alakshendra

Page 2: System modeling using Simulink and Simscape - MATLAB EXPO

2

Multi-domain

Systems

Page 3: System modeling using Simulink and Simscape - MATLAB EXPO

3

Common challenges

1. Multi-domain simulation

2. Capturing the system dynamics at desired complexity

3. Developing controls algorithm

Page 4: System modeling using Simulink and Simscape - MATLAB EXPO

4

Scissor Lift

Page 5: System modeling using Simulink and Simscape - MATLAB EXPO

5

Scissor Lift

Page 6: System modeling using Simulink and Simscape - MATLAB EXPO

6

Agenda

▪ Understanding and capturing the behavior of a system

– Various approaches of modeling

– Example: DC motor

▪ Model the Scissor Lift

– Hydraulic actuation system

– Mechanical System

▪ Developing control strategy

Page 7: System modeling using Simulink and Simscape - MATLAB EXPO

7

Modeling a DC Motor

Problem: Model a DC motor with

electrical and mechanical effects

Model:

Shaft

V+

V-

Housing

Page 8: System modeling using Simulink and Simscape - MATLAB EXPO

8

Data-Driven ModelingFirst Principles Modeling

Neural Networks

Physical NetworksSystem

Identification

Parameter Tuning

Programming

Block Diagram

Modeling Language

Symbolic Methods

Modeling Approaches

Different Approaches for Modeling Dynamic Systems

Statistical Methods

(MATLAB, C)

(Simulink)

(Simscape language)

(Symbolic MathToolbox)

(Simscape and other

Physical Modeling

products)

(Neural NetworkToolbox)

(Model BasedCalibration Toolbox)

(Simulink Design Optimization)

(System Identification Toolbox)

Page 9: System modeling using Simulink and Simscape - MATLAB EXPO

9

What is Simulink?

The leading environment for modeling,

simulating and implementing dynamic and

embedded systems

▪ Block-diagram environment

▪ Model, simulate, and analyze multi-domain

systems

▪ Accurately design, implement, and test complex

systems for:

– Communications

– Control

– Signal processing

– Video and image processing

▪ Platform for Model-Based Design

Page 10: System modeling using Simulink and Simscape - MATLAB EXPO

10

Modeling a DC Motor in Simulink

Model:

V+

V-

Page 11: System modeling using Simulink and Simscape - MATLAB EXPO

11

How to model a DC Motor in Simulink?

Based on its equation:

Page 12: System modeling using Simulink and Simscape - MATLAB EXPO

12

Data-Driven ModelingFirst Principles Modeling

Neural Networks

Physical NetworksSystem

Identification

Parameter Tuning

Programming

Block Diagram

Modeling Language

Symbolic Methods

Modeling Approaches

Different Approaches for Modeling Dynamic Systems

Statistical Methods

(MATLAB, C)

(Simulink)

(Simscape language)

(Symbolic MathToolbox)

(Simscape and other

Physical Modeling

products)

(Neural NetworkToolbox)

(Model BasedCalibration Toolbox)

(Simulink Design Optimization)

(System Identification Toolbox)

Page 13: System modeling using Simulink and Simscape - MATLAB EXPO

13

Introduction to Simscape

Page 14: System modeling using Simulink and Simscape - MATLAB EXPO

15

Modeling a DC Motor

Problem: Model a DC motor with

electrical and mechanical effects

Solution: Use Simscape to model

the electromechanical system

as a physical network

Model:

Shaft

V+

V-

Housing

Page 15: System modeling using Simulink and Simscape - MATLAB EXPO

16

Page 16: System modeling using Simulink and Simscape - MATLAB EXPO

17

Agenda

▪ Understanding and capturing the behavior of a system

– Various approaches of modeling

– Example: DC motor

▪ Model the Scissor Lift

– Hydraulic actuation system

– Mechanical System

▪ Developing control strategy

Page 17: System modeling using Simulink and Simscape - MATLAB EXPO

18

Agenda

▪ Understanding and capturing the behavior of a system

– Various approaches of modeling

– Example: DC motor

▪ Model the Scissor Lift

– Hydraulic actuation system

– Mechanical System

▪ Developing control strategy

Page 18: System modeling using Simulink and Simscape - MATLAB EXPO

19

Hydraulic actuation

Page 19: System modeling using Simulink and Simscape - MATLAB EXPO

20

Hydraulic actuation circuit

Page 20: System modeling using Simulink and Simscape - MATLAB EXPO

21

Agenda

▪ Understanding and capturing the behavior of a system

– Various approaches of modeling

– Example: DC motor

▪ Model the Scissor Lift

– Hydraulic actuation system

– Mechanical System

▪ Developing control strategy

Page 21: System modeling using Simulink and Simscape - MATLAB EXPO

22

Page 22: System modeling using Simulink and Simscape - MATLAB EXPO

25

Example: Single Pendulum

Simple Pendulum

▪ Simscape Multibody model advantages

– Easier to read than equations

– Quicker to create

– More intuitive – easier to explain to other engineers

θ1

x

y

z

mg

l

Page 23: System modeling using Simulink and Simscape - MATLAB EXPO

26

Exercise: Double Pendulum

θ2

m2g

θ1

x

y

z

m1g

Page 24: System modeling using Simulink and Simscape - MATLAB EXPO

27

Mechanical system

DEMO

Page 25: System modeling using Simulink and Simscape - MATLAB EXPO

28

Import CAD Data Using

Simscape Multibody Link

▪ Automatically create Simscape Multibody

models from a CAD assembly

– Converts mass and inertia to rigid bodies

– Converts mate definitions to joints

– Creates STEP files for use with

Simscape Multibody visualization

▪ Directly connects SOLIDWORKS,

PTC Creo® (Pro/ENGINEER®)

and Inventor

▪ Free download from www.mathworks.com

– Requires MATLAB

Simscape Multibody Link

Export

Page 26: System modeling using Simulink and Simscape - MATLAB EXPO

29

Simscape Multibody Link:

Convert CAD Assembly to Simscape Mutibody

▪ Use Simscape Multibody Link plugin to export from CAD to XML

▪ Import XML file into Simscape Multibody (>> smimport)

Page 27: System modeling using Simulink and Simscape - MATLAB EXPO

30

Agenda

▪ Understanding and capturing the behavior of a system

– Various approaches of modeling

– Example: DC motor

▪ Model the Scissor Lift

– Hydraulic actuation system

– Mechanical System

▪ Developing control strategy

Page 28: System modeling using Simulink and Simscape - MATLAB EXPO

31

Call to action

▪ Aileron Actuator Development with Model-Based Design

▪ Modeling an Engine Cooling System

Page 29: System modeling using Simulink and Simscape - MATLAB EXPO

32

% Thank you