Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab code pls 6. (15 points) The van der Waals (vdW) equation of state is used to estimate the pressures and volumes of real gases,

image text in transcribedMatlab code pls

6. (15 points) The van der Waals (vdW) equation of state is used to estimate the pressures and volumes of real gases, and it is given by a RT P= V b = V = where V is the molar volume (L/mol), b is a correction due to the volume of the molecules and a is related to the molecular attractive interactions. The gas constant is R=0.08206; L'atm/(mol.K), and T is the tempera- ture (in Kelvin, K). The values of a and b depend on the type of gas; some values are given in the table below. Write a matlab function using the switch structure that computes the pressure P using the vdW equation of state. The function's input arguments should be T, V and a string variable containing the name of the gas listed in the table. Test your function for chlorine (C12) for T 300K and V = 20 L/mol. = = Gas Helium, He Hydrogen, H2 Oxygen, O2 Chlorine, Cl2 a (L'.atm/mol) 0.0341 0.244 1.36 6.49 b (L/mol) 0.0237 0.0266 0.0318 0.0562

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

Industrial Plastics Theory And Applications

Authors: Erik Lokensgard

6th Edition

1285061233, 978-1285061238

More Books

Students also viewed these Chemical Engineering questions

Question

Discuss three effects of aging on skin.

Answered: 1 week ago

Question

(1) What is your current leadership development strategy?

Answered: 1 week ago