summaryrefslogtreecommitdiff
path: root/2975/CH27/EX27.5w/Ex27_5w.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2975/CH27/EX27.5w/Ex27_5w.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '2975/CH27/EX27.5w/Ex27_5w.sce')
-rw-r--r--2975/CH27/EX27.5w/Ex27_5w.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2975/CH27/EX27.5w/Ex27_5w.sce b/2975/CH27/EX27.5w/Ex27_5w.sce
new file mode 100644
index 000000000..a61969b5d
--- /dev/null
+++ b/2975/CH27/EX27.5w/Ex27_5w.sce
@@ -0,0 +1,18 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 27_5w
+
+clc;clear;
+//Given Data
+temp_1=300; //Initial Temperature of the air (Unit:Kelvin)
+volume_1=800; //Initial volume of the air (Unit: cm^3)
+volume_2=200; //Final volume of the air (Unit:cm^3)
+gamma1=1.4; //Value of ratio Cp/Cv i.e gamma (Unit: unitless)
+
+//Calculation
+
+temp_2=temp_1*(volume_1/volume_2)^(gamma1-1); //Calculation of the temperature (Unit:Kelvin)
+rise_temp=temp_2-temp_1; //Calculation of the rise in temperature
+
+disp(rise_temp,"Rise in temperature when compressed in a short time (adiabatic process) is (Unit:Kelvin)");
+disp("When the gas is compressed in a long time , the process isothermal so the temperature is constant hence the rise in temperature is 0");