blob: 839e031b7da50763f275824d2940fae2ac8f277a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Implementation of example 5.8
// Basic and Applied Thermodynamics by P.K.Nag
clc
clear
//temperature at certain instance 't', power to paddle wheel 'Wt'
t = -273; //degree C
//Let
u=0;
u0 = u - 0.718*t;
//hp = u + p*v; and u = 0.718(t+273) and pv=0.278(t+273) thus
t = 150; //degree C
hp = 1.005*(t+273); //kJ/kg
Wt = 0.1; //kJ/s or kW
//dm/dt = m dW/dt = Wt
//rate of flow of air out of tank 'm'
m = (1/hp)*Wt;//kg/s
m = m*3600; //kg/h
printf("Rate of flow of air out of tank = %.3f kg/h",m);
// end
|