File Exchange

image thumbnail

Predictive Maintenance in Hydraulic Pump

version (12.2 MB) by Steve Miller
Predictive maintenance algorithm developed using digital twin of hydraulic pump modeled in Simscape


Updated 23 Jun 2020

GitHub view license on GitHub

This example models a triplex pump with a predictive maintenance algorithm that can detect which parts of the pump are failing simply by monitoring the pump output pressure.

The Simscape model of the pump can be configured to model degraded behavior due to seal leakage, blocked inlets, bearing wear, and broken motor windings. MATLAB code shows how to accelerate testing by reusing results from previous simulations. The model can be used to generate training data for the machine learning algorithm and can be used to test the deployed algorithm. MATLAB Live Scripts show you how to develop the algorithm.

Mechanical, hydraulic, and electrical parameters are all defined in MATLAB which lets you easily resize the pump. The pump housing is imported from CAD.

Please read the README.txt file to get started.

Use the Download button to get files compatible with the current release of MATLAB.
Use the links below to download files compatible with earlier releases of MATLAB.

For R2019b:
For R2019a:
For R2018b:
For R2018a:
For R2017b:

See how to model a fluid actuation system in Simscape (7 min):

To see an overview of this multibody modeling in Simscape Multibody, watch this video (1.5 min):

Read the e-book “Predictive Maintenance with MATLAB”

Find other Simscape examples by searching posts for the keyword "physical modeling"

Learn more about MathWorks Simscape Products:

Cite As

Steve Miller (2020). Predictive Maintenance in Hydraulic Pump (, GitHub. Retrieved .

Comments and Ratings (6)

Aman Ullah Khan

Steve Miller

@Abhijit - contact me directly via my author page and send me your email and which release you want and I can email it to you. I have this example from R2017b and higher.

Abhijit Das

Wondering how I can open this file when I don't have 2019 version for export. Do you by any chance has the older versions as well?

James Ang

Fisher Yu

great job


See release notes for this release on GitHub:

See release notes for this release on GitHub:

Connected to GitHub repository.

Added links to download files compatible with earlier releases of MATLAB.

Added R2019a version.

Added R2018b version.

Added R2018a version. Contact me for R2017b version.

Initial version.

MATLAB Release Compatibility
Created with R2019b
Compatible with R2017b to R2019b
Platform Compatibility
Windows macOS Linux