View License

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

» Watch video

4.6 | 10 ratings Rate this file 32 Downloads (last 30 days) File Size: 1.49 MB File ID: #46448 Version: 1.2
image thumbnail

Refrigeration Cycle in Simscape


Leo Ng (view profile)


29 May 2014 (Updated )

Refrigeration cycle model in a custom Simscape two-phase flow domain.

| Watch this File

File Information

This file contains a refrigeration model built using a custom Simscape two-phase flow domain. The model contains a compressor, a condenser, an expansion valve, and an evaporator. The R-134a refrigerant leaves the compressor as a hot gas. It condenses in the condenser via heat transfer with the environment. The pressure drops as the refrigerant passes through the expansion valve. The drop in pressure causes the refrigerant to vaporize in the evaporator as it absorbs heat from the refrigerator compartment. The cold gas then returns to the compressor to repeat the cycle. The controller turns the compressor on and off to maintain the refrigerator compartment temperature around the desired temperature.
The fluid properties of the R-134a refrigerant spanning the liquid phase to the vapor phase are described by look-up tables as a function of pressure and specific internal energy. Homogeneous equilibrium is assumed in the phase transition regime. The values are obtained from the NIST Chemistry WebBook "Thermophysical Properties of Fluid Systems":

Please read the README.txt file to get started.

To find other physical modeling examples, search for posts with the keyword "physical modeling"

To learn more about MathWorks Physical Modeling Products, go to:


Engine Cooling Model In Simscape inspired this file.

Required Products Simscape
MATLAB release MATLAB 8.3 (R2014a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
23 Dec 2016 Erdem Ermis

First of all, thank you for this work. I want to use this cycle for different refrigerants. Can I change the refrigerant? For instance, I want to use R32 instead of R134a. If I can change this parameter, could you give me some information about it? Thanks in advanced.

19 Dec 2016 Varunjith V

It is getting crashed on 2015b.

Comment only
04 Aug 2016 Pavel Roslovets

28 May 2016 Daniel Buhagiar

Could you please explain how you decided on the transfer function of the "compressor lag".

Why use the term (9/controller_time_constant)^2 and how did you get the value of the time constant?

13 May 2016 Indir Jaganjac

17 Nov 2015 Matt Lowe



great work. I was trying to use a different rating compressor which is actually speed controlled. what are the changes do i make to model to implement a higher rating compressor?

28 Apr 2015 suresh

suresh (view profile)

please help me sir, leo ng

if i tried to modify the refrigerant is not possible in this file. give me a guide lines

email id is

13 Apr 2015 Ivan

Ivan (view profile)

15 Dec 2014 Andreas

Andreas (view profile)

Very interesting!

30 Sep 2014 Diwakar KrishnaMoorthy

30 May 2014 1.1

Changed submission name.

06 Aug 2014 1.2

Updated domain definition and equations.

Contact us