Professional Documents
Culture Documents
Click Change Source, then navigate to the location of the Apex.xlam file you downloaded and select
that file. Click OK, then Close the dialog.
A Note to Users:
This spreadsheet serves as an introduction to software intended to accomplish two purposes:
- Faciliate mathematical computation incorporating physical properties and other tabulated data
required in the material and energy balance course
- Train students in proper use of Excel to solve chemical engineering problems, including solution of
systems of algebraic equations using least squares minimization
To partialy accomplish the first of these goals, all of the data in tables are "exposed" as Excel
functions. This means that one could look up electronically most data contained in the text resources
by using an Excel function. Need the molecular weight of heptane? Enter the formula
=MW("heptane"). Need to find the temperature of saturated liquid water at 100 bar? Enter
=SteamSatP(100,"P","T","L") to get the answer.
The second goal is faciliated by the use of an "Equation Solving Wizard" to help students set up
mathematical solutions of the type typically needed in the course in the structure of spreadsheets. It
is hoped that after having the construction of a solution in Excel automated for a problem well
understood they will gain a important skill they can carry on to later courses.
Througout the design of this software, the need to learn important engineering habits is kept
paramount. Units are always an issue, and the software still requires students to think dimensionally.
The data extracted is in the units of the textbook tables, and students will need to either do their
own coversions or learn to use Excel's intrinsic CONVERT() function. While access to Antoine's
coefficient data and even Antoine's equation calculations are available, bubble point calculations are
not provided. There are even places where error trapping has been deliberately omitted-- students
must still critically evaluate their work and take care when performing calculations to ensure
reasonability and appropriateness. Excel comments are added to warn of extrapolation and in some
cases to remind users of units. To maximize the benefits of these comments, it can be helpful to
place only one function call in a formula.
While there will be changes as we move though this process, my hope is that both instructors and
students will find this useful. As feedback is received, the software and its documentation will be
improved.
While there will be changes as we move though this process, my hope is that both instructors and
students will find this useful. As feedback is received, the software and its documentation will be
improved.
ntary Principles
ed and select
rposes:
lated data
ng solution of
s Excel
text resources
Enter
nts set up
preadsheets. It
lem well
is kept
dimensionally.
er do their
ntoine's
alculations are
ed-- students
ensure
n and in some
helpful to
tructors and
tion will be
tructors and
tion will be
Regression, pp. 24-30 and pp. 607-610
Chapter 2 Notes.
Example 2.7-1, p. 24
Slope1(y_values, x_values) Performs a single parameter least
squares regression assuming a zero y-intercept
Linterp(x_values, y_values, x) Interpolates a “y” value at a Rotameter calibration data is provided.
given “x” value from ranges containing a y_values and Flow Rate
corresponding x_values. If extrapolation is performed a Vdot(L/min)
comment is placed in the returning cell.
20.0
52.1
It is worthwhile to note that Excel does have some unit 84.6
conversion capabilitiy.
118.3
=CONVERT(number, from_unit, to_unit) 151.0
The first argument is the number to be converted, and the The text uses a "visual inspection" approach.
second and third argument are text strings representing units. we can assume that the regression should be
The Excel help file entry for CONVERT() can be helpful when a model of the form y=ax (Model 2). For Mod
learning about the limited set of units are available within SLOPE() and INTERCEPT(). These functions use
Excel. Also useful will be the help file example of how to handle text. However, if you have reason to expect th
compound units (including some volume units). apply equation A.1-6 from the appendix A.1. T
SLOPE1(), where the "1" in the function name
In practice, you will find that proper use of the conversion slope.
factors in the text will be best.
160.0
Best
Practices: 140.0 Calibration
Data
Don't forget
to label your 120.0 Model 1
axes with Model 2
units as 100.0
Vdot (L/min)
appropriate.
80.0
60.0
40.0
Linear Interpolation
Data from Page 23
x y To interpolate the value of y when x=2.5 using the Linterp() fun
1 0.3 x1= 2
2 0.7 x2= 3 Watch Out! Order of
y1= operation errors are a
3 1.2 0.7 common mistake when using
4 1.8 y2= 1.2 a calculator to perform
interpolation.
x= 2.5
Best Practices: Be explicit Using the forumula: y= 0.95
when identifying parameters Using Linterp(): y= 0.95
to be used in a formula,
especially when you're
learning how to use that Think about how you would tell
formula. someone about the process of
selecting x1,y1 and x2,y2 based
on x. This is the first step in
programming a function like
Linterp().
sion, pp. 24-30 and pp. 607-610
e 2.7-1, p. 24
H 2
BEST PRACTICE: Reduce significant
O 1 digits displayed to at least a
MWCalc(): If the compound is
not in the database, you need MW of H2O 18.01534 18.015 reasonable number when reporting
to calculate it from its an answer.
hydrogen 2
molecular formula. Names or
symbols are valid inputs. oxygen 1
MW of H2O 18.01534 TRY IT: Change the names of the cells where
compounds or elements are listed. Think about the
numbers that are returned-- are they reasonable?
nk of molecular weight as a
version factor between mass and
es, and don't forget to keep the
s consistent-- g-moles (usually
tten as "plain" moles, mol) go
h grams, kg-mol with kg, lb-mol
h lbm, etc. Numerically, each
sistent set has the same
merical value.
educe significant
at least a
er when reporting
Variable n1
Value 102.3958
Equation LHS
n1+n5=n2 392.5174
0.04*n1+0 9.027899
n2=n3+n4 392.5174
0.023*n2= 9.027899
n4=n5+100390.1215
n2 n3 n4 n5
392.5174 2.395833 390.1215 290.1215
RHS (LHS-RHS)^2
392.5174 8.89E-19
9.027899 4.52E-16
392.5174 1.03E-18
9.027899 1.38E-19
390.1215 2E-18
SUM 4.56E-16
Chapter 5 introduces a couple of new properties accessible from APEx.
Tcrit(compound) returns the critical temperature in K
Pcrit(compound) returns the critical pressure of a compound in atm
he temperature to set
oal Seek setup is shown
UNITS for all: Temperatures in oC, pressures in bar, specific volumes in m3/kg,
specific enthalpies and specific internal energies in kJ/kg
-2878.5
The following examples demonstrate how the functions may be used to obtain values from the steam tables.
Show that water at 400 °C and 10 bar is superheated steam and determine its specific volume,
specific internal energy, and specific enthalpy relative to liquid water at the triple point, and its
dew point.
Show that water at 400 °C and 10 bar is superheated steam and determine its specific volume,
specific internal energy, and specific enthalpy relative to liquid water at the triple point, and its
dew point.
Concluding that the given point is outside the closed region is far easier examining the table in print. Once that is done,
we can use SteamSH to calculate the desired quantities:
T= 400 °C
P= 10 bar
Hhat= 3264 kJ/kg
Uhat= 2958 kJ/kg
Vhat= 0.307 m3/kg
The dew point at this pressure is more readily determined from the saturated steam table.
Tdp= 179.9 °C
The remainder of the examples here only demonstrate accessing steam table values needed for the problem solution.
Vapor product
Saturated vapor
P= 17 bar
Hhat= 2793.4 kJ/kg
Product
T= 300 °C
P= 1 atm
1.01325 bar
Hhat 3= 3073.97
e steam tables.
Other lookup functions in this chapter include heats of solution/mixing, and approximating heat
capacity with Kopp's Rule.
Enthalpy(compound, T1, T2, [temperature units],[state]) Integrates the constant pressure heat
capacity correlations for a temperature change from T1 to T2 in kJ/(mol·°C). If temperature units
are not specified (“K”, “R”, “F”) units of °C are assumed. If state (“l”, “g”, “c”) is not specified, the first
entry in the table is used. If either temperature is outside of the correlation range, a comment is set
for the calling cell indicating “Out of Range”. If multiple coefficient sets are available for a given
species and state, coefficients for the narrowest range containing T1 and T2 is used.
HsHCl(r) Returns the integral heat of solution at 25 °C for HCl at a given value of r(mol H 2O/mol
solute) in kJ/mol. Uses linear interpolation of table data. If value is extrapolated a comment is
added to the calling cell. The heat of solution at infinite dilution is returned by entering r as “inf”.
HsNaOH(r) Returns the integral heat of solution at 25 °C for NaOH at a given value of r(mol
H2O/mol solute) in kJ/mol. Uses linear interpolation of table data. If value is extrapolated a
comment is added to the calling cell. The heat of solution at infinite dilution is returned by entering
r as “inf”.
HmH2SO4(r) Returns the integral heat of mixing at 25 °C for H 2SO4 at a given value of r(mol
H2O/mol solute) in kJ/mol. Uses linear interpolation of table data. If value is extrapolated a
comment is added to the calling cell. The heat of mixing at infinite dilution is returned by entering r
as “inf”.
Kopps(elements, number_atoms, [phase]) Returns an estimate using Kopp’s Rule of the constant
pressure heat capacity of a substance. Elements is a range of cells containing element symbols, and
number_atoms is a range of cells containing the number of atoms for each element in the first
argument. If phase is not specified (“s”, “l”) a liquid is assumed.
Q (kJ/h) = 5234
mating heat
ressure heat
erature units
ecified, the first
comment is set
or a given
ol H 2O/mol
mment is
ng r as “inf”.
of r(mol
ated a
ed by entering
f r(mol
ated a
d by entering r
of the constant
t symbols, and
n the first
ol.
g Trouton's Rule
You will continue to find APEx functions handy in Chapter 9 when
composing your enthalpy tables. New functions are introduced to allow
access to heats of formation and combustion.
Solution: ni
(ΔĤc°)C2H6= -1559.9 kJ/mol -1
(ΔĤc°)C2H4= -1410.99 kJ/mol 1
(ΔĤc°)H2= -285.84 kJ/mol 1