Making a function using van der Waals equation

28 views (last 30 days)
blank testt
blank testt on 4 Nov 2012
Answered: abi on 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.

Answers (2)

Aarthi V
Aarthi V on 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 Comment
darova
darova on 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)

Sign in to comment.


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

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!