summaryrefslogtreecommitdiff
path: root/2120/CH2/EX2.5/exa_2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '2120/CH2/EX2.5/exa_2_5.sce')
-rwxr-xr-x2120/CH2/EX2.5/exa_2_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2120/CH2/EX2.5/exa_2_5.sce b/2120/CH2/EX2.5/exa_2_5.sce
new file mode 100755
index 000000000..b30a45489
--- /dev/null
+++ b/2120/CH2/EX2.5/exa_2_5.sce
@@ -0,0 +1,20 @@
+// Exa 2.5
+clc;
+clear;
+close;
+// Given data
+v= 0.9/3;// in m^3/kg
+v= 2*v;// in m^3/kg mole (as M_hydrogen = 2)
+T=120+273;// in K
+R=8314;// in J/kg mole K
+a=2.51*10^4;// in Nm^4/(kg mole)^2
+b= 0.0262;
+// Part (a)
+p= R*T/v;// in N/m^2
+p= p*10^-5;// in bar
+disp(p,"Using perfect gas law the pressure for unit mass of hydrogen in bar is : ")
+
+// Part (b)
+p= R*T/(v-b)-a/v^2;// N/m^2
+p= p*10^-5;// in bar
+disp(p,"Using Van der waals equation, the pressure in bar is : ")