Question: Do in Matlab (octave) 2. Engineers often need more accurate estimates of gas pressure than the ideal gas law provides. The van der Waals equation

 Do in Matlab (octave) 2. Engineers often need more accurate estimates

Do in Matlab (octave)

2. Engineers often need more accurate estimates of gas pressure than the ideal gas law provides. The van der Waals equation is a more accurate predictor of pressure when gases are under higher pressure or have intermolecular attractions, and is defined as follows: P- RT/(V-b) - a/VA2 Where P is pressure in atm, R is the gas constant and is equal to 0.08206 L-atm/(mol K), V is the specific volume in liter/mole, T is the temperature in Kelvin, and a and b are constants that are specific to the chemical. Note that all units are taken care of, and you do not need to do conversions. Write a function that outputs the pressure of a gas based on its temperature and specific volume. Your function should take as inputs the temperature, the specific volume, and a string variable with the name of the gas. Your engineering firm deals with three types of gases, with the following parameters: Gas a (LA2-atm/mol42) b (L/mol) Oxygen 1.36 0.0318 Chlorine 6.49 0.0562 Carbon Dioxide 3.59 0.0427 Your program should have these parameters built into it already so that it is functional for all three gases. Test your function for Chlorine gas at T-400 K and V-25 L/mol

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!