From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 914/CH10/EX10.7/ex10_7.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 914/CH10/EX10.7/ex10_7.sce (limited to '914/CH10/EX10.7/ex10_7.sce') diff --git a/914/CH10/EX10.7/ex10_7.sce b/914/CH10/EX10.7/ex10_7.sce new file mode 100755 index 000000000..0bf79aaa2 --- /dev/null +++ b/914/CH10/EX10.7/ex10_7.sce @@ -0,0 +1,22 @@ +clc; +warning("off"); +printf("\n\n example10.7 - pg422"); +// given +L=300; //[m] - length of pipe +d=0.06; //[m] - inside diameter +p=1000; //[kg/m^3] - density +mu=1*10^-3; //[kg/m*sec] - viscosity +Nre=[10^4 10^5]; +U=(Nre*mu)/(d*p); +velocityhead=(U^2)/2; +N=(L/d)/45; // no of velocity heads +deltap=p*N*(velocityhead); +for i=1:2 + disp(Nre(i),"Nre="); + printf("\n\n velocity head =%f m^2/sec^2",velocityhead(i)); + printf("\n\n -deltap = %f kPa = %f psi",deltap(i)*10^-3,deltap(i)*1.453*10^-4); +end + + + + -- cgit