CHE317 Excel Lect4
CHE317 Excel Lect4
CHEMICAL ENGINEERS
• Step 1 displayed
Solution of Solve X3 +2X2 -X+1=0 using
Excel’s Solver
Step 2 displayed
Solution of Solve X3 +2X2 -X+1=0 using
Excel’s Solver
Results:
• Cell A1 and B1 display:
-2.54682 4.06E-07
This time, it is much more accurate as the error
is extremely small.
Exercises
Class Work
1. Solve the equation sin x + x = 5 using Solver
Practice Exercises
1. Determine a real root for the equation
Class Example
Workings
Solver method : simultaneous linear
equations
Determine the solution to the following system of
equations using Solver.
Solver method : simultaneous linear
equations
Change equations to the form: f(x)=0
• F1(x): 3X1 + 2X2- X3 – 4 = 0
• F2(x): 2X1 - X2 + X3 – 3 = 0
• F3(x): X1 + X2 - 2X3 + 3 = 0
Finding the sum of the squares of each:
• Y= F12 + F22 + F32
• Minimizing the sum of the squares
Class Exercise
Determine the solution to the following two
simultaneous nonlinear equations using Solver.
Restrict the range of the independent variables to
nonnegative values.
EQUATIONS OF STATE
• Solving equations of state allows us to find the specific volume
of a gaseous mixture of chemicals at a specified temperature
and pressure
• Without using equations of state, it would be virtually
impossible to design a chemical plant.
• By knowing this specific volume, you can determine the size –
and thus cost – of the plant, including the diameter of pipes,
the horsepower of compressors and pumps, and the diameter
of distillation towers and chemical reactors.
• Determining the specific volume is also the first step in
calculating the enthalpy and vapor–liquid properties of
mixtures.
• Calculating this enthalpy is especially important when making
energy balances to reduce energy use and help the
environment.
• To solve equations of state, you must solve algebraic equations
Determining the Specific Volume of Gaseous Mixture of
Chemicals at a Specified Temperature and Pressure: Van
der Waals Equation
- - - - - - - -- 1
Calculate the constants for the given gas and apply either
goalseek or solver.
*It is very important to arrange your presentation properly
*NEAT PRESENTATION OF YOUR WORK IS VERY ESSENTIAL
INPUT DATA
Peng -
Robinson
Equation of State ( EOS ) (PR)
RESULT
Molar Volume and Compressibility Factor from Van der
Waals Equation
Problem 1 B C D E F G
Value P Preduced V Z
P = Pressure in atm=Pr*Pc 56
V = molar volume in liters/g-mol 0.574892698 56 0.503 0.575084 0.871819
T= temperature in K 450
R= gas constant atm-liter/g-molK 0.08206
Tc= citical temp for ammonia 405.5
Pc=critcal pressure for ammonia 111.3
Preduced 4.043126685
Z=compressibilty factor=PV/RT 0.871827961
a 4.196945872
b 0.037371215
Value of RT 36.927
Value of P+a/V^2 68.69871519
Value of V-b 0.537521483
LHS 36.92703527
f(V)=0 3.52743E-05
Determining the Specific Volume of Gaseous Mixture of
Chemicals at a Specified Temperature and Pressure:
Redlich Kwong Equation
B C D E
Value
P = Pressure in atm=Pr*Pc 56
V = molar volume in liters/g-mol 0.68531
T= temperature in K 450
R= gas constant atm-liter/g-molK 0.08206
Tc= citical temp for ammonia 405.5
Pc=critcal pressure for ammonia 111.3
Preduced 4.04313
Z=compressibilty factor=PV/RT 1.03928
a 0.00362
b 0.0259
Value of RT/(V-b) 56
Value of a/(V+b)VT.5 0.00035
RHS 55.9996
LHS 56
f(V)=0 3.9E-07
Assignment