Making a function using van der Waals equation
32 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Aarthi V
il 25 Feb 2020
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 Commento
darova
il 25 Feb 2020
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)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!