Making a function using van der Waals equation

29 Ansichten (letzte 30 Tage)
blank testt
blank testt am 4 Nov. 2012
Beantwortet: abi am 14 Mär. 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.

Antworten (2)

Aarthi V
Aarthi V am 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 Kommentar
darova
darova am 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)

Melden Sie sich an, um zu kommentieren.


abi
abi am 14 Mär. 2024
(p+a\v^2)(v-b)=RT

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by