Professional Documents
Culture Documents
Week 4 - Units Conversion and Curve Fitting in Excel
Week 4 - Units Conversion and Curve Fitting in Excel
CHEMICAL ENGINEERS
(EXCEL SECTION)
WEEK 4
Instructors:
Engr. (Dr) Efeovbokhan, V.E and Mr. A. T. Ogunbiyi
CONVERTING UNITS IN EXCEL
Class Examples
• SIMPLE CONVERSIONS IN EXCEL
Use Excel to carry out the following simple unit
conversions:
(a) 2.5 ft to m
2. The van der Waals’ constants for carbon dioxide have been
𝑙𝑖𝑡𝑒𝑟 2 𝑎𝑡𝑚 𝑙𝑖𝑡𝑒𝑟
determined to be 𝑎 = 3.592 𝑎𝑛𝑑 𝑏= 0.04267 .
𝑚𝑜𝑙𝑒 2 𝑚𝑜𝑙𝑒
Solve the van der Waals’ equation of state (EOS) for the volume
per mole (v) of carbon dioxide under the following conditions: P
= 8 atm, T = 300K, using Excel’s Solver.
𝑅𝑇 𝑎
The van der Waals’ EOS is given by 𝑝 = − 2. Take R =
v−b 𝑣
0.082054 (liter)(atm)/(gmol)(K).
Assignment 3 Question (Due date – Friday 22nd Sept., 2017)
Barron (1985) lists the specific volume of nitrogen at 5 X 106Pa and 150K as
0.116m3/kmol. The gas constant, R in these units is 8317 (Pa)(m3)/(kmol)(K). Use the
Peng-Robinson’s equation of state (EOS) and Excel’s Solver to calculate the specific
volume (to 3 d.p) and compare with this value. The critical constants Tc and Pc are
126.2K and 3.4 X 106Pa respectively, and the accentric factor, ω for nitrogen is 0.040.
Peng-Robinson’s EOS for Pure Components
𝑅𝑇 𝑎
𝑝= −
𝑣 − 𝑏 𝑣 𝑣 + 𝑏 + 𝑏(𝑣 − 𝑏)
𝑅 2 𝑇𝑐 2 𝑅𝑇𝑐
where 𝑎 = 0.45724 𝛼 𝑏 = 0.07780
𝑃𝑐 𝑃𝑐
𝑇
𝑇𝑟 = 𝛼 = [1 + 𝑚 1 − 𝑇𝑟 0.5 ]2
𝑇𝑐
Solution
Fitting a straight line to a set of data
41a + 5b = 27.5
479a + 41b = 299
The next figure shows a plot of the given data and the
line of best fit.
Fitting a straight line to a set of data
14
12
10
Force, N
0
0 5 10 15 20 25
Displacement from Equilibrium Position, cm
Accessing a curve fit
a. SLOPE(known_y's,known-x's)
b. INTERCEPT(known_y's,known-x's)
c. RSQ (known_y's,known-x's)
slope =SLOPE(A2:A8,B2:B8)
intercept =INTERCEPT(A2:A8,B2:B8)
RSQ =RSQ(A2:A8,B2:B8)
If one is dealing with a set of points (x,y) for a
straight line, the slope, the intercept and R2can be
found without plotting by using the functions:
SLOPE,
Practice Questions
Q1
y: 0.038; 0.080; 0.174; 0.448; 1.43; 5.13; 9.47;
x: 0.2 0.4 0.8 2.0 6.0 20.0 35.0
Find the best values of the constants bo and b1 that best describe the
data by the equation: Y = b0Xb1
Q2. Develop a polynomial equation from the data on the heat capacity
of benzene vapour as a function of temperature.
Cp cal/K gmol: 19.65; 26.74; 32.80; 37.74; 41.75; 45.06; 47.83; 50.16;
TK 300; 400; 500; 600; 700; 800; 900; 1000.
Q3
V mm/s: 11.71; 13.63; 17.25; 18.92;
P bar : 50.6; 75.3; 116.3; 138.8.
Based on theoretical and empirical knowledge the relationship between
burning rate and pressure had the form: V=bPn
Determine the coefficients b and n
A[4]
The relation between the heat capacity of liquid sulfuric acid in cal/g C
and temperature in C is as follows:
Ccal/g C: 0.377; 0.389; 0.396; 0.405; 0.466; 0.458;
T C: 50; 100; 150; 200; 250; 300
Determine regression coefficients in the linear regression:
Cp = bo + b1T