simmechanics - mathworks · 27 conclusions -physical modeling - simulink and simscape -simscape –...

28
1 © 2013 MathWorks, Inc. SimMechanics Model and simulate multibody mechanical systems Javier Gazzarri Tom Priestley Marc Semma General Electric

Upload: others

Post on 22-Jan-2021

24 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

1 © 2013 MathWorks, Inc.

SimMechanics Model and simulate multibody mechanical systems

Javier Gazzarri

Tom Priestley

Marc Semma

General Electric

Page 2: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

2

𝑚𝑥 + 𝐵𝑥 + 𝑘𝑥 = F

Page 3: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

3

Simulink

– Signal-based modeling

– Causal or input / output

R1

C1 v1

i +

_

R1

C1

i2

+

_ i3

i1 R2

C2 v2

Simscape

– Network-based modeling

– Acausal

Page 4: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

4

Agenda

- Physical Modeling – A different way to think your design

- Advanced 3D mechanical modeling

- Pendulum

- Aileron

- Import from CAD

- Code generation and deployment

- IP protection

- Precompiled execution

Page 5: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

5

Simscape

Page 6: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

6

Demo

Page 7: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

7

SimMechanics

Page 8: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

8

Multibody simulation

of 3D mechanical systems

Bodies, joints, transforms

No equations

System-level analysis

Control development in Simulink

Sim

Mech

an

ics

Sim

Dri

velin

e

Sim

Hyd

rau

lics

Sim

Ele

ctr

on

ics

Sim

Po

werS

yste

ms

Simscape

MATLAB, Simulink

Page 9: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

9

Body Definition – MATLAB

– CAD import

Mass and inertia tensor

calculation

3D animation of simulation

results

Connect to

– Control

– Other physical domains

Page 10: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

10

System structure

– Parts (mass, inertia)

– Coordinate systems

– Joints and constraints

Parameterize in

MATLAB

Save for reuse

Page 11: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

11

Body Definition

MATLAB

Pre-defined

Mass, inertia properties

calculated automatically

Create complex shapes

connecting solids

Page 12: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

12

Demo

Page 13: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

13

Page 14: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

14

CAD Import

Page 15: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

15

SimMechanics Link

CAD SimMechanics

– Mate definitions joints

Supported off-the-shelf

– SolidWorks

– ProEngineer

– Inventor

Public API for others

Page 16: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

16

Demo

Page 17: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

17

Aileron System

- Mechanism

- Actuation - Ideal vs. practical

- Control gain optimization

- C-code generation - Real Time simulation

- Compiled execution

- IP protection

Page 18: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

18

Demo

Page 19: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

19

Page 20: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

20

Demo

Page 21: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

21

Page 22: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

22

Page 23: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

23

Page 24: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

24

Deploying Models as C Code

C Code

Hardware-in-the-Loop

Simulators

Standalone

Executable Other

Simulation

Environments

Page 25: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

25

Demo

Page 26: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

26

Sharing Models

Model Developer

Simscape + SimMechanics

Model Users

Simscape

Page 27: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

27

Conclusions

- Physical Modeling

- Simulink and Simscape

- Simscape – A different way to think your system

- Physical network acausal approach

- SimMechanics – Advanced 3D mechanical

modeling

- Bodies, joints, actuation, sensing

- Import from CAD

- Code generation and deployment

- Sharing and protecting

Page 28: SimMechanics - MathWorks · 27 Conclusions -Physical Modeling - Simulink and Simscape -Simscape – A different way to think your system - Physical network acausal approach -SimMechanics

28

Thank You