summaryrefslogtreecommitdiff
path: root/2975/CH27/EX27.6w/Ex27_6w.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.6w/Ex27_6w.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.6w/Ex27_6w.sce')
-rw-r--r--2975/CH27/EX27.6w/Ex27_6w.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2975/CH27/EX27.6w/Ex27_6w.sce b/2975/CH27/EX27.6w/Ex27_6w.sce
new file mode 100644
index 000000000..f5b034e89
--- /dev/null
+++ b/2975/CH27/EX27.6w/Ex27_6w.sce
@@ -0,0 +1,19 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 27_6w
+
+clc;clear;
+//Given Data
+
+p1=150*10^3; //Value of initial pressure (Unit: Pascal)
+v1=1600*10^-6; //Value of the volume before being compressed (Unit: m^3)
+v2=400*10^-6; //Value of the volume after being compressed (Unit: m^3)
+gamma1=1.5; //Value of ratio Cp/Cv i.e gamma (Unit: unitless)
+
+//Calculation
+
+p2=p1*(v1/v2)^gamma1; //Calculation of new pressure of the gas (Unit: Pascal)
+work_done=(p1*v1-p2*v2)/(gamma1-1); //Calculation of the work done by the gas (Unit:Joule)
+
+disp(p2,"The final pressure of the sample gas in adiabatic process is (Unit: Pascal)");
+disp(work_done,"Work done by the gas in an adiabatic process is (Unit: Joule)");