Professional Documents
Culture Documents
1 INTRODUCTION
1.1 Stream Flow Fundamentals
In engineering and scientific areas, or in daily life, stream flow in channels or conduits can be hap-
pening as part of the processes involved or ordinarily without being noticed, respectively. Such fluid
flow can be in a penstock from the dam of a hydro-electric power plant, outlet piping from a gravity
oil tank, or in the garden hose connected to a household elevated water tank.
Closed conduits in engineering applications are mostly of circular or rectangular cross section and
flow in such pipes, tubes or air ducts fluids entirely contact with inner surfaces of the rigid boundaries.
For open-channel flows, boundaries could be a void or nothing at all, not of rigid material or not
entirely solid, or the boundary of flow may be another or the other part of fluid. A significant example
of these open-channel flows are those characterized by irrigation canals, rivers, tidal currents, or those
running water after a rain that travels the ground surface.
The shape and the cross sectional area of the flow can change together the stream in both closed
conduits and open channels with the flows could be varying or unsteady or changing with time. A
Flow is considered uniform or steady, that is, not changing with time, if it does not change with a
cross section or geometry change.
Laminar and turbulent flows in conduits and channels are studied in this practical report that fo-
cuses on steady uniform flow in straight channels. Insights on the various fundamental aspects of fluid
flows in the natural world such as in rivers and in the oceans that are complicated will be simplified
wherein the subject in this study can apply to a varying flow characteristics in conduits and pipes but
would be tackled in fluid dynamics lessons and standard textbooks.
The relationship between relevant parameters in open channels such as flow, channel velocity, flow
area and channel slope is determined using Manning’s equation that will be presented in this practical
report.
1.2 MatLab as Applied in Engineering
Technical computing requirements can be served well by Mathlab, a high-performance language and
development tool that integrates calculations, visualization, and programming that can be an easy-to-
use and features familiar mathematical notation to solve problems. Common application of MatLab
include mathematical computations, algorithm development, and others.
Thousands of Engineers and Scientists around the world make use of this numerical computation
and simulation tool. MatLab can be used as a fully customizable calculator as well as an interpreter
programming language, and do purely numerical calculations particularly matrix manipulations. The
MatLab environment utilizes a so-called ”symbolic” toolbox in achieving computer algebra function-
ality comparable to the computer algebra programs capability of Mathematica or Maple to calculate
with mathematical equations using symbolic operations. As an interpreter programming language,
MatLab’s command interface form has the feel with similar to the popular programming languages
such as C/C++ and implements object-oriented programming support, data structures and cell arrays
in classes construction [1].
Features and capabilities of LaTeX include covers: typesetting journal articles, technical reports,
books, and slide presentations; control over large documents containing sectioning, cross-references,
tables and figures; typesetting of complex mathematical formulas; advanced typesetting of mathemat-
ics with AMS-LaTeX; automatic generation of bibliographies and indexes; multi-lingual typesetting;
inclusion of artwork, and process or spot colour, and; using PostScript or Metafont fonts [5].
In creating this practical activity report, MIKTEX and TeXnicCenter that are freely available
LaTeX distribution for the Windows desktop environment have been used. An editable LaTex .tex
file is created as well as the .pdf file that can be opened using any PDF viewer.
2 BACKGROUND THEORY
2.1 Manning’s Equation
The Manning’s equation is an empirical equation that applies to uniform flow in open channels. This
flow is a function of the channel velocity, flow area and channel slope. Manning formula was introduced
by the Irish Engineer Robert Manning in 1889 [4] and stated as:
k 2/3 1/2
V = Rh So (1)
n
Where V is the cross-sectional average velocity, n the Manning’s coefficient which is not dimen-
sionless having certain unit of measurement, Rh is the hydraulic radius, So slope of the hydraulic grade
line or the linear hydraulic head loss which is equal to the channel bed slope when the water depth is
constant, and k being the conversion factor between SI and English units.
2
2.2 Environmental Protection Agency (EPA)
The Environmental Protection Agency is the leading environmental protection and policing oversight
agency in Ireland ensuring that country’s environment is protected, environmental changes or trends
monitored to detect early warning signs of neglect or deterioration, working with a number of organi-
zations that carry out specific environmental function derive our mandate are the Waste Management
Act, 1996, and the Protection of the Environment Act, 2003 and Radiological Protection (Miscella-
neous Provisions) Act 2014 [2].
The EPA HydroNet site provides access to hydrometric data collected at the network of Local
Authority hydrometric stations and processed by EPA. The EPA also maintains the Register of Hy-
drometric Stations In Ireland, which is available to download from HydroNet website.
The hydrometric data available from the HydroNet website will be used in determining the power
generation prospect for a particular site in Ireland. The head of a stream is the source of power in
hydro-electric generation and it is a challenging task to determine for specific watercourse sites [7].
This potential energy can be converted to power according to the equation:
P = Q · Hg · γ (2)
Where P is the power in kW lost by the water that can be converted to electricity, Q is the flow
in m3 /s, Hg is the gross head in m, and γ is the specific weight of water equal to 9.81 kN/m3 .
Using the MatLab Script 1 a rectangular channel has resulted to an almost straight line as shown
in the plotted graph of Figure 1 implying that the relationship is uniform.
Running the MatLab Script 2, for an open trapezoidal channel with specification above Figure 2
results. It can be observed that as the depth increases, flow rate is not uniformly increasing as shown
in the curve plotted.
3
Figure 1: Rectangular Channel Flow Plot
4
Figure3:EPAHydronetSitePowerPlot,StationNo.090
as indicated. With no specific site being required, this Practical No. 1 will select the hydrometric
datafromanactiveEPAstationinIreland,StationNo.09providingriver
discharge in the period 09/08/2018 to 08/11/2018 [2].
As seen in Figure 3 for the plotted chart, availability of power resulting from varying flow is also
not uniform. This is from the fact that the hydrometric data is having variations and fluctuations
in the period covered. Plot produced using the MatLab Script 3 that mines data from an comma-
separated-values (csv) file.
With analysis of natural watercourses more complex but the formulae can be applied for initial
approximations [7]. The learning in this activity can be of use in hydraulic engineering practically
applicable on hydro-power studies. Such initial approximation can be useful in analysing, for example,
any of the 3,446 sites that were already inspected or identified in Ireland [6].
4 THE MATLAB CODE
4.1 MatLab Scripts Used
ThecodesshownbelowcoversalltheMatLabscriptsusedinthisPracticalActivityReport
MatLab Script 1 calculates and plots fluid flow for the rectangular channel, Script 2 for the trapezoidal
open channel while Script 3 plots the power resulting from hydrometric data downloaded from the
EPA HydroNet site.
%For rectangular open channel flow calculation and plotting using Manning
%formula to show how the flow varies as the depth of the channel change
%from 4m to 0.5m
%Manning's Coefficient n
n= 0.014;
%Script for trapezoidal open channel flow program using Manning formula
%to show how the flow varies as the depth of the channel change
6
%from 4m to 0.5m at bottom width of 3m and side slopes inclination of 1.5:1.
n=0.014;
%s=slope
s=0.001;
%side slope
z=1.5;
%b=width of channel
b=3.0;
%iteration programme part
yO=0.1;
for i=1:100
y(i)=yO+(i−1)*.1;
a(i)=(b+z*y(i))*y(i);
p(i)=b+2*y(i)*((1+zˆ2)ˆ(1/2));
r(i)=a(i)/p(i);
q(i)=(1/n)*a(i)*(r(i)ˆ(2/3))*(sˆ(1/2));
end
figure (2)
plot (y,q,'rx−','linewidth',2);
legend('Plot where n − 0.014, S = 0.001, z = 1.5 and b = 3');
title('Trapezoidal Open Channel Flow Based on Manning''s Equation');
xlabel ('Depth (m)');
ylabel ('Flow mˆ3/s');
% This script reads in a csv file as downloaded from the hydronet tool.
% The file contains flow rate data in mˆ3/s and time stamps. Once run,
% the time stamps are saved in a vector called 'date', and the corresponing
% flow rates are saved in a vector called 'flow'. Any gaps in the data are
% given a flow of zero. Used on the 3−month data from Station number
% 09010, Station Name − on the period 09/08/2018− 08/11/2018
% using MATLAB. It may require adjiustment for other stations and/or
% time periods depending on the csv format.
% 08/11/2018
\ 3 months.csv');
file id = fopen('D:\ % Opens the file with the data,
% change path and filename to
% suit actual file
% This loop esentially jumps over the first 7 lines of text so that only
% lines with data and data are to be considered
for cnt = 1:7
mydummy = fgetl(file id);
end
% This loop reads in lines from the data file until the end of the file is
% reaached
line = 1;
while 1 == 1
myvar = fgetl(file id);
if myvar ==−1
break;
7
else
% The next line sets the date equal to the time stamp
% but csv file has yyyy−mm−dd hh:mm:ss format
% need to change to mm/dd/yyy format
yyyy = myvar(1:4);
mm = myvar(6:7);
dd = myvar(9:10);
hh = myvar(12:13);
mi = myvar(15:16);
ss = myvar(18:19);
siteflow = myvar(21:25);
mydatestr = [mm,'/', dd, '/', yyyy, ' ', hh, ':', mi, ':', ss];
date{line} = datenum(mydatestr);
% This if−else statements eoither sets the flow to zero if the entry is
% empty, or sets it equal to the value in the file
len = length(myvar);
if len<=21
flow(line) = 0;
else
flow(line) = str2num(siteflow);
end
head = 12;
line = line+1;
if line > 8107 % 8107 used due to having error when exceeding arrays index
break;
end
end
end
%This is a quick plot of the flow against the date, please improve upon it.
figure(3)
%Set Latex as default text interperater
% set(figure(3),'defaulttextinterpreter','latex');
plot(flow,'rx−','linewidth',2);
figure(4)
%Set Latex as default text interperater
% set(figure(4),'defaulttextinterpreter','latex');
% plot(date, Pow,'rx−','linewidth',2);
plot(Pow,'rx−','linewidth',2);
8
title('River Discharge (Power) for 3−Month Period','Fontsize',15);
% set(gca,'Xtick',[1 length(date)],'XTickLabel',{datestr(date(2)), datestr(date(end))});
%Title on the Y axis
ylabel('Power (kW)');
xlabel('Hydrometric Data (09 Aug 2018 − 08 Nov 2018)');
%Choose file type and save location
fn2=strcat(' Power graph','');
\ ',fn2);
fn1=strcat('D:\
saveas(gcf,fn1,'png');
References
[1] Dooley, T. (2016) Why MATLAB? A Short Introduction. [pdf] DkIT School of Engineering
(Accessed: November 2018)