Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Matlab The ideal gas law relates the pressure \'P\', volume \'V\', absolut

ID: 3926681 • Letter: U

Question

Using Matlab

The ideal gas law relates the pressure 'P', volume 'V', absolute temperature 'T', and the amount of gas 'n.

The law is: P=nRT / V

Where R is a gas constant, 8.31434 J mol^-1K^-1

An engineer must design a large natural gas stroage tank to be expandable to maintain the pressure constant of 2.2 atm. In December when the temperature is 4 deg F (-15degC the volume of gas in the tank is 28,500 ft^3 What would the volume of the same quantity of gas be in July when the tempurature is 88 deg F(31deg C)? Us n, R and P as constants in this problem. NOTE: =degC + 273.2

Explanation / Answer

The ideal gas relates to P,V,T Pressure,Volume and Temperature.

The given equation is P = nrt/v

R is constant and its value is 8.31434

Temperature = 293 F

n =1.0

%Ideal gas equation p = nrt/v
%function P = idealP(n,V,T)
T1 =4; % units of temperature in kelvi
T2 =88; % units of temperature in kelvin
% define R
R=8.31434; % units j.atm.mol^-1
% define n
% define p
n=1;
p= 2.2;

v1=T1.(nR/P)
v2=T2.(nR/P)

v1/v2 = T1/T2
%calculate V2
v2 = (T2/T1).v1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote