summaryrefslogtreecommitdiff
path: root/548/CH4/EX4.22/4_22.sce
blob: 130e026dd5aec1cde58635eee7593b557fdc72aa (plain)
1
2
3
4
5
6
7
8
9
pathname=get_absolute_file_path('4_22.sce')
filename=pathname+filesep()+'4_22data.sci'
exec(filename)
Ve=Ae*Me;disp(Ve,"Ve=","velocity at exit Ve=Ae*Me")
Mt=Dt*At*Vt;disp(Mt,"Mt=Dt*At*Vt","mass flow through nozzle Mt")
printf("\Answer:\n")
printf("\n\Velocity at exit: %f m/s\n\n",Ve)
printf("\n\mass flow through nozzle: %f Kg/m^3\n\n",Mt)