Modeling and Simulation of Physical Systems With Simscape
Modeling and Simulation of Physical Systems With Simscape
2
Physical Modeling with Simscape is easy and accurate!
Battery Ah
Why
4
The CAT Triplex Plunger Pump
Predictive
No Maintenance?
5
Pressure transducer is available
6
Triplex Pump
Failure Algorithm
Diagnosis
Pressure
▪ Crankshaft drives three plungers Sensor
Component
– Each 120 degrees out of phase
Failure
– One chamber always discharging
– Smoother flow than single
or duplex piston pumps Outlet
Crankshaft
Inlet
7
8
Introduction to Simscape Multibody
▪ Primary uses
– System-level analysis
– Control development in Simulink
– Predictive Maintenance study
9
Modeling Dynamic Systems:
two approaches
First-Principles Modeling
- L2 sin(a ) + nw2 (- sin(a - g )) sin(g ) - ne( - sin(a - g )) cos(a - g )a& 2 - n cos(a - g )g& 2
a& = dg
1 - ne sin (a - g )
2
10
Modeling Dynamic Systems:
two approaches
s +1
s 3 + 3s 2 + 2
H (s) =
s +3
2
2
s + s +1
11
Both have Advantages & Disadvantages
Advantages: Advantages:
▪ Insight in behavior ▪ Fast
▪ Physical parameters ▪ Accurate
Disadvantages: Disadvantages:
▪ Friction and turbulence? ▪ Requires plant
▪ Time consuming ▪ Requires data acquisition system
▪ Requires expertise
12
Tools that span both modeling approaches
Enhance Advantages, Reduce Disadvantages
First-Principles Data-Driven
Simulink Simulink System
Design Identification
Simscape Optimization
Machine
Learning
First-Principles Data-Driven
Simulink
14
First-Principles Modeling in Simulink
▪Traditional process
Actuators
∫∫
Sensors
Physical
System
Set up differential
Plant and algebraic equations
▪ Using Simscape
Actuators
Sensors
Physical
System
Build model by
Plant combining components
15
Goal of Simscape
Simscape
Simulink
MATLAB 16
Simscape:
modeling in multiple domains
▪ Use Fundamental
Analogy between
Physical Domains
17
How things are measured
18
Tools that span both modeling approaches
Enhance Advantages, Reduce Disadvantages
First-Principles Data-Driven
Simulink
Language
19
Simscape Language
▪ MATLAB-based
▪ Create new domains
▪ Custom components
▪ User defined libraries
▪ Object oriented
dvc vc
i = (C0 + Cv v) +
dt Rd
v = vc + iR
20
Simscape Language: setup
▪ Syntax closely follows MATLAB language
21
Simscape Language: nodes
22
Simscape Language: parameters
▪ Parameters, default
values, units, and dialog
box text all defined in the
Simscape file (extension
.ssc)
23
Simscape Language: equation
▪ Equations defined
implicitly means no pre-
defined inputs and dv c v
i = ( C0 + C v v ) +
outputs dt Rd
v = v c + iR
24
Modeling and Simulation of Physical Systems with Simscape
25
26
Battery Management System
▪ BMS is necessary
– Safety
– Performance
– Durability
27
Battery Management System
▪ BMS includes
– Monitoring :
▪ State of Charge (SoC)
▪ State of Health (SoH)
– Control:
▪ Charging
▪ Temperature
▪ Current
28
Competent Battery Model
control
▪ Battery Modeling
– Equivalent Circuit Model
– Parameter Estimation
29
Battery Management System
▪ Charging Control:
– CCCV Charging method
– Cell Balancing Ensure all cells have equivalent SoC during charging.
30
Physical Modeling with Simscape is easy and accurate!
▪ Simscape
▪ Multibody
▪ Fluids
Public ▪ Electrical Power
▪ Driveline
On-Site
Exhibition
MathWorks Training Booth
32
Thank you for attending…
▪ More support
▪ Visit www.mathworks.com
▪ Info: [email protected]
[email protected]
https://www.mathworks.com/matlabcentral/fileexchange/65605-predictive-maintenance-in-hydraulic-pump
33