Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To use the van der Waals equation of state to find V ? at a given T and P , it is numerically convenient to

To use the van der Waals equation of state to find V? at a given T and P, it is numerically
convenient to rewrite it as a cubic polynomial in the compressibility factor Z :
Z3-(B+1)Z2+AZ-AB=0,
where
Determine ZL, the compressibility factor for liquid water and smallest root of this polyno-
mial, and ZV, the compressibility factor for water vapor and largest root of this polynomial,
at water's normal boiling point (T=10C,P=1(atm)) using:
(a) Fixed-point iteration. For only this part, it is recommended to rearrange the polynomial
to solve for the liquid as
ZL=B+ZL2B+1-ZLA
and the equation to solve for the vapor as
ZV=B+1-AZV-BZV2.
You can implement fixed-point iteration in MATLAB ? using a loop. For example, this
loop iterates 100 times to solve our example problem from class starting from
{:x0=0) :
x=0;
for i=1:100
x=exp(-x???2);
end
(b) The built-in fzero function in MATLAB. It is recommended to define an anonymous
function for the equation you will solve. For example, to solve e-x2-x=0 with initial
guess x0=0, you can do:
eqn =@(x)exp(-x???2)-x;
fzero (eqn,0.0)
(c) The built-in roots function in MATLAB. Read the MATLAB documentation for an
example of how to use this function.
Use your results from #2(c) to compute the liquid and vapor mass densities, then compare
to the properties of saturated water from NIST [1]. If there are discrepancies, comment on
what you think the most likely reason is.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago