Sei sulla pagina 1di 4

ChE 26 Machine Exercise 2 July 5, 2012 Name FLUID FLOW The Reynolds number, represented as NRe, is a dimensionless number

(i.e., the units of its individual terms cancel out and results to unity). NRe is used to evaluate the flow of a fluid inside a pipe, which is an important factor in pump and piping selections in chemical engineering.

D is the diameter of the pipe, v is the velocity of the fluid flowing inside the pipe, is the density of the fluid, and is the viscosity of the fluid. Take note that the units of these quantities must be consistent in order to cancel out. Laminar flow inside a pipe is characterized by smooth flowing of the liquid, as if the layers to fluid appear to slide by one another. Turbulent flow, on the other hand, is characterized by random, chaotic motion of the fluid. The following criteria are followed when characterizing fluid flow in pipes: Laminar flow Transition Region (neither laminar nor turbulent) Turbulent flow Your task: Create a program that will compute for the Reynolds number of the fluid given its properties, and then characterize its flow as laminar, turbulent, or indeterminate. The program should first ask the user on what unit system he will use. The following units for the SI and English systems must be observed. You may use a menu function for this. SI System Diameter: m Fluid velocity: m/s Fluid density: kg/m3 Fluid viscosity: kg/m-s English System Diameter: ft Fluid velocity: ft/s Fluid density: lb/ft3 Fluid viscosity: lb/ft-s

After the unit system selection, MATLAB should then prompt the user for the pipe diameter and the fluid velocity. The program shall then ask the user to choose the fluid type. You may use another menu function for this. After the selection, the user will then ask for the fluid temperature (in Kelvin). The fluid density and viscosity is given by the following equations:

Take note that the resulting density and viscosity has units of mol/dm3 and kg/m-s. You have to incorporate the necessary conversions (for both SI and English systems). For this exercise, the user will just have to choose one of 4 fluids:

For density correlation: Undecane MW: 156.308 g/mol C1: 0.36703 C2: 0.24876 C3: 639 C4: 0.28571 For viscosity correlation: Undecane C1: 52.176 C2: -4951.9 C3: -8.5676 C4: 570890 C5: -2

Hexane MW: 86.175 g/mol C1: 0.70824 C2: 0.26411 C3: 507.6 C4: 0.27537 Hexane C1: -6.3276 C2: 640 C3: -0.694 C4: 5.6884E-21 C5: -10

Toluene MW: 92.138 g/mol C1: 0.8792 C2: 0.27136 C3: 591.75 C4: 0.29241 Toluene C1: -226.08 C2: 6805.7 C3: 37.542 C4: -0.060853 C5: 1

Butyric acid MW: 88.105 g/mol C1: 0.88443 C2: 0.25828 C3: 615.7 C4: 0.248 Butyric acid C1: -9.817 C2: 1388 C3: -0.238 C4: 0 C5: 0

After the prompting the user for the temperature, MATLAB will then display the calculated NRe value and the corresponding flow characteristic. Useful Conversion factors: 1 kg = 2.2 lbs 1 m = 3.2808 ft Program Code:
clc unit = menu('Welcome to Fluid Flow evaluation! To start, please choose your desired unit system', 'SI System', 'English System'); if unit == 1 diameter = input('Enter pipe diameter in meters: '); velocity = input('Enter fluid velocity in meters per second: '); fluid = menu('Now please choose your fluid.', 'Undecane', 'Hexane', 'Toluene', 'Butyric Acid'); if fluid == 1 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.36703; C2p=0.24876; C3p=639; C4p=0.28571; MW=156.308; C1u=52.176; C2u=-4951.9; C3u=-8.5676; C4u=570890; C5u=-2; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW; u = exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end elseif fluid == 2 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.70824; C2p=0.26411; C3p=507.6; C4p=0.27537; MW=86.175; C1u=-6.3276; C2u=640; C3u=-0.694; C4u=5.6884E-21; C5u=-10; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW; u = exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre);

fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end elseif fluid == 3 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.8792; C2p=0.27136; C3p=591.75; C4p=0.29241; MW=92.138; C1u=-226.08; C2u=6805.7; C3u=37.542; C4u=-0.060853; C5u=1; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW; u = exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end elseif fluid == 4 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.88443; C2p=0.25828; C3p=615.7; C4p=0.248; MW=88.105; C1u=-9.817; C2u=1388; C3u=-0.238; C4u=0; C5u=0; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW; u = exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end end elseif unit == 2 diameter = input('Enter pipe diameter in feet: '); velocity = input('Enter fluid velocity in feet per second: '); fluid = menu('Now please choose your fluid.', 'Undecane', 'Hexane', 'Toluene', 'Butyric Acid'); if fluid == 1 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.36703; C2p=0.24876; C3p=639; C4p=0.28571; MW=156.308; C1u=52.176; C2u=-4951.9; C3u=-8.5676; C4u=570890; C5u=-2; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW*(1/(3.2808^3))*2.2; u = (exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))))*2.2*(1/3.2808); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end elseif fluid == 2 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.70824; C2p=0.26411; C3p=507.6; C4p=0.27537; MW=86.175; C1u=-6.3276; C2u=640; C3u=-0.694; C4u=5.6884E-21; C5u=-10; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW*(1/(3.2808^3))*2.2; u = (exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))))*2.2*(1/3.2808); Nre=(diameter*velocity*p)/u;

if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end elseif fluid == 3 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.8792; C2p=0.27136; C3p=591.75; C4p=0.29241; MW=92.138; C1u=-226.08; C2u=6805.7; C3u=37.542; C4u=-0.060853; C5u=1; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW*(1/(3.2808^3))*2.2; u = (exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))))*2.2*(1/3.2808); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end elseif fluid == 4 temperature = input('Enter fluid temperature in Kelvin: '); C1p=0.88443; C2p=0.25828; C3p=615.7; C4p=0.248; MW=88.105; C1u=-9.817; C2u=1388; C3u=-0.238; C4u=0; C5u=0; p = (C1p/(C2p^(1+((1-(temperature/C3p))^C4p))))*MW*(1/(3.2808^3))*2.2; u = (exp(C1u+(C2u/temperature)+(C3u*(log(temperature)))+(C4u*(temperature^C5u))))*2.2*(1/3.2808); Nre=(diameter*velocity*p)/u; if Nre < 2100 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is LAMINAR. \n'); fprintf('Thank you for using Fluid Flow Evaluation!\n'); elseif Nre > 2100 & Nre < 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow characteristic cannot be determined. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); elseif Nre > 4000 fprintf('\n\nYour REYNOLDS NUMBER is %9.4f.\n', Nre); fprintf('The fluid flow is TURBULENT. \n'); fprintf('Thank you for using Fluid Flow Evaluation! \n'); end end end

Potrebbero piacerti anche