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.13.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.13.1')
-rwxr-xr-x | 2339/CH3/EX3.13.1/Ex3_13.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/2339/CH3/EX3.13.1/Ex3_13.sce b/2339/CH3/EX3.13.1/Ex3_13.sce new file mode 100755 index 000000000..aec25a480 --- /dev/null +++ b/2339/CH3/EX3.13.1/Ex3_13.sce @@ -0,0 +1,29 @@ +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
+m=1;
+P2=25;
+P1=1;
+pV=260;
+T1=17+273;
+T2=T1;
+V1=(pV*T1)/(P1*100000);
+printf('As process is Isothermal, Initial and Final Temperatures are same \n');
+printf('The Final Temperature: %3.0f K',T1);
+printf('\n');
+V2=(pV*T2)/(P2*100000);
+printf('The Final Volume: %3.5f m^3',V2);
+printf('\n');
+CR=P2/P1;
+printf('The Compression Ratio: %3.0f ',CR);
+printf('\n');
+printf('Change in Enthalpy is zero as it is Isothermal process \n');
+W=P1*100*V1*(log(P1/P2));
+printf('Work Done is: %3.1f kJ',W);
+printf('\n');
|