summaryrefslogtreecommitdiff
path: root/3831/CH6/EX6.7/Ex6_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3831/CH6/EX6.7/Ex6_7.sce')
-rw-r--r--3831/CH6/EX6.7/Ex6_7.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3831/CH6/EX6.7/Ex6_7.sce b/3831/CH6/EX6.7/Ex6_7.sce
new file mode 100644
index 000000000..78e861d2b
--- /dev/null
+++ b/3831/CH6/EX6.7/Ex6_7.sce
@@ -0,0 +1,12 @@
+// Example 6_7
+clc;funcprot(0);
+// Given data
+T_in=20.0;// °C
+p_in=50.0;// MPa
+c=4.126;// kN.m/kg.K
+
+// Calculation
+v_f=0.001002;// m^3/kg
+v=0.0009804;// m^3/kg
+T_finalfilled=T_in+((v*(p_in*10^3))/c);// °C
+printf("\nThe final temperature of the water in the tank,T_final filled=%2.1f°C",T_finalfilled);