diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH4/EX4.5 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3831/CH4/EX4.5')
-rw-r--r-- | 3831/CH4/EX4.5/Ex4_5.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3831/CH4/EX4.5/Ex4_5.sce b/3831/CH4/EX4.5/Ex4_5.sce new file mode 100644 index 000000000..84f10efb6 --- /dev/null +++ b/3831/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,16 @@ +// Example 4_5
+clc;funcprot(0);
+// Given data
+T_1=20.0;// °C
+n=1.35;// The polytropic index
+m=0.0100;// kg
+p_1=0.100;// MPa
+m_2=0.0100;// kg
+p_2=10.0;// MPa
+
+// Solution
+T_2=((T_1+273.15)*(p_2/p_1)^((n-1)/n))-273.15;// °C
+// Using Table C.13b of Thermodynamic Tables to accompany Modern Engineering Thermodynamics to find the value of the gas constant for methane,
+R_methane=0.518;// kJ/kg.K
+W_12=(m*R_methane*((T_2+273.15)-(T_1+273.15)))/(1-n);// kJ
+printf('\nThe moving boundary work required,W_12=%1.2f kJ',W_12);
|