 Research
 Open Access
 Published:
A onedimensional mathematical simulation to salinity control in a river with a barrage dam using an unconditionally stable explicit finite difference method
Advances in Difference Equations volume 2019, Article number: 203 (2019)
Abstract
Salinity refers to the amount of salt in rivers, where the salt can be in many different forms. There are two main methods of defining the concentration of salt in water such as the total dissolved solid measurement (TDS) and the electrical conductivity measurement (EC). The salinity is measured by evaporating water to dryness and weighing the solid residue. The electrical conductivity measurement is measured by passing an electric current through the water and measuring how readily the current flows. The total amount of salt in the water can affect the taste of water. The World Health Organization’s guideline on water palatability is that water with a salinity level of less than about 0.50–0.60 g/L is generally considered to be of a standard level. The drinkingwater becomes significantly and increasingly unpalatable at salinity levels greater than about 1.0 g/L. In this research, a onedimensional mathematical model of salinity measurement in a river is proposed. A modified model of salinity control in a river with a barrage dam is also introduced. An unconditionally stable explicit finite difference technique is used to approximate the salinity level under several conditions from the proposed model. The proposed computational technique gives good agreement results in realistic scenarios for water supply processes.
Introduction
Water production means the removal of surface water or raw water from natural water sources such as rivers, canals, reservoirs, and the sea into the production process for the quality and quantity as per requirement such as tap water and pure water for use in consumption, agriculture, and industry. Each type of production water can use different production technologies.
Water supply systems will use surface water or raw water to produce water, which will be used for consumption, agriculture, and certain industries that do not require high quality water. There are many factors that affect the quality of the water produced such as salinity of the water. It is a very important factor in the production because it cannot be treated in the normal way. So, for bringing the water to the water treatment process, it is necessary to have a salinity standard.
The Waterworks Authority of Thailand has eight water quality monitoring stations located throughout the river. Each station has a distance from the estuary as shown in Table 1. Currently, the station used to pump raw water for use in the water supply process for consumption in Bangkok has a problem of salinity of water over the standard. That makes an impact on the quality of water produced has a salinity up to standard.
In [1] and [2], the finite element method was used to solve the water pollution models. In [3], the finite difference method was used to solve the hydrodynamic model with the constant coefficients in the closed uniform reservoir. In [4], an analytical solution to the hydrodynamic model in a closed uniform reservoir was proposed. In [5], the Lax–Wendroff finite difference method was also proposed to approximate the water elevation and water flow velocity. In [6], the fourthorder method for a onedimensional water quality model in a nonuniform flow stream was proposed. In [7], a nondimensional form of a twodimensional hydrodynamic model with generalized boundary condition and initial conditions for describing the elevation of water wave in an open uniform reservoir was proposed.
Today, there are research studies on the effects of drinking water with salinity over standards, such as [8, 9], and [10]. We will see that the water is too salty to the standards that affect the body. Therefore, research has been presented on the increase of salt water, such as [11] and [12]. The wellknown mathematical model uses the conservative property for defining the diffusion of salinity water in a onedimensional equation [13]
where A is a crosssectional area of the river (m^{2}), Q is flow rate (m^{3}/s), \({D_{x}}\) is diffusion coefficient of water (m^{2}/s), S is salinity value (ppt), x is distance (m), and t is time (s).
In this research, a onedimensional mathematical model of salinity measurement in a river is proposed. A modified model of salinity control in a river with a barrage dam is also introduced. An unconditionally stable explicit finite difference technique is used to approximate the salinity level under several conditions from the proposed model. The proposed computational technique can be applied in realistic scenarios for water supply processes.
Governing equations
Salinity water pollution measurement model
In a stream water quality model, the governing equation is the dynamic onedimensional advectiondispersion equation. A simplified representation, averaging the equation over the depths, is shown in [6]:
for all \((x,t) \in \varOmega = [0,L] \times [0,T]\), u is the flow velocity and D is a given diffusion coefficient.
Assume that the salinity is diluted by the freshwater, then the salinity advection level is reduced by the freshwater velocity. The percentage ability of freshwater to dilute salinity is assumed to be \(0 \le k \le 1\). The onedimensional salinity water pollution measurement model in a river can be given as follows:
where \(c(x,t)\) is the salinity concentration (kg/m^{3}), \({u_{s}}\) is advective velocity of salinity water (m/s), k is water salinity removal efficiency rate, \(u_{w}\) is the fresh water flow velocity.
Initial conditions
The initial condition is defined by an interpolation function of measured raw salinity data. It is aligned on the length of the river from the estuary to the end of the considered area. The initial condition is assumed to be
for all \(x \in [0,L]\), where \(f(x)\) is an interpolation function of measured salinity data.
Boundary condition
Left boundary condition
The left boundary condition is an interpolation function of measured raw data. It is based on the salinity of a river at the first station close to the estuary. The boundary condition is assumed to be
for all \(t \in [0,T]\), where \(g(t)\) is a given interpolation function by measured salinity data at the first monitoring station.
Right boundary condition
The right boundary condition is defined by the rate of change of salinity area of the water. The condition can be given as follows:
for all \(t \in [0,T]\), where \(C_{R}\) is an approximated rate of change of salinity around the last monitoring station.
Explicit finite difference method for a onedimensional salinity water pollution measurement model
We now discretize the domain by dividing the interval \([0,L]\) into M subintervals such that \(M\Delta x = L\) and the time interval \([0,T]\) into N subintervals such that \(N\Delta t = T\). The grid points \(( {{x_{i}},{t_{n}}} )\) are defined by \({x_{i}} = i\Delta x\) for all \(i = 1,2,3,\ldots,M\) and \({t_{n}} = n\Delta t\) for all \(n = 1,2,3,\ldots,N\), in which M and N are positive integers. We can then approximate \(c ( {{x_{i}},{t_{n}}} )\) by \(C_{i}^{n}\), value of the difference approximation of \(c ( {x,t} )\) at point \(x = i\Delta x\) and \(t = n\Delta t\), where \(0 \le i \le M\) and \(0 \le n \le N\). We will employ the forward time central space finite difference scheme (FTCS) and the Saulyev method into Eq. (2).
Forward time central space finite difference scheme
Taking the forward time central space technique [4] into Eq. (2), we get the following discretization:
Substituting Eqs. (7–12) into Eq. (2), we get the finite difference equation:
Then the explicit finite difference equation becomes
for all \(i = 1,2,3,\ldots,M  1\), where \(\lambda = \frac{{{D_{s}}\Delta t}}{{{{ ( {\Delta x} )}^{2}}}}\) and \(r_{i}^{n} = \frac{ { ( {u_{{s_{i}}}^{n}  ku_{{w_{i}}}^{n}} )\Delta t}}{ {\Delta x}}\). The forward time central space scheme is conditionally stable subject to constraints in Eq. (13). The stability requirements for the scheme are [6], \(0 < \lambda < \frac{1}{2}\), and \(0 < r _{i}^{n} < 1\).
Right boundary condition approximation
For the right boundary condition Eq. (6), the right boundary condition is defined by the rate of change of salinity area of the water. The right boundary condition is assumed to be
for all \(t \in [0,T]\), where \(L_{1}\) and \(L_{2}\) are the distance from the upstream to the point before and after the water supply source, respectively. If we substitute the approximate unknown value of the right boundary, we obtain
The forward time central space scheme is conditionally stable subject to constraints in Eq. (13). The stability requirements for the scheme are [6]. It can be obtained that the strict stability requirements are the main disadvantage of this scheme.
Saulyev explicit finite difference scheme
The Saulyev scheme is unconditionally stable [3]. It is clear that the nonstrict stability requirement of the Saulyev scheme is the main advantage and economical to use. Taking Saulyev technique [3] into Eq. (2), the following discretization can be obtained:
Substituting Eqs. (17–20) into Eq. (2), we get the finite difference equation
Then the explicit finite difference equation becomes
for all \(i = 1,2,3,\ldots,M  1\), where \(\lambda = \frac{{{D_{s}}\Delta t}}{{{{ ( {\Delta x} )}^{2}}}}\) and \(r_{i}^{n} = \frac{ { ( {u_{{s_{i}}}^{n}  ku_{{w_{i}}}^{n}} )\Delta t}}{ {\Delta x}}\). For \(i=M\), the right boundary condition Eq. (5), if substituting the approximate unknown value of the right boundary, we obtain \(C_{M + 1}^{n} = ( {\frac{{C_{{M_{2}}}^{n}  C_{{M_{1}}} ^{n}}}{{{L_{2}}  {L_{1}}}}} )\Delta x + C_{M  1}^{n}\).
Using Taylor series expansions on the approximation, [14] has shown that the truncation error is \(O \{ {{{ ( {\Delta x} )}^{2}} + {{ ( {\Delta t} )}^{2}} + {{ ( {{{\Delta t} / {\Delta x}}} )}^{2}}} \}\).
The Saulyev method is an unconditionally stable method [15]. It follows that the application of the explicit Saulyev finite difference technique is economical in terms of computation implementation.
Numerical simulations
Simulation 1: salinity control in an ideal case
We consider a segment of a river with 108 km of length as shown in Table 1. Assume that the salinity diffusion coefficient is 0.1 m^{2}/s, the salinity flow velocity is 0.065 m/s, the ability percentage of fresh water dilution is 30%, and the given simulated station at any time is 100. Their physical parameters and given spacing are shown in Table 2. In [11], the theoretical solution is given by
Actually, when using the FTCS scheme Eq. (14) and the Saulyev technique Eq. (23), when their physical parameters are as given in Table 2, we get the approximated solution \(c(x,t)\). The theoretical solution is illustrated by a surface of solution in Fig. 1. The FTCS approximated solution is illustrated by Fig. 2. The Saulyev approximated solution is also illustrated by Fig. 3. The maximum absolute error of both finite difference approximations is compared in Table 3.
Simulation 2: the salinity is diluted by releasing the fresh water from a barrage dam with different flow velocities.
We consider a segment of a river with 108 km of length as shown in Table 1. Assuming that the salinity diffusion coefficient is 0.1 m^{2}/s, the salinity flow velocity is 0.065 m/s, the ability percentage of fresh water dilution is 30%, and the given simulated station at any time is 1000. Their physical parameters and given spacing are shown in Table 4. In this simulation, the Saulyev technique is used to approximate the solution since the technique will always give stable solutions as shown in Table 5. According to the good agreement of approximated solutions of the Saulyev method, the method in Eq. (23) is chosen to approximate the solution of the simulation. The several fresh water flow velocities \(u_{w} = 0.20,0.25,0.30\mbox{ m}/\mbox{s}\) from the barrage dam are simulated until the salinity level at the controlled monitoring station \(S_{7}\) becomes standardized level as shown in Figs. 4–5.
Simulation 3: the salinity is diluted by releasing the fresh water from a barrage dam and changing flow velocities after the salinity comes to standard
We consider a segment of a river with 108 km of length as shown in Table 1. Assuming that the salinity diffusion coefficient is 0.1 m^{2}/s, the salinity flow velocity is 0.065 m/s, the ability percentage of fresh water dilution is 30%, and the given simulated station at any time is 1000. Their physical parameters and given spacing are shown in Table 6. Assume that there are eight monitoring stations along a considered river segment as shown in Table 1. The controlled monitoring station is station \(S_{7}\). We need to control the salinity level at station \(S_{7}\) to be under the salinity standard level \(C_{ST} = 0.3\) \(kg/m^{3}\). The salinity is controlled by a process as follows:

(1)
If the salinity level at station \(S_{7}\) \(c(96,t) > {C_{ST}}\), then the fresh water will be released at a high speed from the barrage dam by controlled flow velocity.

(2)
If the salinity level at station \(S_{7}\) \(c(96,t) < {C_{ST}}\), then the fresh water will be released at a low speed level from the barrage dam.
We can obtain the approximated salinity level along the considered river segment as shown in Fig. 6 and Table 7. The salinity level at several monitoring stations \(S_{1}\), \(S_{5}\), and \(S_{7}\) is shown in Figs. 7, 8, and 9, respectively.
Simulation 4: diluting the salinity of water by releasing fresh water before salinity water arrives at the pumping station
We consider a segment of a river with 108 km of length as shown in Table 1. Assume that the salinity diffusion coefficient is 0.1 m^{2}/s, the salinity flow velocity is 0.065 m/s, the ability percentage of fresh water dilution is 30%, and the given simulated station at any time is 1000. Their physical parameters and given spacing are shown in Table 8. Assume that there are eight monitoring stations along the considered river segment as shown in Table 1. The controlled monitoring station is station \(S_{7}\). We need to control the salinity level at station \(S_{7}\) before salinity level at station \(S_{7}\) is over the salinity standard level \(C_{ST} = 0.05\mbox{ kg/m}^{3}\) for about three days. In this simulation, the Saulyev technique is used to approximate the solution since the technique will always give stable solutions. The salinity is controlled by a process as follows:

(1)
If the salinity level at station \(S_{5}\) \(c(91,t) < {C_{ST}}\), then the fresh water is released at a normal speed level from the barrage dam.

(2)
If the salinity level a station \(S_{5}\) \(c(91,t) > {C_{ST}}\), then the fresh water will be released at a high speed from the barrage dam which is used to control the salinity.
We can obtain the approximated salinity level along the considered river segment as shown in Table 9 and Fig. 10. The salinity level at several monitoring stations \(S_{1}\), \(S_{5}\), and \(S_{7}\) is shown in Figs. 11, 12, and 13, respectively.
Discussion
In simulation 1, we get good agreement between approximated solutions of the FTCS and the Saulyev finite difference techniques. The maximum error is less than 1%. In simulation 2, we can obtain that the Saulyev technique is better than the FTCS technique due to the limitation of stability conditions. The Saulyev technique gives a stable approximated solution. Otherwise, the FTCS is limited by its stability conditions. Thus the Saulyev technique is preferred in other realistic simulations. We can see that the salinity level will be reduced when the fresh water flow velocity is increasing as shown in Fig. 5. In simulation 3, a salinity control process is simulated. The salinity is reduced, the salinity level comes to standard, after that we can decrease the fresh water flow velocity to maintain the salinity level at the standard level as shown in Fig. 9. In simulation 4, a salinity control process is simulated. The salinity is reduced before the salinity level touches the standard salinity level. The proposed process can reduce the salinity level when the fresh water is released from the barrage dam at least amount as shown in Figs. 11–13.
Conclusion
We have proposed a onedimensional mathematical model of salinity measurement in a river with a barrage dam. The proposed model deals with salinity advection to a river and the fresh water flow from the barrage dam effects. The traditional forward time central space finite difference method is compared with the proposed Saulyev technique. The proposed Saulyev technique gives a stable solution in any grid spacing. The technique also gives accurately approximated solutions. The realistic problem is also simulated. The proposed simulation can be used in several realistic salinity measurements. In the salinity control aspect, the proposed process can reduce the salinity level before the level is over the standard. The proposed numerical simulation can be applied in practical salinity control in a river with a barrage dam.
References
 1.
Pochai, N., Tangmanee, S., Crane, L.J., Miller, J.J.H.: A mathematical model of water pollution control using the finite element method. In: Proceedings in Applied Mathematics and Mechanics, 27–31 March 2006, Berlin (2006)
 2.
Tabuenca, P., Vila, J., Cardona, J., Samartin, A.: Finite element simulation of dispersion in the Bay of Santander. Adv. Eng. Softw. 28, 313–332 (1997)
 3.
Pochai, N., Tangmanee, S., Crane, L.J., Miller, J.J.H.: A water quality computation in the uniform channel. J. Interdiscip. Math. 11, 803–814 (2008)
 4.
Pochai, N.: A numerical computation of nondimensional form of stream water quality model with hydrodynamic advectiondispersionreaction equations. Nonlinear Anal. Hybrid Syst. 13, 666–673 (2009)
 5.
Pochai, N.: A numerical computation of nondimensional form of a nonlinear hydrodynamic model in a uniform reservoir. Nonlinear Anal. Hybrid Syst. 3, 463–466 (2009)
 6.
Pochai, N.: Unconditional stable numerical techniques for a waterquality model in a nonuniform flow stream. Adv. Differ. Equ. 2017, 286 (2017)
 7.
Thongtha, K., Kasemsuwan, J.: Analytical solution to a hydrodynamic model in an open uniform reservoir. Adv. Differ. Equ. 2017, 149 (2017)
 8.
Nahian, M.A., Ahmed, A., Lazar, A.N., Hutton, C.W., Salehin, M., Streatfield, P.K.: Drinking water salinity associated health crisis in coastal Bangladesh. Elem. Sci. Ant. 6, 2 (2018)
 9.
Suarez, D.L., Lebron, I.: Water quality criteria for irrigation with highly saline water. In: Towards the Rational Use of High Salinity Tolerant Plants, vol. 28, pp. 389–397 (1996)
 10.
Letey, J.: Relationship between salinity and efficient water use. Irrigation science. Irrig. Sci. 14, 75–84 (1993)
 11.
Leewatchanakul, K.: Salinity intrusion in Chao Phraya river. PhD thesis, Chulalongkorn University (1988)
 12.
Grant, R.F.: Salinity water use and yield of maize: testing of the mathematical model ecosys. Plant Soil 172, 389–397 (1995)
 13.
Chapra, S.C.: Surface WaterQuality Modeling. McGrawHill, New York (1997)
 14.
Pochai, N.: A numerical treatment of nondimensional form of water quality model in a nonuniform flow stream using Saulyev scheme. Math. Probl. Eng. 2011, 1–16 (2011)
 15.
Samalerk, P., Pochai, N.: Numerical simulation of a onedimensional waterquality model in a stream using a Saulyev technique with quadratic interpolated initialboundary conditions (2018)
Funding
This paper is supported by the Centre of Excellence in Mathematics, the Commission on Higher Education, Thailand. The authors greatly appreciate valuable comments received from the referees.
Author information
Affiliations
Contributions
All authors contributed equally to the writing of this paper. The authors read and approved the final manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Othata, P., Pochai, N. A onedimensional mathematical simulation to salinity control in a river with a barrage dam using an unconditionally stable explicit finite difference method. Adv Differ Equ 2019, 203 (2019). https://doi.org/10.1186/s1366201921064
Received:
Accepted:
Published:
MSC
 65N06
 65M06
 92F99
Keywords
 Salinity
 Water quality
 Barrage dam
 River
 Saulyev method