Chapter 6 · 4 hours
Method of Characteristics
IOE past exam questions
Past questions and answers
12 questions set from this chapter, 2 of them more than once; 1 is most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.
- Most repeated · 4 of 12 exams
- Asked 4 times
- 2078 Chaitra · 2+6 marks
- 2078 Kartik · 1+1+3 marks
- 2075 Bhadra · 2+6 marks
- 2071 Bhadra · 2+6 marks
What do you understand by the method of characteristics (MOC) and why is it necessary? Derive the finite difference form of the characteristic equations of the unsteady pipe flow equations to obtain the solution in terms of head and discharge.
Answer
Method of characteristics (MOC)
The method of characteristics converts the two partial differential equations of unsteady flow (a hyperbolic system) into ordinary differential equations that hold only along special lines in the - plane, called characteristic lines. These ordinary equations are then integrated by finite differences.
Why it is necessary:
- The PDEs (continuity and momentum) are non-linear because of the friction term and cannot be solved analytically for real boundary conditions.
- Disturbances (pressure waves, water hammer) travel at finite speed ; the characteristics follow exactly these waves, so the numerical solution keeps the physical wave behaviour and sharp fronts are captured.
- It handles boundary conditions (reservoir, valve, pump) conveniently, and gives accurate results for water hammer.
For unsteady flow in a closed pipe (area , diameter , wave speed , Darcy-Weisbach factor ), with head and discharge :
Momentum:
Continuity:
Conversion to characteristic (ordinary differential) equations
Combine the two equations linearly with an unknown multiplier : .
If the two brackets are total derivatives and along a line , then
This gives two pairs of equations:
| Line | ||
| ODE | $\dfrac{gA_p}{a}\dfrac{dH}{dt}+\dfrac{dQ}{dt}+\dfrac{fQ | Q |
Multiplying by :
Finite difference form (rectangular grid, )
t
t+dt : P unknown H_P, Q_P
/ \
C+ / \ C-
t : A --C-- B known
(x-dx) (x) (x+dx) --> x
Integrate from A to P and from B to P, taking the friction term at the known point (first-order) and using :
Define the known quantities
Then and , so
With and known for all interior points, the boundary points are found from one characteristic plus the boundary condition (e.g. a reservoir: ; closed valve: ), and the procedure is repeated for the next time step.
- Asked 2 times
- 2079 Jestha · 6 marks
- 2073 Magh · 6 marks
Develop a characteristic form of a finite-difference solution of the unsteady flow equations to get the solution in terms of velocity and pressure.
Answer
Governing equations (velocity , pressure )
For a pipe of diameter inclined at angle to the horizontal (water density , wave speed , friction factor ), neglecting the small convective terms:
Momentum:
Continuity:
Characteristic equations
Form :
For both brackets to be total derivatives, , so and :
Finite difference form
Use the rectangular grid with A, C, B at time and P at , with . Multiply by , integrate along each characteristic (friction at the known point), and put (rise of the pipe over ):
t+dt : P
/ \
C+ / \ C-
t : A----C----B
Solution
Equating the two expressions for :
and is then obtained from either equation. At each time step, the interior points are found this way; boundary points use one characteristic plus the boundary condition (e.g. reservoir pressure, or at a closed valve).
- 2079 Jestha · 4 marks
If the MOC is applied for s and s, time levels for a pipe with diameter 25 cm carrying water. If m/s, m/s, m/s, m, m, and m are the values at grid points. Find the values of and at s that will be required for finding and at P when characteristics do not lie on diagonal. Here, m, s, and m/s.
Similar questions: MOC numerical, characteristics not on diagonal (30 cm) (2072 Asoj)
Answer
Idea
When the characteristics do not lie on the diagonal of the grid, : the and lines through P (at ) meet the line at points R and S that lie between the grid points, not at A and B. and at R and S are found by linear interpolation along the time line .
t2 : P
/|\
C+ / | \ C-
t1 : A-----R----C----S-----B
(x-dx) (x+dx)
|<-a dt->| |<-a dt->|
Here R lies on the line between A and C, and S on the line between C and B, each at a distance from C.
Interpolation factor
Point R (between A and C, foot):
Point S (between C and B, foot):
Answer: at s, m/s, m on the line, and m/s, m on the line. These replace and in the and equations
with and (the friction length is m).
- 2072 Asoj · 4 marks
If the MOC is applied for sec and sec, time levels for a pipe with diameter 30 cm carrying water. If m/s, m/s and m/s, m, m and m are the values at grid points. Find the values of and at sec that will be required for finding and at P when characteristics do not lie on diagonal. Here, m, sec, and m/s.
Similar questions: MOC numerical, characteristics not on diagonal (25 cm) (2079 Jestha)
Answer
Idea
When the characteristics do not lie on the diagonal of the grid, : the and lines through P (at ) meet the line at points R and S that lie between the grid points, not at A and B. and at R and S are found by linear interpolation along the time line .
t2 : P
/|\
C+ / | \ C-
t1 : A-----R----C----S-----B
(x-dx) (x+dx)
|<-a dt->| |<-a dt->|
Here R lies on the line between A and C, and S on the line between C and B, each at a distance from C.
Interpolation factor
Point R (between A and C, foot):
Point S (between C and B, foot):
Answer: at s, m/s, m on the line, and m/s, m on the line. These replace and in the and equations
with and (the friction length is m).
- 2079 Shrawan · 4+4 marks
Derive a numerical solution for evaluating the water hammer problem. (a) Using a rectangular grid, characteristics passing through the diagonal. (b) Using specified time intervals (characteristics not on the diagonal).
Answer
Water hammer is the pressure surge produced by a rapid change of velocity (valve closure, pump trip). It is solved with the characteristic equations of unsteady pipe flow.
For unsteady flow in a closed pipe (area , diameter , wave speed , Darcy-Weisbach factor ), with head and discharge :
Momentum:
Continuity:
Along () and ():
Let .
(a) Rectangular grid: characteristics through the diagonal
Divide the pipe into reaches of length and choose . The and lines through P then pass exactly through the grid points A and B of the previous time level.
t+dt : P
/|\
C+ / | \ C-
t : A----C----B
Integrating from A to P and from B to P (friction at the known end), with :
With and :
No interpolation is needed. Boundaries: upstream reservoir, and ; closed downstream valve, and .
(b) Specified time intervals: characteristics not on the diagonal
When and are chosen independently (for example to get the same in pipes of different length), the Courant condition must hold. The characteristics through P cut the time line at points R and S between grid points.
t+dt : P
/|\
C+ / | \ C-
t : A-----R----C----S-----B
With , linear interpolation gives
The characteristic equations from R and S to P (friction length , so ) are
The interpolation introduces numerical damping (diffusion), which grows as departs from 1, so the diagonal grid of part (a) is preferred when possible.
- 2078 Kartik · 6 marks
The following data are given at two points A and B along a pipe of diameter 30 cm carrying water as shown in the figure: m/s, m/s, m, m, m, sec, , (or ) m/s, elevation difference between A and P m. Using the finite difference form of the characteristics equations, compute discharge and head at point P.
[Figure: x-t grid with points A, C, B at time spaced apart and P at time above C, with from A and from B]
Answer
Use the finite difference form of the characteristic equations on the rectangular grid (A and B at time , P at ):
is the piezometric head (it already contains the elevation), so the 1 m elevation difference between A and P is not needed to find and .
Step 1: Constants
(Here m is close to m, so the characteristics are taken through A and B as in the figure.)
Step 2: Known quantities
Step 3: Solve for P
Answer: m/s and m. The negative head means the data give a pressure below the vapour pressure at P (column separation would occur), because the large impedance makes the difference between A and B produce a big head change.
- 2077 Chaitra · 4 marks
What is the method of characteristics? Define diffusion, dispersion and stability.
Answer
Method of characteristics
The method of characteristics replaces the two partial differential equations of unsteady flow by ordinary differential equations along the characteristic lines in the - plane (the and lines). These are integrated by finite differences from the known time level to the next. It is widely used for water hammer.
Numerical diffusion
Smoothing of the solution (loss of amplitude) caused by the truncation error of the scheme. In the MOC it arises when the characteristic foot falls between grid points and are found by linear interpolation: sharp pressure peaks are averaged and flattened.
Numerical dispersion
Spreading of waves caused by phase errors: different frequency components travel at different speeds, so a steep wave front becomes distorted and may show spurious oscillations. It is a property of the discretisation, not of the physical pipe.
Stability
A scheme is stable if errors made at one step do not grow in later steps. For the MOC with interpolation, the Courant condition must hold:
so that the characteristic foot lies within the grid interval used for interpolation. (characteristics along the grid diagonal) gives no interpolation error, no numerical diffusion and the most accurate result.
- 2077 Chaitra · 6 marks
The figure below shows a pipe conveying water from a reservoir. The HGL at the reservoir is given as . The discharge at the downstream end is zero at all times. By using only one reach, compute the discharge from A and elevation of HGL at B at 2 seconds using the discretized equation of the MOC in the form of head and discharge. Take and m/s.
[Figure: reservoir with water level 100 m above the pipe centreline at A; pipe AB of length m and diameter mm]
Answer
Set-up
One reach means two nodes: A at the reservoir () and B at the dead end (). The time step follows from and :
Equations
(from A at the old time to B) and (from B at the old time to A):
- Node A (reservoir): is known; use from B:
- Node B (closed end): ; use from A:
Initial condition ()
No flow and static head: , m.
First step ( s)
m; ; m/s; , so m.
Marching in time
Repeating the two boundary calculations at every step (each uses the values of the previous step):
| t (s) | (m/s) | (m) | (m) |
|---|---|---|---|
| 0.40 | 0.00237 | 101.902 | 100.000 |
| 0.80 | 0.00147 | 101.176 | 103.804 |
| 1.20 | -0.00622 | 98.824 | 102.351 |
| 1.60 | -0.00531 | 98.098 | 93.847 |
| 2.00 | 0.00768 | 100.000 | 93.846 |
( at all times.)
Answer: at s, the discharge from A is m/s and the HGL elevation at B is m.
- 2074 Bhadra · 2+6 marks
What do you understand by characteristic curve? Explain. A pipe of diameter 35 cm carrying water has the following data at two points A and B: m/s, m/s, kN/m, kN/m, m, s, , m/s (), elevation difference between A to P m. By the use of the finite difference form of the characteristics equations, compute the velocity and pressure at point P.
[Figure: x-t grid with A and B at time t separated by on either side of C, and P at time above C, reached along the characteristic from A and the characteristic from B]
Answer
Characteristic curve
In the - plane, a characteristic curve is a line along which the partial differential equations of unsteady pipe flow reduce to ordinary differential equations. It is the path of a small pressure disturbance: the curve () carries information downstream and the curve () upstream. The solution at a point is found from the values at the two points A and B where the and curves through meet the previous time line.
t+dt : P
/ \
C+ / \ C-
t : A----C----B
Numerical part
Equations used (velocity and pressure form, kg/m, m so m):
Assumption: the pipe has a uniform slope, so P is 2.50 m above A and 2.50 m below B ( m, m, m).
Constants
- kg/(ms)
- kg/m (friction coefficient)
- N/m
Velocity at P
Pressure at P (from )
Check with : N/m (same).
(The same result follows from the head form: s, m, m, giving m and .)
Answer: m/s and kN/m.
- 2072 Asoj · 4 marks
Write an algorithm for simulation of the water hammer process using the method of characteristics.
Answer
Problem: a reservoir at the upstream end, a pipe of length with a valve at the downstream end that closes in a given time.
Algorithm
- Input data: , , wave speed , friction factor , reservoir head , initial steady discharge , valve closure law (relative opening), total simulation time .
- Grid: choose the number of reaches ; set and (characteristics along the diagonal).
- Constants: , , .
- Initial conditions (): at all nodes ; (steady friction loss along the pipe).
- Time loop: set .
- Interior nodes :
- ,
- Upstream node (, reservoir): ; ; .
- Downstream node (, valve): . With the valve law the solution is For complete closure (): , .
- Update: replace old values by the new ones, , .
- Store/print and (especially the maximum at the valve and mid-pipe).
- If go to step 5; otherwise stop. Plot against to read the maximum pressure rise.
Start -> read data -> grid, B, R -> initial Q, H
-> t = t + dt
-> interior nodes (C+ and C-)
-> reservoir node (C-) , valve node (C+ and valve law)
-> update Q, H -> output
-> t < T ? yes: back to "t = t + dt" no: stop
- 2070 Bhadra · 8 marks
Prepare an algorithm to compute discharge and head based on the following form of finite difference equations for unsteady pipe flow problem using a rectangular grid.
where = head, = discharge, and = head and discharge at the point of intersection of two characteristics, and = coefficients.
Answer
Given: the two finite difference (characteristic) equations on a rectangular grid, with :
with and .
Solution of the two equations at an interior node
Equate the two expressions for and solve for :
Then follows by substituting in either equation. Equivalent: , with and .
Algorithm
- Read , , , , number of reaches , total time , initial and for , and the boundary conditions (upstream and downstream).
- Compute , , , and .
- Set and store the initial values.
- Repeat while :
- .
- For (interior nodes):
- Upstream boundary (): only the equation is available. Use the boundary condition (e.g. reservoir ):
- Downstream boundary (): only the equation is available: together with the boundary condition (closed end , so ; or a valve, pump or reservoir relation).
- Update: , for all .
- Output and at the required nodes and time.
- Stop when .
read data; compute dx, dt, B, R; set initial Q, H; t = 0
while t < T:
t = t + dt
for i = 2..N: Q_P(i) from the C+ / C- pair, then H_P(i)
upstream node: C- + boundary condition
downstream node: C+ + boundary condition
Q(i) = Q_P(i); H(i) = H_P(i) for all i
print / store results
end while
The time step must satisfy (Courant number 1) so that the characteristics pass through the grid points and no interpolation is required.
- 2070 Magh · 8 marks
A pipe conveys water from a reservoir as shown in the figure. Take , m/s. The hydraulic grade line (HGL) at the reservoir is given as . The discharge at the downstream end is zero at all times. By using only one reach, compute the discharge from A and elevation of the hydraulic grade line at B at 3 sec using the discretized equation of the method of characteristics in the form of HGL and discharge.
[Figure: reservoir with water level 100 m above the pipe centreline at A; pipe AB of length m and diameter mm; a sketch of the and characteristics on the grid]
Answer
Set-up
One reach means two nodes: A at the reservoir () and B at the dead end (). The time step follows from and :
Equations
(from A at the old time to B) and (from B at the old time to A):
- Node A (reservoir): is known; use from B:
- Node B (closed end): ; use from A:
Initial condition ()
No flow and static head: , m.
First step ( s)
m; ; m/s; , so m.
Marching in time
Repeating the two boundary calculations at every step (each uses the values of the previous step):
| t (s) | (m/s) | (m) | (m) |
|---|---|---|---|
| 0.50 | 0.00308 | 103.000 | 100.000 |
| 1.00 | 0.00000 | 100.000 | 105.999 |
| 1.50 | -0.00924 | 97.000 | 100.000 |
| 2.00 | 0.00000 | 100.000 | 88.009 |
| 2.50 | 0.01540 | 103.000 | 100.000 |
| 3.00 | 0.00000 | 100.000 | 117.968 |
( at all times.)
Answer: at s, the discharge from A is m/s and the HGL elevation at B is m.
Questions from Old Question Collection (CE 751) (IOE BCE CE 751 exam papers from 2070 to 2079). Answers are written for this site; check them against your class notes.
Chapter titles and hours from the IOE syllabus ↗