Answered step by step
Verified Expert Solution
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 at a given and it is numerically
convenient to rewrite it as a cubic polynomial in the compressibility factor :
where
Determine the compressibility factor for liquid water and smallest root of this polyno
mial, and the compressibility factor for water vapor and largest root of this polynomial,
at water's normal boiling point using:
a Fixedpoint iteration. For only this part, it is recommended to rearrange the polynomial
to solve for the liquid as
and the equation to solve for the vapor as
You can implement fixedpoint iteration in MATLAB using a loop. For example, this
loop iterates times to solve our example problem from class starting from
: :
;
for :
exp;
end
b The builtin fzero function in MATLAB It is recommended to define an anonymous
function for the equation you will solve. For example, to solve with initial
guess you can do:
eqn @;
fzero
c The builtin roots function in MATLAB Read the MATLAB documentation for an
example of how to use this function.
Use your results from #c to compute the liquid and vapor mass densities, then compare
to the properties of saturated water from NIST If there are discrepancies, comment on
what you think the most likely reason is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started