3.5

3.5 | 2 ratings Rate this file 84 Downloads (last 30 days) File Size: 267 KB File ID: #38339
image thumbnail

Engine Cooling Model in Simscape

by

 

27 Sep 2012 (Updated )

Thermal fluid system in Simscape language using full-flux modeling method

| Watch this File

File Information
Description

This file contains a model of an engine cooling system built using the Simscape Thermal Liquid Library. A radiator, thermostat, hoses, coolant, and a pump are included in the model. Heat is transferred from the engine to the fluid, and the thermostat opens the fluid path through the radiator when the activation temperature is reached. The fluid properties change based on pressure and temperature using lookup tables implemented in the Simscape language. The table lookup data was generated using REFPROP supplied by NIST. This example uses the full-flux modeling technique. Consult the model description as well as the Simscape language source code and comments for more information on this approach.
Please read the README.txt file to get started.

For an explanation of this model and the full-flux modeling method, watch this video (3 min):
http://www.mathworks.com/videos/modeling-an-engine-cooling-system-71894.html

To view a webinar (35 minutes) about the Simscape language, go to:
http://www.mathworks.com/videos/physical-modeling-with-the-simscape-language-81733.html

To find other physical modeling examples, search for posts with the keyword "physical modeling"
http://www.mathworks.com/matlabcentral/fileexchange/?term=%22physical+modeling%22

To learn more about MathWorks Simscape products, go to:
http://www.mathworks.com/physical-modeling/

Acknowledgements

This file inspired Refrigeration Cycle In Simscape.

Required Products Simscape
Simulink
MATLAB
MATLAB release MATLAB 8.2 (R2013b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
11 Mar 2014 Jon

Steve, I have downloaded and unzipped this model and followed the directions in the readme. However the model is full of "bad link" blocks and fails to run, with the error "failed to load library 'EngineCoolingComponents_lib'".
Am I missing something? I am running 2012b.
Many thanks.

18 Dec 2013 Steve Miller

The media data from REFPROP was imported to MATLAB using their provided MATLAB interface. Visit the FAQ section for REFPROP to get the latest files for interfacing MATLAB and REFPROP

http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm#MatLabApplications

10 Dec 2013 Andreas

I forgot something:
How did you create the media data with refprop?

10 Dec 2013 Andreas

Great model, could you provide more examples using the thermal liquid library?
Regards
Andreas

10 Dec 2013 Steve Miller

Luca and Michael -- I think this example was created in a MATLAB release that is later than the one you're using. This submission contains a version compatible with R2012b and beyond, and a separate version compatible with R2013b and beyond. If you are using a MATLAB release *before* R2012b, neither will work ("Bad link" error). Please check your release and use the version compatible with your release.

The release that is compatible with this submission is indicated in the "File Information" field above.

--Steve

10 Dec 2013 Michael

It also doesn't work for me. I am using R2012, and when I run the code it generates an error. I run the startup file, and then the mdl file. The model loads, however the pump, hose, radiator, fluid properties, thermostat, and bypass hose all display "Bad link". Any suggestions?

09 Dec 2013 Steve Miller

Hi Luca -- which release are you using, and what message did you receive?

09 Dec 2013 Luca

The file does not work

23 Jul 2013 Rajeev

Hi there,

I was going over the video and the file. In the video, you have one temp sensor and two mass flow sensors. The file has only the temperature sensor. I am trying to add some temperature sensors and flow sensors using the methods described in the videos but not links do not get connected. I am a newbie in Simscape so probably missing something.

How can I add temperature and flow sensors in the example given? Any help would be highly appreciated.

Thank you.

22 Oct 2012 Steve Miller

Hello there,
Thank you for your comments.
Since table look-up functions have been introduced in Simscape during the 12a release, this example cannot be run in its current state. The underlying reason is that fluid properties, as defined in the main classes ('TwoportsIncompressible.ssc' and 'TwoportsCompressible.ssc'), are described using table look-up functions.
To work around this, you may consider defining your own analytical description of the properties as functions of pressure and temperature.
Thank you,

19 Oct 2012 leclercq

hello
it looks very complete when i read the code. that's a very good job.
but i can't launch it because i have a matlab 2010 version. when i launch startup, it tell me that there is unexpected matlab operator in TwoportsIncompressible.ssc line 42 column 82. if i try to put == instead of =, it tell me that there is a unknow variable 'interpolation'.
is there something to do to launch it on matlab 2010 or can't we?
thanks for answer

Updates
08 Oct 2012

Updated description to add link to video. No change to files.

14 Nov 2013

Submission compatible with Simscape Thermal Liquid Library added in R2013b.

31 Jan 2014

Added MATLAB code for extracting fluid property data from REFPROP from NIST. See README.txt file for instructions.

17 Mar 2014

Adding MATLAB code showing how to get data from REFPROP into MATLAB. See README.txt for details. --Steve

17 Apr 2014

Fixed webinar link.

Contact us