blob: 5bf3391693732cde45a7e5de1031b35485b844e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clear;
clc;
//Example 1.2(Heating of water in an Electric Teapot)
//Mass of liquid water
m1=1.2,m2=0.5;//[Kg]
//Initial Temperature
t1=15;//[Degree Celcius]
//Final Temperature
t2=95;//[Degree Celcius]
//Specific heat of water
cp1=4.186;//[kJ/kG.K]
//Specific heat capacity of teapot
cp2=.7;//[]
Em=(m1*cp1*(t2-t1))+(m2*cp2*(t2-t1));//[kJ]
//Rating of Electric Heating Equipment
Em1=1.2;//[kJ/s]
dt=(Em/Em1)/60;//[seconds]
disp("minutes",round(dt),"of heat is","kJ",Em,"Time needed for this heater to supply ")
|