From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 2975/CH27/EX27.5w/Ex27_5w.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 2975/CH27/EX27.5w/Ex27_5w.sce (limited to '2975/CH27/EX27.5w/Ex27_5w.sce') 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"); -- cgit