File Exchange

image thumbnail

Dual Clutch Transmission Model in Simulink

version 2.3 (16.3 MB) by

Model of a dual-clutch transmission with MATLAB scripts for optimizing the shift schedule.

55 Downloads

Updated

View License

This file contains a dual-clutch transmission model built using Simscape and Simscape Driveline that can be configured for control algorithm development or optimization tests. The clutch states and pre-selection of the gears via dog clutches is controlled by a state machine modeled in Stateflow. Model variants for the transmission and vehicle dynamics can be selected using configurable subsystems. MATLAB scripts demonstrate how to optimize a shift schedule for maximum fuel economy, and how to speed that process using parallel computing. This model can be configured for hardware-in-the-loop testing.

Please read the README.txt file to get started.

See the optimization examples in this video (5 min):
https://www.mathworks.com/videos/optimizing-shift-schedule-to-maximize-fuel-economy-68820.html

Learn about model tuning, parameter sweeps, and optimization tasks in this webinar:
https://www.mathworks.com/videos/shift-schedule-optimization-of-a-dual-clutch-transmission-81828.html

Find other Simscape examples by searching posts for the keyword "physical modeling"
https://www.mathworks.com/matlabcentral/fileexchange/?term=%22physical+modeling%22

Learn more about MathWorks Simscape Products:
https://www.mathworks.com/physical-modeling/
You may reuse this content, with or without modification, in your work.
Please follow the conditions of the license file and use the following citation:
[1] Miller, Steve (2017), Dual Clutch Transmission in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/32246) MATLAB Central File Exchange. Retrieved on <date you downloaded submission>

Comments and Ratings (13)

league yan

very helpful

baby_23

amazing

xiang ge

It is perfect!

Shiwei Xu

This demo is so good!!!

Steve Miller

Steve Miller (view profile)

Hi Chris -- do you have a license for the MathWorks product Model-Based Calibration Toolbox? That product is required for the data-driven model we have used. If you ">>which xregmaskinitialization -all" and get "xregmaskinitialization not found" then you don't have it. You could probably get a trial license of it from your sales rep.

--Steve

Chris

Chris (view profile)

This is a great model but whenever I change the Block choice of the Engine to 'Data Driven' I get the following error.

"Error in 'Dual_Clutch_Trans/Engine/Data Driven/MBC Engine Model From Dynamometer Data/MBC Brake Torque/xregtwostage/Local Model': Initialization commands cannot be evaluated.

Caused by:
Undefined function or variable 'xregmaskinitialization'."

Its a pity as I am building a diesel engine model and this would have been a great model to learn from.

olivier

Sorry, I've realized that we don't have xPCtarget ...

olivier

I've tried to run the simulation, but I get the following error:

Making simulation target "Dual_Clutch_Trans_sfun", ...

'Dual_Clutch_Trans_sfun.bat' is not recognized as an internal or external command,
operable program or batch file.

I'm running Matlab 64bits on Windows 7 with all the necessary toolboxes and compilers.

Venche

Venche (view profile)

Shusen

Shusen (view profile)

Updates

2.3

Added R2017b version

2.2

Added R2017a version and text for citing submission in other works. Made startup file compatible with Mac

2.1

Added R2016b version.

2.0.0.1

Updated license

2.0

Fixed broken hyperlink in submission description.

2.0

Fixed webinar link only.

2.0

Updated for R2016a. Added hyperlinks to model canvas to change subsystem variants.

1.10

Fixed webinar link.

1.9

Updated link to optimization tasks video in "Description". No change to submission files.

1.8

Updated MATLAB Release information to R2013a

1.6

Zip contains R2013a version, as well as R2012b and R2011b versions.

1.5

Corrected release (zip file contains R2011b version)

1.2

Added 3D animation. The gearbox VRML model is based on Bachelor Thesis of Mr. Jaroslav Prochazka, Department of Computer Graphics and Interaction, Czech Technical University in Prague, Czech Republic.

1.1

Added link to video.

MATLAB Release
MATLAB 9.2 (R2017a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Dual_Clutch_Trans_R11b/Fuel_Consumption/

Dual_Clutch_Trans_R11b/Libraries/Animation/

Dual_Clutch_Trans_R11b/Local_Solver/

Dual_Clutch_Trans_R11b/Optim/

Dual_Clutch_Trans_R11b/Param_Sweep/

Dual_Clutch_Trans_R11b/Param_Sweep/Param_Sweep_Res/

Dual_Clutch_Trans_R11b/Reports/

Dual_Clutch_Trans_R11b/Scripts_Data/

Dual_Clutch_Trans_R11b/

Dual_Clutch_Trans_R11b/Tune_Abstr_Model/Plot_Prep/

Dual_Clutch_Trans_R13b/Fuel_Consumption/

Dual_Clutch_Trans_R13b/Libraries/Animation/

Dual_Clutch_Trans_R13b/Libraries/Engine/

Dual_Clutch_Trans_R13b/Local_Solver/

Dual_Clutch_Trans_R13b/Optim/

Dual_Clutch_Trans_R13b/Param_Sweep/

Dual_Clutch_Trans_R13b/Param_Sweep/Param_Sweep_Res/

Dual_Clutch_Trans_R13b/Reports/

Dual_Clutch_Trans_R13b/Scripts_Data/

Dual_Clutch_Trans_R13b/

Dual_Clutch_Trans_R13b/Tune_Abstr_Model/Plot_Prep/

Dual_Clutch_Trans_R17a/Fuel_Consumption/

Dual_Clutch_Trans_R17a/Libraries/Animation/

Dual_Clutch_Trans_R17a/Libraries/Engine/

Dual_Clutch_Trans_R17a/Local_Solver/

Dual_Clutch_Trans_R17a/Optim/

Dual_Clutch_Trans_R17a/Param_Sweep/

Dual_Clutch_Trans_R17a/Param_Sweep/Param_Sweep_Res/

Dual_Clutch_Trans_R17a/Reports/

Dual_Clutch_Trans_R17a/Scripts_Data/

Dual_Clutch_Trans_R17a/

Dual_Clutch_Trans_R17b/Fuel_Consumption/

Dual_Clutch_Trans_R17b/Libraries/Animation/

Dual_Clutch_Trans_R17b/Libraries/Engine/

Dual_Clutch_Trans_R17b/Local_Solver/

Dual_Clutch_Trans_R17b/Optim/

Dual_Clutch_Trans_R17b/Param_Sweep/

Dual_Clutch_Trans_R17b/Param_Sweep/Param_Sweep_Res/

Dual_Clutch_Trans_R17b/Reports/

Dual_Clutch_Trans_R17b/Scripts_Data/

Dual_Clutch_Trans_R17b/

Dual_Clutch_Trans_R11b/

Dual_Clutch_Trans_R11b/Libraries/Animation/

Dual_Clutch_Trans_R11b/Libraries/Transmission/

Dual_Clutch_Trans_R11b/Libraries/Vehicle/

Dual_Clutch_Trans_R11b/Local_Solver/

Dual_Clutch_Trans_R11b/Tune_Abstr_Model/

Dual_Clutch_Trans_R13b/

Dual_Clutch_Trans_R13b/Libraries/Animation/

Dual_Clutch_Trans_R13b/Libraries/Engine/

Dual_Clutch_Trans_R13b/Libraries/Transmission/

Dual_Clutch_Trans_R13b/Libraries/Vehicle/

Dual_Clutch_Trans_R13b/Local_Solver/

Dual_Clutch_Trans_R13b/Tune_Abstr_Model/

Dual_Clutch_Trans_R17a/

Dual_Clutch_Trans_R17a/Libraries/Animation/

Dual_Clutch_Trans_R17a/Libraries/Engine/

Dual_Clutch_Trans_R17a/Libraries/Transmission/

Dual_Clutch_Trans_R17a/Libraries/Vehicle/

Dual_Clutch_Trans_R17a/Tune_Abstr_Model/

Dual_Clutch_Trans_R17b/

Dual_Clutch_Trans_R17b/Libraries/Animation/

Dual_Clutch_Trans_R17b/Libraries/Engine/

Dual_Clutch_Trans_R17b/Libraries/Transmission/

Dual_Clutch_Trans_R17b/Libraries/Vehicle/

Dual_Clutch_Trans_R17b/Tune_Abstr_Model/

Dual_Clutch_Trans_R11b/Scripts_Data/html/