Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Following assignment should all be wriitten in MATLAB. 02/20/17 1. Ideal Gas Law vs Van der Waals Gas Law, part 2 Write two well-documented MATLAB

image text in transcribedimage text in transcribedimage text in transcribed

Following assignment should all be wriitten in MATLAB.

02/20/17 1. Ideal Gas Law vs Van der Waals Gas Law, part 2 Write two well-documented MATLAB functions to calculate pressure according to both the ideal and Van der Waals gas laws. The first function will calculate pressure based on the ideal gas law and will be named ideal gas.m. The second function will calculate pressure based on the Van der Waals equations of state and will be named vdw.m The ideal gas law can be written as: PV RT The Van der Waals equation of state may be written as: m where Vm is the molar volume (vin), and a and b are the gas specific constants and R 8.3145 x102 L.bar/mol.K. Some Van der Waals constants: Substance (L bar mol mo 1.361 3.85x10 Nitrogen (N2) 0.0247 Hydrogen (H2) 2.65x10 Water (H20) 5.536 3.04x10 Freon (CC2F2) 10.78 9.98x10 02/20/17 1. Ideal Gas Law vs Van der Waals Gas Law, part 2 Write two well-documented MATLAB functions to calculate pressure according to both the ideal and Van der Waals gas laws. The first function will calculate pressure based on the ideal gas law and will be named ideal gas.m. The second function will calculate pressure based on the Van der Waals equations of state and will be named vdw.m The ideal gas law can be written as: PV RT The Van der Waals equation of state may be written as: m where Vm is the molar volume (vin), and a and b are the gas specific constants and R 8.3145 x102 L.bar/mol.K. Some Van der Waals constants: Substance (L bar mol mo 1.361 3.85x10 Nitrogen (N2) 0.0247 Hydrogen (H2) 2.65x10 Water (H20) 5.536 3.04x10 Freon (CC2F2) 10.78 9.98x10

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions