495 110 2MB
English Pages 29 Year 2006
© 2006 The MathWorks, Inc.
Modeling Mechanical, Electric, and Hydraulic Systems in Simulink®
Terry Denery, Ph.D. Physics-Based Modeling Tools
Physics-Based Modeling Methods Improve Control System Design
Plant
Sensors
Controller
Actuators
u
+
Electrical Mechanical Device
y
Multidomain systems (mechanical, electrical, hydraulic, chemical, . . .) Successful controller development requires thorough and accurate understanding of plant 2
Electrical Mechanical Device
Plant
Sensors
Actuators
Important Physical Domains Mechanical -3D Multi-Body Dynamics SimMechanics -Driveline Mechanics SimDriveline
3
Electrical Mechanical Device
Plant
Sensors
Actuators
Important Physical Domains Electrical -Circuits SimPowerSystems -Motors and Actuators -Power Systems
4
Electrical Mechanical Device
Plant
Sensors
Actuators
Important Physical Domains Hydraulics
-Circuits SimHydraulics -Motors and Actuators -Power Systems
5
Sensors
Controller
Actuators
u
+
Electrical Mechanical Device
Control System Plant
y
6
Control System
7
Power Delivery
Electrical Power Network Hydraulic Power Network Mechanical Driveline Power Network 8
Electrical Mechanical Electrical Power Network Hydraulic Power Network Mechanical Driveline Power Network
Device
9
Control Systems within Control Systems
Mechanical Device
Plant
Sensors
Controller
Actuators
u
+
Electrical
y
10
Biggest Benefit – Delivered Through Simulink®
Rich Modeling Environment – Physical – Behavioral – Data-Driven Control System Development Tool – One environment for controller and plant – Code generation that enables HIL testing – Easy access to control tools
11
Why did we build SimHydraulics?
Hydraulics is widely used in motion actuation systems Customer Feedback – – –
“Extend benefits of Model-Based Design to hydraulic system design” “Develop better plant models for better controller development” “Co simulation with other products is difficult and impractical”
12
Pros and Cons for Hydraulics Pros: High power density Straight-line actuators are simple, efficient and reliable Variable speed is easily obtained Simple, efficient, and centralized control Overload protection
Cons: High cost Complex and costly maintenance Extremely vulnerable to dirt and contamination Possible leaks Noise and vibrations Fire hazards
Design Trend is Electro-Hydraulics: Transmit power electrically, but deliver through local hydraulic networks 13
Hydraulic System Schematic Diagram
14
Block Diagrams p p = p p ( t ),
q O1 = K 1
qA = K A ⋅
pP − pA ,
qO 2 = K 1
p A − pT ,
dp A , dt q A = qO1 − qO 2 , = qO1 ,
p P − p T = ( p P − p A ) + ( p A − p T ).
qP
15
Physical System Diagrams
Hydraulic Schematic
SimHydraulics Model
16
Demonstrations
17
Building Blocks
Mechanical
Mechanical
Signal
Hydraulic
Hydraulic
18
Actuation
19
Multidomain with SimMechanics
20
Two Approaches to Modeling Dynamic Systems First-Principles Modeling
Use an understanding of the system’s physics to derive a mathematical representation
− L2 sin(α ) + nw2 (− sin(α − γ )) sin(γ ) − ne ( − sin(α − γ )) cos(α − γ )α& 2 − n cos(α − γ )γ& 2 α& = ∫ 1 − ne sin 2 (α − γ )
dγ
21
Two Approaches to Modeling Dynamic Systems First-Principles Modeling
Use an understanding of the system’s physics to derive a mathematical representation
Data-Driven Modeling
Use system test data to derive a mathematical representation
⎡ s +1 ⎤ 2 α )⎥+ nw (− sin(α − γ )) sin(γ ) − ne ( − sin(α − γ )) cos(α − γ )α& ⎢ 3 − L sin( α& =s∫ +3s +2 ⎥ 1 − ne sin (α − γ ) H(s) = ⎢ 2 ⎢ s +3 ⎥ ⎥ ⎢ 2 ⎣ s +s +1 ⎦ 2
2
2
2
− n cos(α − γ )γ& 2
dγ
22
Each Approach Has Its Merits First-Principles Modeling
Data-Driven Modeling
Advantages: Provides insight into the
Advantages: Can be a fast method for
system’s underlying behavior Enables performance prediction for unbuilt systems
developing an accurate model Instills confidence because it uses data from an actual system
Disadvantages:
Disadvantages:
Effects like friction and turbulence are difficult to characterize May be time consuming to develop
Requires a physical system to acquire test data Lacks description of physics of the system May need multiple data sets to cover range of system operation 23
Tools that Span Both Modeling Approaches Complete Modeling Environment
Data-Driven
First-Principles Simulink SimHydraulics SimMechanics SimDriveline SimPowerSystems
Simulink® Parameter Estimation
System Identification Toolbox Neural Network Toolbox Fuzzy Logic Toolbox 24
Inform Model with Test Data Simulink Parameter Estimation
Data fitting and optimization techniques Sets parameters defined by physics-based modeling tools
25
Code Generation with Real-Time Workshop®
Generate ANSI C code Hardware-in-the-loop (HIL) simulations S-functions In-house code
26
General Engineering Simulation
MATH
MATLAB & Simulink
Domain Programming Effort Knowledge
Engineering Simulation
Flexibility of mathematical modeling enables you to simulate almost anything. 27
Hydraulic Engineering Simulation MATLAB & Simulink
MATH
Domain Programming Effort Knowledge
SimHydraulics
Dom. Know.
Prog. Effort
Hydraulic Simulation
SimHydraulics brings you further by reducing your requirements for hydraulic domain knowledge and programming effort. 28
Multidomain Simulation MATLAB &Simulink
MATH
DK
PE
SimMechanics
DK.
PE
SimPowerSystems
DK.
PE
SimDriveline
DK.
PE
SimHydraulics
DK.
PE
Controls Tools
DK
PE
Real Time Workshop
DK.
PE
Parameter Estimation
DK.
PE
Multidomain Simulation
The MathWorks provides the best combination of tools for multidomain simulations. 29