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 /2339/CH3/EX3.6.1 | |
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 '2339/CH3/EX3.6.1')
-rwxr-xr-x | 2339/CH3/EX3.6.1/Ex3_6.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2339/CH3/EX3.6.1/Ex3_6.sce b/2339/CH3/EX3.6.1/Ex3_6.sce new file mode 100755 index 000000000..d7f7e0ede --- /dev/null +++ b/2339/CH3/EX3.6.1/Ex3_6.sce @@ -0,0 +1,26 @@ +clc +clear + +//Inputs +//The Values in the program are as follows: +//Temperature in Celcius converted to Kelvin(by adding 273) +//Pressure in bar converted to kPa (by multiplying 100) +//Volume in m^3 +//Value of R,Cp and Cv in kJ/kg K +P1=25; +T1=27+273; +P2=5; +T2=20+273; +V1=0.7; +Et=1.43; +Pn=101.325; +Tn=273; + +//Calculations +R=(Pn)/(Et*Tn); +m1=(Pn*V1)/(R*Tn); +V2=(m1*R*T1)/(P1*100); +m2=(P2*100*V2)/(R*T2); +mf=m1-m2; +printf('The mass of Oxygen used: %3.3f kg',mf); +printf('\n'); |