diff options
Diffstat (limited to '1922/CH4/EX4.12/4_12.sce')
-rwxr-xr-x | 1922/CH4/EX4.12/4_12.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1922/CH4/EX4.12/4_12.sce b/1922/CH4/EX4.12/4_12.sce new file mode 100755 index 000000000..700be6c55 --- /dev/null +++ b/1922/CH4/EX4.12/4_12.sce @@ -0,0 +1,16 @@ +clc
+clear
+//Initialization of variables
+P=2 //Mpa
+T1=212.4+273.1 //K
+T2=25+273.1 //K
+h1=2799.5
+h2=104.89
+s1=6.3409
+s2=0.3674
+//calculations
+dh=h1-h2
+ds=s1-s2
+exergy=dh-T2*ds
+//results
+printf("exergy = %.1f kJ/kg",exergy)
|