summaryrefslogtreecommitdiff
path: root/629/CH5/EX5.7/example5_7.sce
blob: 2f0afbc592007ce057c840b8f25e00d59aa8452d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
clc
//Example 5.7 DEPRESSURIZATION OF GAS IN TANK
V=10; //volume[m^3]
po=500; //initial pressure[kPa]
pf=400; //final pressure[kPa]
R=518; //gas constant[J/kg.K]
T=300; //[K]
A=10^-7; //area[m^2]
//mi=0,mo=0.66*p*A/sqrt(R*T), mcv=mi-mo
//continuity equation, mi=V*d(rho)/dt
t=integrate('-V*(0.66*A*p*sqrt(R*T))^(-1)','p',po,pf)
printf("\nThe time elapsed for the absolute pressure drop = %.f s.\n",t)