diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /965/CH13/EX13.1/1.sci | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '965/CH13/EX13.1/1.sci')
-rw-r--r-- | 965/CH13/EX13.1/1.sci | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/965/CH13/EX13.1/1.sci b/965/CH13/EX13.1/1.sci new file mode 100644 index 000000000..c6bf289f9 --- /dev/null +++ b/965/CH13/EX13.1/1.sci @@ -0,0 +1,31 @@ +clc;
+clear all;
+disp("fracion and pressure")
+
+Ma=24;
+Mb=48;
+M=30;
+rho=1.2;// kg/m^3
+T=290;// K
+C=rho/M;// mole concentration of the mixture
+//Ca=C-Cb
+//rhoA+rhoB=rho;
+//rhoA=Ma*Ca
+//rhoB=Mb*Cb
+//24*(C-Cb)+48*Cb=rho
+Cb=(rho-24*C)/24;//kg mole/m^3
+Ca=C-Cb;//kg mole/m^3
+rhoA=Ma*Ca;// kg/m^3
+rhoB=Mb*Cb;// kg/m^3
+xA=Ca/C;
+disp(xA,"mole fraction of A, xA =")
+xB=Cb/C;
+disp(xB,"mole fraction of B, xB =")
+mA=rhoA/rho;
+disp(mA,"mole fraction of A, mA =")
+mB=rhoB/rho;
+disp(mB,"mole fraction of B, mB =")
+G=8.314;// kJ/(kgmole*K)
+p=rho*G*T/M;
+disp("kPa",p,"Total pressure p =")
+
|