blob: 81e13bb2dc5e5213f198c3b00ea8cffe75d28f30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Speed and pressure//
pathname=get_absolute_file_path('06.04.sce')
filename=pathname+filesep()+'06.04-data.sci'
exec(filename)
//Speed of water at exit(in m/sec):
V2=sqrt(2*g*z)
//Pressure at point A in the flow(kPa):
pA=p1+d*g*(0-l)-0.5*d*V2^2
printf("\n\nRESULTS\n\n")
printf("\n\nSpeed of water at exit: %.3f m/sec\n\n",V2)
printf("\n\nPressure at point A in the flow: %3f kPa\n\n",pA/1000)
|