Professional Documents
Culture Documents
net/publication/236851445
CITATIONS READS
13 5,386
2 authors:
Some of the authors of this publication are also working on these related projects:
Analysis of Subsea Energy Supply Systems for Improved Maintenance Using ANFIS and TOPSIS View project
All content following this page was uploaded by Ogheneruona Diemuodeke on 22 April 2014.
[a]
Mechanical Engineering Department, Faculty of Engineering,
University of Port Harcourt, Rivers State, Nigeria. Oko, C.O.C., Diemuodeke, E.O. (2013). MS Excel Spreadsheet Add-
[b]
Process Systems and Energy Group, Department of Offshore, Process in for Thermodynamic Properties and Process Simulation of R152a.
and Energy Engineering, Cranfield University, Cranfield, UK. Energy Science and Technology, 5(2), XX. Available from: http://www.
* Corresponding author. cscanada.net/index.php/est/article/view/j.est.1923847920130502.756.
DOI: http://dx.doi.org/10.3968/j.est.1923847920130502.756.
Received 09 January 2013; accepted 22 April 2013
Abstract
Microsoft Excel add-in has been developed for the
INTRODUCTION
thermodynamic properties of refrigerant DiflouroEthane Thermodynamic properties of refrigerants are important
(R152a) an alternative refrigerant to R134a, which has no in refrigerating process analysis and system design. The
Ozone Depletion Potential. Thermodynamic properties’ property data are usually determined semi-empirically
equations for R152a were formulated from a popular and are either tabulated or provided as charts of
equation of state. The equations were transformed into a properties. But, the use of property tables frequently
computer program in Microsoft Excel-Visual Basic for requires interpolation between the tabulated data, which
Application in Integrated Development Environment is time consuming and reading the property charts is also
as an Excel add-in. The add-in is able to compute the strenuous, time consuming and always prone to errors.
thermodynamic properties of R152a refrigerant - specific However, the extensive use of computing facilities in
volume, internal energy, enthalpy, and entropy in the wet, contemporary engineering practice limits the use of
subcooled and superheated-vapor regions. The calculated property charts (Dromey, 1985). The trend is towards
values are accurate compared to the standard reference the development of computer packages that are capable
properties tables for refrigerants. Computed properties’ of automatic generation of the values of the desired
data can easily be used in the Excel spreadsheet for properties, and thus, facilitating their use in engineering
process analysis, simulation and design of R152a analysis. The use of thermodynamics properties computer
refrigerating plants. The solution scheme and computer packages can improve the curiosity of engineering
language adopted in this work are easy to apply and use students in the understanding of the properties tables and
as opposed to the available sophisticated and expensive charts (Tan and Chua, 2003).
computer software packages; and the MS Excel add-in Beckman and Klein (1996) developed a commercial
presented in this paper would be useful to both practicing software package, which is not affordable by majority of
engineers and engineering students in the area. An the developing natures, called the Engineering Equation
application was illustrated by solving a typical problem in Solver (EES) that has the capability of analyzing
R152a refrigerating process analysis. thermodynamic and transport properties of many fluids
Key words: Excel add-in; Excel-VBA; used in engineering. EES incorporates the programming
Thermodynamic Properties; R152a; Refrigeration. structure of C and FORTRAN with a built-in solver,
graphical capabilities and many mathematical functions.
Refprop is also a FORTRAN-based commercial software
that allows a user to look up thermodynamic properties
for most refrigerants currently in use. In addition to pure
refrigerant properties, Refprop (computer software) uses instead of the Internet applets, would be of greater use
either the Carnahan-Startind-DeSantis (CSD) hard sphere in regions where there is limited or unreliable Internet
or the Modified Benedict-Webb- Rubin (MBWR) equation access. Zhang and Muehlbauer (2012) developed MS
of state to calculate the properties of refrigerant mixtures. Excel tool, with embedded macros of Visual Basic
The Visual Basic for Applications (VBA) is a macro Application, for simulation of residential heat pump. The
language available in Microsoft Office applications and Zhan and Muehlbauer (2012) Excel tool cannot compute
in other non-Microsoft software (e.g. Arc Info). Excel is thermodynamic properties; moreover, is not installable as
a powerful spreadsheet in Microsoft Office. Even though an add-in.
it was developed primarily for business applications, its Therefore, this paper presents a user-friendly
ease of use and wide distribution make it a very powerful committee-type Excel add-in for the thermodynamic
tool for scientists and engineers (Deane, 2005). Excel properties of R152a, ThermoProp_R152a, which provides
and Visual Basic developed separately, and were only the facility for their direct use in process analysis using the
linked by Microsoft once it started to use VBA as the Excel spreadsheet. The choice of R152a is because it is an
macro language for its Office products. VBA follows alternative to R134a; both refrigerants, R134a and R152a,
the syntax of Visual Basic (VB), and an Integrated are replacements for the formerly popular R12, which has
Development Environment (IDE) is available in the been phased out for having Ozone Depletion Potential
different applications that offer VB. Excel-VBA contains (ODP) (Ghodbane, 1999; Arora, 2000; Oko, 2012).
a lot of pre-programmed elements like forms and controls The computer language adopted in this work is easy to
(buttons, text boxes, list boxes, etc.). Many mathematical install, use and modify as opposed to the sophisticated
and non-mathematical functions are accessible through and expensive computer software packages used by most
the spreadsheet and which are not available in Visual researchers in the area (Beckman and Klein, 1996).
Basic (Dean et al, 2005). Excel provides graphics, which
are relatively easy to manipulate compared with graphics
within Visual Basic. Main disadvantage of Excel-VBA is 1 GOVERNING EQUATIONS
that, one cannot create a stand-alone program with it. That The changes in the specific internal energy (u), specific
is, the user needs to have Excel in his or her computer to enthalpy (h) and specific entropy (s) at constant
be able to use Excel-VBA programs. However, the Excel temperature in the vapour phase are, respectively,
add-ins are computer programs (tools) written within the ଶ
߲ܲ
Excel environment that extends the functionality of the ሺݑଶ െ ݑଵ ሻ ் ൌ න ܶ ൬ ൰ െ ܲ൨ ݀ ݒ (1)
basic product (Liengme, 2000). These tools make difficult ଵ ߲ܶ ௩
ଶ
tasks easier, automate repetitive operations, and add new ߲ܲ
features. Add-ins can increase productivity by focusing ሺݏଶ െ ݏଵ ሻ ் ൌ න ൬ ൰ ݀ ݒ (2)
ଵ ߲ܶ ௩
on a single task or function. Most Microsoft Excel add-
ins can be divided into two broad categories: add-ins that and ሺ݄ଶ െ ݄ଵ ሻ ் ൌ ሺݑଶ െ ݑଵ ሻ ሺܲଶ ݒଶ െ ܲଵ ݒଵ ሻ (3)
work with Microsoft Excel (committee), and add-ins that The specific latent heat is given by the Clapeyron
take over the complete workspace (dictators). equation as
Most of the computer software packages for the ݀ܲ௦
൫݄ ൯ ൌ ൬ ൰ ܶ൫ݒ െ ݒ ൯ (4)
determination of thermodynamic properties and simulation ݀ܶ௦
of refrigeration processes require subscription, which are Where v, P, and T are the specific volume (m3kg-1),
generally expensive for the developing countries. One the absolute pressure (kPa) and the absolute temperature,
way to make some of these computer tools available to respectively; the indices s, f, g, and fg denote saturation,
the developing countries is through the Internet. With the liquid saturation, vapour saturation and latent conditions,
rapid evolution of Internet, there are now several websites respectively.
that provide online computation of thermodynamic The saturation vapour correlation for R152a is given
properties for pure substances. There is a good agreement as (Arora, 2000)
between the results generated by the free online Internet �� ��
applets and those generated by the commercial desktop ln � � � ��7.��5���� � ��� � � �.������� � ��� ��.� �
�� ��
application software (Tan and Chua, 2003). However,
a report has shown that about 13.5% only of African 2.57557�� � ��� ��.� �
population has Internet access (Internet World Stats, (5)
2012), therefore, Internet applets for thermodynamic ்ೞ
Where ܶ௦ ൌ , , the index c refers to the critical state
properties may not be available to the majority of African ்
students. Since Microsoft Office is readily available in andis reduced saturation temperature
most computers it suffices, therefore, to say that Microsoft The Soave Redlich-Kwong equation of state (Kamei et
embedded software for thermodynamic properties, al, 1990) is used for the analysis of R152a:
ܴܶ ܣ ሾͳ ݉ሺͳ െ ܶǤହ ሻሿଶ The values of the molecular mass, the critical pressure
ܲൌ െ (6) and critical temperature for R152a are, respectively,
ݒെܾ ݒሺ ݒ ܾሻ —
M =66.051[kg/kmol]; P c=4760[kPa] and Tc=113.3[ oC]
where A c=0.42748R 2T c2/P c, kPam 6kg;b=0.08664RTc (Arora, 2000).
/P c, m 3 kg -1 ;m=0.48508+1.55171ω _ 0.15613ω 2 ;ω=_ The acentric factor (ω) for the analysis of R152a
— — ——
logPsr_1 at Tr =0.7; Tr=T/Tc ;Prs=Ps/Pc ;R=R/M;R=8.3142 properties used here is ω=0.265142; the reference state
-1 -1 —
is the universal gas constant, kJkmol K ; M is the properties (RSP) used in this work are: P o= 4.0[kPa];
molecular mass, kgkmol-1; Tr is the reduced temperature, To = 273.15[K]; ho = 512.9060[ kJ/kg]; and so = 2.6652[kJ/
dimensionless; ω is acentric factor, dimensionless; is kgK].
reduced saturation pressure; and R is the gas constant,
kJkg-1K-1.
The saturation liquid density ( ρf ) and the zero- 2 COMPUTATIONAL ALGORITHM
pressure isobaric specific heat capacity (cpo) for R152a are
The thermodynamic property analysis is carried out in the
given, respectively, as (Arora, 2000)
following steps:
ߩ
ൌ ͳ ͳǤͺͷሺͳ െ ܶ௦ ሻǤଷଶ ሺͳ െ ܶ௦ ሻǤ଼ଷ (7) Start
ߩ 1. Input data
��� � 0�1�1�1 � ������ � 10�� � � ��0���� � (i) obtain the phase of R152a (wet, saturated vapour,
and (8) saturated liquid , subcooled liquid or superheated vapour);
10�� � � ��1�11� � 10��� � �
where ρf and ρc are in kgm-3; and cpo is in kJkg-1K-1 (ii) specify the desired (unknown) property (specific
With the knowledge of two thermodynamic properties enthalpy , specific entropy, specific volume, temperature,
one can find the quality (α) of the refrigerant at the given pressure , specific internal energy, or quality);
state in the wet region, saturated mixture: (iii) obtain the value(s) of any one (for saturated
߮ െ ߮ states) or two (for other states) known properties;
ߙൌ 2. Compute the desired unknown property;
߮ (9)
3. Output the desired data (property name and
where φ,φ and φ =φ _φ are some thermodynamic
f fg g f numerical value);
properties in the wet region, corresponding saturated 4. Use the output for process analysis, if desired;
liquid property and the corresponding latent property of 5. Generate table of properties, if desired;
evaporation, respectively; and . Stop.
The formulations for the specific enthalpy (h), specific
entropy (s) and specific internal energy (u) are obtained
for R152a in the vapour phase by integrating the equation
of state, equation (6), and applying equations (1), (2) and 3 SOFTWARE IMPLEMENTATION
(3), respectively, as follows: The software was developed in Microsoft Excel Visual
� �� �
� � �� � �� � �� � �� ��� �� � ����� � ������ ln Basic for Application (Excel-VBA) as an Excel add-
� � ���
in, called ThermoProp_R152a, using all the relevant
(10) correlations for the thermodynamic property analysis
� �� ������ �� �� �� ���/����� of R152a, given in section 1, the Governing Equations,
� � �� � �� ��� � � ln � �� ���� ln
� � �� � � �� /� and following the computational Algorithm presented
(11) in section 2. Some of the procedures are iterative with
and an error bound of 0.01% (Kreyszig, 2005). The user
�
� � �� � �� � �� ��� �� �
��
����� � ������ ln
�
(12) interface in the software was designed using the control
� � ��� toolbox of Excel-VBA IDE. The interface retrieves
Where G(T)=0.808334T _1.707408(TTc) ; c
-1 -1/2
and supplies information on any of the thermodynamic
ܴܶ properties. A command button control on the form is used
I(T)=1.899074 _ 0.899074(TTc-1) 2; ݒௗ ൌ ; the
ܲ to run a macro that implements a particular function.
index “0” refers to the reference state property; and the After initiating the computation, by clicking on the
superscript “id” refers to the ideal state property. start drop menu, results are transferred to a pre-selected
The specific latent heat hfg is obtained by integrating cell in an active worksheet of the Microsoft Excel. The
equation (5) and then substituting the result into equation thermodynamic analysis is initiated by entering formulas
(4) to get into cells and referencing the addresses of cells that
ଶȀଷ ଶȀହ hold numerical values that are relevant to a particular
ܶ ܶ ܶ
݄ ൌ ܶܲ௦ ቆǤͶͷͺͺ െ ͳǤʹ͵ͳʹ ହȀଷ ͳǤͲ͵Ͳʹʹͺ Ȁହ ቇ ൫ݒ െ ݒ ൯ analysis. The worksheet automatically does the numerical
ܶ௦ଶ ܶ௦ ܶ௦
computation using the formulas entered into the cells.
(13)
3.1 Using ThermoProp_R152a
After a successful installation of the software as an on the menu bar and then click on the Start button of the
Excel Add-in, click on the ThermoProp_R152a menu
Figure 1
Excel Worksheet Showing the Start Drop Menu other cases). Key in the numerical values of the known
By clicking on the start button of the ThermoProp_ properties into the text boxes in the frame captioned Input
R152a menu, the window shown in figure 2 appears. the known. The computational process commences by
Select the analysis type (Saturated Liquid, Saturated clicking on the command button captioned Read. Results
Vapour, Liquid + Vapour, Superheated Vapour or are shown in the output frame below the input the known
SubCooled liquid) by clicking on relevant command frame. Numerical results may also be transferred to the
button. Select the unknown property from the combo worksheet by clicking on the command button captioned
box captioned unknown property. In the combo box transfer. The process continues for another state point by
captioned function of select one known property (for an clicking on the Cont.R152a drop menu shown in figure 1.
unknown saturated property) or two known properties (for
Figure 2
Final Computation Step with Result
Figure 3
Vapour Compression System and Vapour Compression Cycle
Figure 4
Analysis Results with ThermoProp_R152a
Figure 5
RPD of ThermoProp_R152a Data from Data Presented by Arora (2000)
Huayamave, V. A. (2010). Designing of Energy Efficient Indoor Oko, C. O. C. & Diemuodeke, E. O. (2010). Analysis of Air-
Environments Using a Localized Radial Basis Function conditioning and Drying Processes Using Spreadsheet
Meshless Method. M.Eng thesis, University of Central Add-in for Psychrometric Data. Journal of Engineering
Florida, Florida. Science and Technology, 3(1), 7–13.
Internet World Stats (2012). Internet Users, Population and Oko, C. O. C. (2012). Engineering Thermodynamics: An
Facebook Statistics for Africa 2012. Retrieved from Algorithmic Approach, (2nd ed). University of Port
http://www.internetworldstats.com/stats1.htm#africa, Harcourt Press, Port Harcourt.
31/01/2013.
Kamei, A., Piao, C. C., Sato, H. and Watanabe, K. (1990). Tan, F. L. & Chua, P. S. K. (2003). Java Applet on Computation
Thermodynamic Charts and Cycle Performance of HCF- of Thermodynamic Properties of Steam and R134a
134a and HCF-152a, ASHRAE Trans, 96(1), 141-149. refrigerant. Computer Applications in Engineering
Kreyszig, E. (2005). Advanced Engineering Mathematics, 8th Education, 11(4), 211 – 225.
ed. John Willy & Sons Inc, New York. Zhang, M. and Muehlbauer, J. (2012). Life Cycle Climate
Liengme, V. B. (2000) A Guide to Microsoft Excel For Scientist Performance Model for Residential Heat Pump Systems.
and Engineers. Butterworth Heinemann, Woburn. International Refrigeration and Air Conditioning
Conference, July 16-19, Purdue, USA.