Making a function using van der Waals equation

29 vues (au cours des 30 derniers jours)
blank testt
blank testt le 4 Nov 2012
Réponse apportée : abi le 14 Mar 2024
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.

Réponses (2)

Aarthi V
Aarthi V le 25 Fév 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 commentaire
darova
darova le 25 Fév 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)

Connectez-vous pour commenter.


abi
abi le 14 Mar 2024
(p+a\v^2)(v-b)=RT

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by