summaryrefslogtreecommitdiff
path: root/1922/CH4/EX4.5/4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1922/CH4/EX4.5/4_5.sce')
-rwxr-xr-x1922/CH4/EX4.5/4_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1922/CH4/EX4.5/4_5.sce b/1922/CH4/EX4.5/4_5.sce
new file mode 100755
index 000000000..6bffcfe99
--- /dev/null
+++ b/1922/CH4/EX4.5/4_5.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Initialization of variables
+m1=5000 //kg/h
+cp1=3.2 //kJ/kg K
+cp2=4.186 //kJ/kg K
+t1=220 //C
+t2=30 //C
+T1=210 //C
+T2=20 //C
+//calculations
+m2=m1*cp1*(t1-t2)/(cp2*(T1-T2))
+ds=m1*cp1*log((t2+273.1)/(t1+273.1)) + m2*cp2*log((T1+273.1)/(T2+273.1))
+//results
+printf("Change in entropy = %d kJ/h K",ds)