diff options
Diffstat (limited to '2144/CH2/EX2.23/exa_2_23.sce')
-rwxr-xr-x | 2144/CH2/EX2.23/exa_2_23.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2144/CH2/EX2.23/exa_2_23.sce b/2144/CH2/EX2.23/exa_2_23.sce new file mode 100755 index 000000000..713a5198f --- /dev/null +++ b/2144/CH2/EX2.23/exa_2_23.sce @@ -0,0 +1,17 @@ +// Example 2.23
+clc;
+clear;
+close;
+// Given data
+Cv = 652;// in J/kg-K
+R= 287;// in J/kg-K
+Cp= Cv+R;// in J/kg-K
+m=0.3;// in kg
+P= 1.5*10^5;// in N/m^2
+V= 0.283;// in m^3
+// Formula P*V= m*R*T
+T= P*V/(m*R);// in K
+T= T-273;// in °C
+T1= -40;// in °C
+delta_U= m*Cv*(T-T1);// in J
+disp(delta_U*10^-3,"Internal energy in kJ is : ")
|