Open Ended Lab mt-471
Open Ended Lab mt-471
PP-048
submitted to
DR FAHIM RAEES
SIR UMER SIDDIQUI
Submitted by
Of Course
Applied Numerical Methods
(Mt-471)
MAWIZ
PP-048
Q1). The Manning equation can be written for a rectangular open channel as
√ s (BH )5/ 3
Q= 2/ 3
n( B+2 H )
Solution:
2 ''
( f ( xn )) f ( xn ) f ( x n)
x n+1=x n − 3
−
2( f ( xn))
' f ' (x n)
Calculations
√ s (BH )5/ 3
Q= 2/ 3
n( B+2 H )
√ 0.0002(20 H )5/ 3
5=
0.03(20+2 H)2 /3
f ( H ) =H 5/ 2−0.3879−0.03879 H
3/ 2
' 5H 3879
f ( H )= −
2 100000
1/ 2
'' 15(H )
f ( H )=
4
MATLAB Code
MAWIZ
PP-048
Command window
chebyshev_values =
4.8120
2.3392
1.2004
0.7698
0.7040
0.7036
0.7036
The Manning equation is a formula used to estimate the flow rate of water in an
open channel based on the cross-sectional area of the channel, the slope of the
channel, and a coefficient of roughness. The Manning equation is a formula used
to estimate the flow rate of water in an open channel based on the cross-sectional
area of the channel, the slope of the channel, and a coefficient of roughness. From
the given data in the problem, we conclude that ‘H’ depth is approximately equal
to 0.7036
[ ][ ] [ ]
−2 1 0 0 x1 0
2 −5 3 0 . x2 = 0
0 1 −4 3 x3 0
0 0 1 −1 x 4 −80/9
A . X=B
∵ A=LU
∵ L=Lower triangular ¿
∵ U=Upper triangular ¿
L U X=B
∵ U X=Y
L Y =B
MATLAB Code
%LU-decomposition
clc;clear all
A=[2 -1 0 0;2 -5 3 0;0 1 -4 3;0 0 1 -1]
B=[0;0;0;-80/9]
[L,U]=lu(sym(A))%command for decomposition of matrix
Y=L\B
X=U\Y;
X=double(X)
Actual = A\B
MAWIZ
PP-048
Command window
A=
2 -1 0 0 Y=
2 -5 3 0 0
0 1 -4 3 0
0 0 1 -1 0
-80/9
B=
0 X=
0 40.0000
0 80.0000
-8.8889 106.6667
115.5556
L=
[ 1, 0, 0, 0] Actual =
[ 1, 1, 0, 0] 40.0000
[ 0, -1/4, 1, 0] 80.0000
[ 0, 0, -4/13, 1] 106.6667
115.5556
U=
[ 2, -1, 0, 0]
[ 0, -4, 3, 0]
[ 0, 0, -13/4, 3]
[ 0, 0, 0, -1/13]