Making a function using van der Waals equation
29 次查看(过去 30 天)
显示 更早的评论
How can I make a basic function using the below information?
The function’s input should be 0 for PH4 and -3 should be for K2N4.
Make the output vectors Pressure, Volume of h, Volume of i.
h and i are just names, they do not refer to any thing below.
van der Waals’ equation: P = nRT/(V-nd) – n2c/V2
3.3 kilograms of a gaseous mixture
PH4= c=4.60 atm*atm*L^2/mol^2 and d = 0.00427 L/mol.
K2N4= c=0.35e6 atm*cm^6/mol^2 and d = 01.8 cm^3/mol.
0 个评论
回答(2 个)
Aarthi V
2020-2-25
function y=vander(v)
% in K atm l/gmol
% parameters for n-butane
Tc=425.2
pc=37.5
T=500
p=18
R=0.08206
aRK=27*(R*Tc)^2/64*pc
bRK=(R*Tc/8*pc)
y=p*v^3-(R*T+bRK*p)*v^2+aRK*(v-bRK)
1 个评论
darova
2020-2-25
Where are points?
% y=p*v^3-(R*T+bRK*p)*v^2+aRK*(v-bRK)
y=p*v.^3-(R*T+bRK*p)*v.^2+aRK*(v-bRK)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!