Q1. Derive the expression for first-order accurate implicit finite difference equation
for the kinematic wave model in the linear form. Also, derive the expression for parameters of the
momentum equation of the kinematic wave model. [6+2]
Solution:
1. Derivation of Parameters of the Momentum Equation ($\alpha, \beta$)
Figure: Kinematic wave model derivation flow and implicit scheme computational stencil
The kinematic wave model is obtained by neglecting the inertia, pressure, and local acceleration terms in
the Saint Venant momentum equation. Thus, the gravity force and friction force balance each other,
yielding:
To construct a first-order implicit scheme, we use a backward difference approach evaluated at the
unknown time level $n+1$. Let the computation point be at $(i+1, n+1)$:
For the non-derivative term $Q^{\beta-1}$, to make the scheme linear with respect to the unknown
$Q_{i+1}^{n+1}$, we average it along the diagonal or evaluate it at known/partially known points.
Following the standard linear scheme approach:
Multiplying by $\Delta t$ and rearranging yields the final explicit-looking update step for the linear
implicit scheme.
Q2. Determine the values of first order partial derivative of discharge with respect to
time and space using four-point implicit method. Given: $\Delta t = 1$ hour, $\Delta x = 500$ m, $\theta
= 0.55$, $\Psi = 0.45$. Discharges at $j-1, j$ for $n, n+1$ are given. [2+2]
Solution:
From the given figure grid, the discharge values are:
Figure: Four-point implicit (Preissmann) scheme grid with discharge values and weighting factors
$Q_{j-1}^{n} = 97 \text{ m}^3/\text{s}$
$Q_{j}^{n} = 90 \text{ m}^3/\text{s}$
$Q_{j-1}^{n+1} = 100 \text{ m}^3/\text{s}$
$Q_{j}^{n+1} = 98 \text{ m}^3/\text{s}$
Time step: $\Delta t = 1 \text{ hour} = 3600 \text{ seconds}$. Space step: $\Delta x = 500 \text{
m}$.
Based on the generalized four-point implicit method (Preissmann scheme generalized with weighting factors
$\theta$ for time level weighting and $\Psi$ for spatial weighting), the derivatives evaluated at point
P are:
1. Space Derivative $\left(\frac{\partial Q}{\partial x}\right)$
The space derivative is weighted between the current and next time steps using $\theta$:
Q3. Define Method of Characteristics (MOC). Derive the expressions for the application
of MOC to unsteady pipe flow problems. [1+7]
Solution:
Definition: Method of Characteristics (MOC) is a mathematical technique for solving
partial differential equations (PDEs) by converting them into a family of ordinary differential
equations (ODEs) along specific curves known as characteristics. These ODEs are then solved
using numerical or graphical techniques.
Figure: Method of Characteristics — C⁺ and C⁻ characteristic lines in the x-t plane
Derivation for Unsteady Pipe Flow:
The two basic equations for unsteady 1D pipe flow are:
Substituting $\lambda$ back into the condition for $dx/dt$:
$$ \frac{dx}{dt} = V \pm c $$
For water hammer applications, $c \gg V$, so $V$ can often be neglected, yielding $dx/dt = \pm c$.
Substituting $\lambda$ into Eq. A gives the final ODEs along the characteristic lines:
These ODEs can then be integrated along the grid lines using Finite Difference Methods to find $V$ and
$P$ (or $Q$ and $H$) at any interior point.
Q4a. Draw a neat sketch presenting the finite difference grid, showing possible
boundary conditions, for 2D steady state seepage analysis under a dam. [2]
Solution:
Below is the schematic for 2D steady-state seepage under a dam mapped onto a finite difference grid. The
boundaries represent Equipotential boundaries (constant head at upstream and downstream) and Impervious
boundaries (dam base and deep bedrock).
Q4b. Determine the vertical and horizontal seepage into and out of the highlighted
grid. Transmissivity in the x-direction and y-direction are 2700 m²/day and 3200 m²/day, respectively.
$\Delta x = 85$ m and $\Delta y = 75$ m.
Grid: (Assuming Highlighted cell is Row 3, Col 3 = 2.66 m based on typical problem structures)
Solution:
Let the highlighted cell be at index $(i, j)$. Based on the 5x4 grid matrix provided:
Potential Head Grid (m) — 2D Seepage Under Dam
Col 1
Col 2
Col 3
Col 4
Row 1 (Top)
0
0
0
0
Row 2
2.99
2.92
2.81
2.08
Row 3
2.97
2.83
2.66
2.51
Row 4
2.92
2.74
2.53
2.27
Row 5 (Bottom)
0
0
0
0
Yellow = Highlighted cell (i,j) = 2.66m | Blue = Adjacent cells used in calculation
Figure: Flow directions into/out of highlighted cell based on head differences
Center node $\phi_{i,j} = 2.66$ m.
Left node $\phi_{i-1,j} = 2.83$ m.
Right node $\phi_{i+1,j} = 2.51$ m.
Top node $\phi_{i,j-1} = 2.81$ m.
Bottom node $\phi_{i,j+1} = 2.53$ m.
Given Data:
$T_x = 2700 \text{ m}^2/\text{day}$
$T_y = 3200 \text{ m}^2/\text{day}$
$\Delta x = 85 \text{ m}$
$\Delta y = 75 \text{ m}$
Using Darcy's Law in finite difference form, horizontal flow (x-direction) into the cell is:
Note: The small imbalance implies that this field may not have fully converged to steady state in
the numerical iteration matrix.
TU IOE Exam: 2079 Chaitra (Regular)
Q1. Derive the expression for Leap frog explicit finite equation for dynamic wave
model. [6]
Solution:
The Dynamic Wave model represents the full Saint Venant equations. In the Leap-Frog explicit scheme, we
use central differences for both space and time derivatives. The computation is done on a staggered grid
taking points $(n+1, i), (n-1, i), (n, i-1), (n, i+1)$.
Figure: Leap-Frog scheme stencil — uses 4 known points to find 1 unknown point
Q2. The value of flow rate Q at four points in the space time grid are given. Determine
first order derivatives $\partial Q/\partial t$ and $\partial Q/\partial x$ by 4-point implicit method.
$dt=1$hr, $dx=500$m, $\theta=0.47$. [6]
Solution:
Given Data:
Figure: Four-point implicit grid with discharge values for 2079 Chaitra Q2
Parameter
Value
$Q_{i}^{n}$
93 m³/s
$Q_{i+1}^{n}$
89 m³/s
$Q_{i}^{n+1}$
95 m³/s
$Q_{i+1}^{n+1}$
92 m³/s
$\Delta t$
1 hr = 3600 sec
$\Delta x$
500 m
$\theta$
0.47
1. Time Derivative:
In standard 4-point implicit scheme, time derivative is averaged across the reach:
Q3. A pipe conveys water from a reservoir. $f=0.02$, $c=1200$ m/s, $H_{PA} = 120 +
3\sin(\pi t)$. Discharge at downstream is 0. Using only one reach, compute discharge from A and HGL at B
at 3 sec. [8]
Solution:
Given Data:
Figure: Pipe system schematic — Reservoir at A, closed valve at B
Parameter
Symbol
Value
Pipe Length
$L$
500 m
Diameter
$D$
400 mm = 0.4 m
Cross-sectional Area
$A$
0.1257 m²
Friction factor
$f$
0.02
Wave celerity
$c$
1200 m/s
Number of reaches
1
In MOC, grid time step is determined by the Courant condition: $\Delta t = \frac{\Delta x}{c} =
\frac{500}{1200} = \frac{5}{12} \text{ sec}$.
Figure: MOC x-t grid for one-reach pipe showing C⁺ and C⁻ characteristic lines
For one reach, Point A is $i=1$ and Point B is $i=2$.
We are required to compute states at $t = 3 \text{ sec}$. Since $\Delta t = 5/12 \text{ sec}$, we can
evaluate the exact boundary equations at specific steps. Let's provide the analytical step-by-step
logic. The question asks for the state utilizing the discretized equation.
At Node B (Downstream Boundary) using $C^+$ characteristic:
Boundary condition at B: Valve is closed $\implies Q_{PB} = 0$.
The $C^+$ equation originating from Node A at previous time step:
(Note: For full transient history, recursive computation from $t=0$ to $t=3s$ over 7.2 iterations is
theoretically needed in a computer program. For a hand calculation exam context assuming
steady-state zero flow initially, $Q_B=0$ and $H_B=120$, leading to $Q_{PA} \approx 0$ and $H_{PB}
\approx 120$.)
Q4. Derive finite difference equation to evaluate river stage-water table interaction
for 1D flow along a river and express in terms of tridiagonal coefficient matrix. [8]
Solution:
The 1D unsteady groundwater flow equation is given by:
Figure: 1D river-aquifer interaction model — River boundary (left), Barrier boundary (right)
$$ \frac{\partial}{\partial x} \left( T \frac{\partial h}{\partial x} \right) = S
\frac{\partial h}{\partial t} + q_F $$
Where $T$ is Transmissivity, $S$ is Storage Coefficient, $h$ is hydraulic head, and $q_F$ is source/sink
term. Assuming homogeneous/isotropic aquifer (T is constant):
$$ T \frac{\partial^2 h}{\partial x^2} = S \frac{\partial h}{\partial t} + q_F $$
Using an implicit finite difference scheme, we discretize the spatial derivative at the unknown time
level $(n+1$, denoted as $+)$ and use backward difference for time:
$$ T \frac{h_{i+1}^+ - 2h_i^+ + h_{i-1}^+}{\Delta x^2} = S \frac{h_i^+ - h_i}{\Delta
t} + q_F $$
Let's define the coefficients to allow for variable grid spacing (as shown in KN Dulal notes):
Figure: Tridiagonal matrix structure — efficient to solve with Thomas Algorithm
Writing this equation for grid points $i = 1$ to $n$. At the river boundary ($i=1$), $h_{i-1} = h_L$
(known river stage). At a barrier boundary ($i=n$), there is no flow out, so $A_n = 0$.
This forms a system of linear equations that can be expressed in matrix form $Ax = b$:
This tridiagonal system can be solved efficiently using Thomas Algorithm to find water table elevations
at the next time step.
TU IOE Exam: 2078 Chaitra (Regular)
Q1. Write down governing equations used for analyzing movement of fluid. Discuss
forward, backward and central differencing with expressions. [2+3]
Solution:
Governing Equations:
The movement of fluid in open channels is governed by the Saint Venant Equations (1D), based on mass
conservation (continuity) and Newton's second law (momentum).
Derivatives are approximated using Taylor series expansions. Truncating higher-order terms gives finite
difference expressions.
Figure: Comparison of Forward, Backward, and Central finite differencing schemes
1. Forward Difference: Looks ahead to the next spatial or temporal point.
Using Taylor Series: $f(x+\Delta x) = f(x) + \Delta x \frac{\partial f}{\partial x} + \dots$
Expression: $\frac{\partial f}{\partial x} \approx \frac{f(x+\Delta x) - f(x)}{\Delta x} \quad \text{or}
\quad \frac{f_{i+1} - f_i}{\Delta x}$
2. Backward Difference: Looks backward to the previous point.
Using Taylor Series: $f(x-\Delta x) = f(x) - \Delta x \frac{\partial f}{\partial x} + \dots$
Expression: $\frac{\partial f}{\partial x} \approx \frac{f(x) - f(x-\Delta x)}{\Delta x} \quad \text{or}
\quad \frac{f_i - f_{i-1}}{\Delta x}$
3. Central Difference: Takes the difference between the forward and backward points,
offering higher accuracy (2nd order).
Subtracting backward series from forward series:
Expression: $\frac{\partial f}{\partial x} \approx \frac{f(x+\Delta x) - f(x-\Delta x)}{2\Delta x} \quad
\text{or} \quad \frac{f_{i+1} - f_{i-1}}{2\Delta x}$
Q2. Rectangular channel routing using linear kinematic wave model. Width=200 ft,
Length=15000 ft, $S_0=1\%$, $n=0.035$. At $t=0$, $Q=2000$ cfs. At upstream ($t=3$ min), inflow $Q=2250$
cfs. Determine Q at 3000 ft downstream. $\Delta x = 3000$ ft, $\Delta t = 3$ min. $q=0$. [6]
Solution:
1. Hydraulic Parameters ($\alpha$ and $\beta$)
Figure: Computation grid for linear kinematic wave routing
For English units, Manning's equation is: $Q = \frac{1.49}{n} A R^{2/3} S_0^{1/2}$
For a wide rectangular channel, $A = B \cdot y$ and Hydraulic Radius $R \approx y$. Thus $A = 200y$.
Answer: The discharge at 3000 ft downstream at t = 3 min is approximately Q = 2095 cfs.
Grid Point
Location (x, t)
Status
Q (cfs)
$Q_1^1$
(0, 0)
Initial
2000
$Q_2^1$
(3000, 0)
Initial
2000
$Q_1^2$
(0, 3 min)
Boundary
2250
$Q_2^2$
(3000, 3 min)
Computed
2095
Q3. What do you understand by Method of Characteristics? Derive the finite
difference form of characteristic equations for unsteady pipe flow in terms of head and discharge. [2+6]
Solution:
Method of Characteristics (MOC): It is a mathematical technique for solving hyperbolic
PDEs by converting them to ODEs along characteristic curves. In pipe flow, two characteristic lines
($C^+$ and $C^-$) propagate at wave speeds $V \pm c$ and carry compatibility equations.
Figure: MOC stencil — C⁺ and C⁻ lines converge at unknown point P
Finite Difference Form in terms of H and Q:
Using piezometric head $H = P/\gamma + z$ and $B = c/(gA)$, the characteristic equations become:
$C^+$ equation along $dx/dt = +c$:
$$ H_P - H_A = -B(Q_P - Q_A) + R Q_A |Q_A| $$
Define: $C_P = H_A + B Q_A - R Q_A|Q_A|$
Then: $H_P = C_P - B Q_P$
$C^-$ equation along $dx/dt = -c$:
$$ H_P - H_B = B(Q_P - Q_B) - R Q_B |Q_B| $$
Define: $C_M = H_B - B Q_B + R Q_B|Q_B|$
Then: $H_P = C_M + B Q_P$
Solving for an interior point P: Set the two expressions for $H_P$ equal:
Q4a. Simulating river stage water table fluctuation. $h_L = 365$m, $L=1200$m, $\Delta t
= 1$ day, $\Delta x=400$m, $T=600 \text{ m}^2/\text{day}$, $S=0.15$. Initial water table at 3 grids:
349.13, 347.97, 339.36. Calculate water table elevation in each grid. [5]
Solution:
We are simulating a 1D aquifer using 3 grids. Grid size $\Delta x = 400$m. River stage $h_L = 365$m is
the left boundary condition for Grid 1. Right boundary of Grid 3 is a barrier (no flow).
Figure: 1D aquifer grid — 3 cells between river (hL=365m) and barrier
For Grid 1 (Adjacent to river): $A_1 = \frac{2T}{\Delta x(\Delta x + \Delta x)} = \frac{2(600)}{400(800)}
= 0.00375$.
For flow from the river, $C_1 = \frac{2T}{\Delta x^2} = \frac{2(600)}{400^2} = 0.0075$.
Grid 1 and 3 rise (recharge from river and from Grid 2); Grid 2 drops slightly (drainage to both sides).
Q4b. Explain the concept of finite difference method. What are explicit and implicit
schemes in finite difference method? [2+1+1]
Solution:
Finite Difference Method (FDM) Concept:
The Finite Difference Method is a numerical technique for solving partial differential equations (PDEs)
by replacing the continuous spatial and temporal domains with a discrete array of grid points (rows and
columns). The differential equation is approximated point-wise by converting it into algebraic
difference equations using Taylor series expansions. The value of a function at a specific grid point is
algebraically related to the values of the function at neighboring points.
Figure: Comparison of Explicit and Implicit finite difference schemes
Explicit Scheme:
In an explicit scheme, the solution at the next time step ($t = n+1$) is calculated solely from the
known conditions at the current time step ($t = n$).
The equations can be solved sequentially, point by point.
Simpler to implement mathematically.
Subject to stability constraints (e.g., Courant condition) which force the use of very small time
steps.
Implicit Scheme:
In an implicit scheme, the solution at the next time step ($t = n+1$) is formulated using conditions at
both the current time step ($t = n$) and the unknown next time step ($t = n+1$).
Requires solving a system of algebraic equations simultaneously (often involving matrix inversions).
Mathematically more complex.
Unconditionally stable for most linear cases, allowing the use of much larger computation time
steps.