File Exchange

## Refrigeration Cycle in Simscape

version 1.2.0.0 (1.49 MB) by Leo Ng

### Leo Ng (view profile)

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

Updated 06 Aug 2014

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":
http://webbook.nist.gov/chemistry/fluid/

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

http://www.mathworks.com/physical-modeling/

### Cite As

Leo Ng (2020). Refrigeration Cycle in Simscape (https://www.mathworks.com/matlabcentral/fileexchange/46448-refrigeration-cycle-in-simscape), MATLAB Central File Exchange. Retrieved .

Sophie Ross

### Sophie Ross (view profile)

This model is very useful! However, I was wondering how you model the performance of the compressor? Is this demonstrated through compressor lag? If so, how do you determine the time constant for a specific compressor or is there another way to model the compressor?

ASUTOSH JOSHI

mama papa

### mama papa (view profile)

Hi,
Great work.
Please could you explain me how you decided on the tranfert function of the compressor?
mingougustave@gmail.com

Anna Muravska

### Anna Muravska (view profile)

Could you please explain how you decided on the transfer function of the "compressor lag". Can I change the power of compressor there?
Why use the term (9/controller_time_constant)^2 and how did you get the value of the time constant?
anna.muravska.am@gmail.com

Erdem Ermis

### Erdem Ermis (view profile)

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.
erdemermis@outlook.com

Varunjith V

### Varunjith V (view profile)

It is getting crashed on 2015b.

Pavel Roslovets

Daniel Buhagiar

### Daniel Buhagiar (view profile)

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?

Indir Jaganjac

Matt Lowe

### Matt Lowe (view profile)

ROJER KAVIN RAM SALEM RAMESH BABU

### ROJER KAVIN RAM SALEM RAMESH BABU (view profile)

hi,

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?

suresh

### suresh (view profile)

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

email id is vpsuresh4@gmail.com

Ivan

Andreas

### Andreas (view profile)

Very interesting!

Diwakar KrishnaMoorthy

### Diwakar KrishnaMoorthy (view profile)

 6 Aug 2014 1.2.0.0 Updated domain definition and equations. 30 May 2014 1.1.0.0 Changed submission name.
##### MATLAB Release Compatibility
Created with R2014a
Compatible with any release
##### Platform Compatibility
Windows macOS Linux