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 --- 1379/CH12/EX12.1.1/example12_1.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 1379/CH12/EX12.1.1/example12_1.sce (limited to '1379/CH12/EX12.1.1/example12_1.sce') diff --git a/1379/CH12/EX12.1.1/example12_1.sce b/1379/CH12/EX12.1.1/example12_1.sce new file mode 100755 index 000000000..dcb03c38a --- /dev/null +++ b/1379/CH12/EX12.1.1/example12_1.sce @@ -0,0 +1,26 @@ + + +//example 12.1 +clc; funcprot(0); +// Initialization of Variable +rho=1.22; +pi=3.1428; +rhos=518; +rhoav=321; +mu=1.73/10^5; +g=9.81; +d=0.65/1000; +d2=25.5/100;//dia of duct +ms=22.7/60;//mass flow rate +//calculation +e=(rhos-rhoav)/(rhos-rho); +//coeff of quadratic eqn in U +//a*x^2+b*x+c=0 +c=-(1-e)*(rhos-rho)*g; +b=150*(1-e)^2*mu/d^2/e^3; +a=1.75*(1-e)*rho/d/e^3; +y=poly([c b a],'U','coeff'); +U=roots(y); +Us=ms*4/pi/d2^2/rhos;//superficial speed +Ua=e/e*(U(2)/e+Us/(1-e)); +disp(Ua,"the actual linear flow rate through duct in (m/s):") -- cgit