diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2120/CH2/EX2.5 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2120/CH2/EX2.5')
-rwxr-xr-x | 2120/CH2/EX2.5/exa_2_5.sce | 20 |
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 : ")
|