Professional Documents
Culture Documents
www.elsevier.com/locate/advengsoft
Abstract
This study proposes a transient groundwater modeling using spreadsheet simulation (TGMSS) model for solving groundwater problems.
TGMSS may be considered as a practical method and introduction to groundwater modeling that uses spreadsheets instead of conventional
groundwater model codes. Irregular aquifer geometry, variable boundary conditions and sinks and/or source values, heterogeneous aquifer
parameters (conductivity, storage capacities), may be evaluated in the TGMSS. Different management scenarios may be analyzed by
obtaining the groundwater level of different times. Two hypothetical examples are tested with TGMSS and verified with MODFLOW.
Results showed that the TGMSS and MODFLOW results were in good agreement in terms of resulting values of hydraulic heads in all cases.
q 2005 Elsevier Ltd. All rights reserved.
two flux terms at tZ(mC1)Dt and two flux terms at tZmDt. 4. Model development
In the first stage, the flux terms in the x and y directions are
taken tZ(mC1)Dt and tZmDt, respectively. In the second The general structure of problem domain for the
stage, the flux terms in the x and y directions are taken TGMSS, which uses FDM, can be seen in Fig. 1. The
tZmDt and tZ(mC1)Dt, respectively. There is no FDM equations in the cell is easily generated as much as it is
instability problem in this method. required depending on the Dx and Dy, which are the size of
By arranging Eqs. (2) and (3), Eq. (5) which consists of grids in the solution domain.
one-stage solution algorithm can be obtained as:
m CCðHi;j Þ C CEðHiC1;j Þ C CWðHiK1;j Þ C CSðHi;jC1 Þ C CNðHi;jK1 Þ C Wi;j
Hi;j Z
ðCE C CW C CS C CN C CCÞ
(5) The TGMSS model is divided into rectangular grid
where intervals both in x and y directions in order to carry out the
iterative spreadsheet calculation. The TGMSS model takes
Si;j Dx, Dy, Dt, aquifer parameters (e.g. hydraulic conductivity,
CC Z (5a)
Dt storage capacity, initial hydraulic heads), iteration number
and/or maximum change (3), time (mDt) as input par-
1
CE Z ½K i;j C KiC1;j (5b) ameters. The flowchart of TGMSS can be seen in Fig. 2.
2Dx2 The TGMSS consist of two loops as in Fig. 2; inner loop
and outer loop. The inner loop computes the hydraulic heads
1 for given time interval until the maximum convergence
CW Z ½Ki;j C KiK1;j (5c)
2Dx2 criterion (3) is met, then, the outer loop controls the time
dimensions for subsequent use in inner loop. Maximum
1 convergence criteria (3) for inner and outer loops can be
CS Z ½Ki;j C Ki;jC1 (5d)
2Dy2 given as follows:
m;nC1 m;n
Emax;1 Z MaxjHi;j K Hi;j j (6)
1 mC1;n m;n
CN Z ½Ki;j C Ki;jK1 (5e) Emax;2 Z MaxjHi;j K Hi;j j (7)
2Dy2
Qi;j START
Wi;j ZG (5f)
DxDyHi;j
- Definition of Geometry
TGMSS uses the iterative alternating direction implicit - Aquifer Parameters
- Initial Time and Time Steps
method (IADIM). So, it does not need any stability criteria - Tolerance (e)
since Eq. (5) is iteratively solved with neighboring cells
simultaneously. t = mnew∆t
i Hj,i
n=n+1
1 5 10 15 20 m,n+1 m,n+1
Emax,1= Max Hi,j − Hi,j
1
mnew = mold + ∆m
j NO
Emax,1 < ε
5
YES
m
Hj,i
10
m+1,n
Emax,2= Max Hi,j − Hi,jm,n
15 NO Emax,2 < ε
YES
20 RESULTS
END
Fig. 3 shows the solution domain represented in criteria (3) as can be seen in Fig. 4. When both criteria are
spreadsheet. This sheet is called ‘Solution’. Six additional met, the iterative calculation is stopped.
sheets are indicated by the ‘tabs’ in Fig. 3. Solution of TGMSS model is carried out based on Eq. (5)
Storage describes the inputs for the storage capacity as a in the following spreadsheet format:
separate sheet, conductivity describes the inputs for the
hydraulic conductivity as a separate sheet, and source and C4 Z ððStorage!C4=Solution! $ AA $ 11Þ * Solution!C4
recharge_sources describe the inputs for the sinks and/or C $ AA $ 9 * ðConductivity!C4
sources, which computed using the pumping rate, and
recharge values in the pumping and recharge sheets. Note C Conductivity!D4Þ * Solution!D4
that the sinks are computed using negative (K) pumping rates,
and sources are computed using positive (C) pumping rates. C $ AA $ 9 * ðConductivity!B4
Iteration number and/or maximum convergence criteria
C Conductivity!C4Þ * Solution!B4
(3) are given in the TGMSS as follows:
Select ‘Tools’ pull-down menu of the spreadsheet and C $ AA $ 10 * ðConductivity!C4
select ‘Options’ in it. Then, select the calculation tab. The
iteration option is not selected when the spreadsheet is C Conductivity!C3Þ * Solution!C3
loaded by default. There are two important options given in
this window: one is maximum iterations and the other is C Solution! $ AA $ 10 * ðConductivity!C4
maximum allowable convergence (maximum change) C Conductivity!C5Þ * Solution!C5
C Source!C4Þ=ððStorage!C4=Solution! $ AA $ 11Þ
C $ AA $ 9 * ðConductivity!C4
C Conductivity!D4Þ
C $ AA $ 9 * ðConductivity!B4
C Conductivity!C4Þ
C $ AA $ 10 * ðConductivity!C4
C Conductivity!C3Þ
C $ AA $ 10 * ðConductivity!C4
C Conductivity!C5ÞÞ
Fig. 4. Maximum iterations and maximum allowable convergence criteria. (8)
378 H. Karahan, M.T. Ayvaz / Advances in Engineering Software 36 (2005) 374–384
where C4, which is an intersection of the third column (C) 5.1. First hypothetical example
and fourth row (4), represents the hydraulic head in cell.
Related sheets are used in solving Eq. (5). Cell names Grid spacing, DxZDyZ100 m
consist of column and row numbers and follow the sheet Number of grid spacing, NZMZ23
names ending with the ‘!’ indicator (e.g. Conductivity!C5 or Hydraulic conductivity, KZ15.0 m/day (fix in all cells)
Solution!B5). Storage capacity, SZ1.0 mK1 (fix in all cells)
The output of TGMSS can be seen visually using Time step, DtZ1 day
graphical interface of spreadsheet simultaneously.
5.1.1. Case I
Three hypothetical wells having constant pumping rates
5. Numerical applications are located as sinks and/or sources. The wells are located
symmetrically in the solution domain. Pumping rates,
The application of the TGMSS model for groundwater Q 1 ZQ 3Z432.0 m 3/day (sinks), Q 2Z864.0 m3 /day
systems is tested using two hypothetical examples. The first (source).
hypothetical example has homogeneous aquifer parameters The pumping rates in Fig. 5 are converted to sink and/or
and is further divided into two cases. In addition, the second source values using the procedure in Fig. 6 to avoid the
hypothetical example has heterogeneous aquifer parameters problem of zero division. Note that the value of H in Fig. 8
and is examined under two scenarios. (i.e. in Eq. (5f)) is equal to initial hydraulic head before
the iteration is started. For this example, the initial hydraulic heads over the solution domain. Each contour of Fig. 8
head is given 20 m in each cell. indicates the various levels of hydraulic heads.
To start the iterative calculation, cell of C4 is copied and The TGMSS model has been verified with MODFLOW.
pasted from C4 to W24. Column and row numbers of Eq. (8) The results of TGMSS model and MODFLOW showed good
will be changed in each cell among the range of C4:W24. agreement. The contour of TGMSS is given in Fig. 9(a), and
Results of the TGMSS can be seen in Fig. 7. The the contour of MODFLOW is given in Fig. 9(b).
boldface cells indicate the well locations. Note that the The contours of the TGMSS model can be seen in
values of hydraulic heads in two symmetrically located Fig. 10(a) for tZ1 day, Fig. 10(b) for tZ5 days and
wells are equal. Fig. 10(c) for tZ10 days. Variation of groundwater table
Three-dimensional representation of hydraulic heads can (GWT) at any node becomes steady-state as the time
be seen in Fig. 8. This figure shows the level of hydraulic increases. Fig. 11 shows the variation of GWT where
20,90
20,75
20,60
20,45
20,30
20,15
20,00
19,85
19,70
19,55
19,40
H (m) 19,25
19,10
18,95
18,80
18,65
18,50
18,35
18,20
18,05
17,90
17,75
17,60
17,45 S21
17,30
17,15 S17
17,00
S13
1
6 S9
y (grid numbers)
11 S5
x (grid numbers) 16
S1
21
2000 2000
21.00 21.00
1800 1800
20.80 20.80
20.60 20.60
1600 20.40
1600 20.40
20.20 20.20
1400 20.00 1400 20.00
y (m)
19.80 19.80
y (m)
200 200
200
400
600
800
1000
1200
1400
1600
1800
2000
2200
200
400
600
800
1000
1200
1400
1600
1800
2000
2200
x (m) x (m)
Fig. 9. Contours of the TGMSS and MODFLOW for tZ3600 days. (a) Graphical output of the TGMSS. (b) Graphical output of the MODFLOW.
y (m)
19.80 19.80
1200 19.60 1200 19.60
19.40 19.40
1000 19.20 1000 19.20
19.00 19.00
800 18.80 800 18.80
18.60 18.60
600 18.40 600 18.40
18.20 18.20
400 18.00 400 18.00
200 200
200
400
600
800
1000
1200
1400
1600
1800
2000
2200
1000
1200
1400
1600
1800
2000
2200
200
400
600
800
x (m) x (m)
(c ) 2 2 0 0
2000
21.00
1800 20.80
20.60
1600 20.40
20.20
1400 20.00
y (m )
19.80
1200 19.60
19.40
1000 19.20
19.00
800 18.80
18.60
600 18.40
18.20
400 18.00
200
200
400
600
800
1000
1200
1400
1600
1800
2000
2200
x (m)
Fig. 10. Variation of groundwater level for (a) tZ1 day, (b) tZ5 days and (c) tZ10 days.
H. Karahan, M.T. Ayvaz / Advances in Engineering Software 36 (2005) 374–384 381
20.00 Table 1
19.80 Total mass errors and CPU times for Case 1 and 2
Hydraulic Head (m)
22.00
21.50 given in Table 2.
21.00 Iterative calculations for Scenario A and B can be started
20.50
20.00
using the procedure previously described. The initial
19.50 hydraulic heads are given 15 m. Before the calculation is
19.00 started, this value needs to be pasted to all cells in the
18.50
18.00
solution domain. The results of the total mass errors and
17.50 CPU times for Scenario A and B is given in Table 3.
17.00 As can be seen in Table 3, total mass errors of Scenario A
0 360 720 1080 1440 1800 2160 2520 2880 3240 3600
Time (day)
and B are in good agreement with accuracy of result, but
CPU times are very different. It may be concluded that
Fig. 12. Variation of hydraulic heads against time for the well locations. Scenario A is better for obtaining the hydraulic heads at
382 H. Karahan, M.T. Ayvaz / Advances in Engineering Software 36 (2005) 374–384
Table 3
Total mass errors and CPU times for Scenario A and B
1.088E+008
Scenario A
Time (day) Scenario A Scenario B Scenario B
20.00
6. Conclusions and limitations 1000 19.90
19.75
This study proposes the TGMSS model to solve 19.50
groundwater-modeling problems. Each cell in the spread- 1500 19.35
19.25
sheet was matched with middle point of the each element with
19.00
FDM. Copying–pasting, iterative calculation and graphical
y(m)
2000 18.50
representation of spreadsheets has been illustrated. The
18.00
TGMSS model was tested with two hypothetical examples.
17.50
The following conclusions can be drawn from study.
2500 17.00
The TGMSS model may be adapted to learn for basic
16.50
groundwater problems, which may be considered as a
16.00
flexible structure. There are no difference between the
3000 15.50
numerical solutions of homogeneous-isotropic systems and 15.00
heterogeneous-anisotropic systems in terms of solution
techniques and data processing for this problem. 3500
There may be no need to use macros and subroutines in
the TGMSS model. The writing of the input values to the
related sheets and the generations are easy in terms of 500 1000 1500 2000
solution procedure. x(m)
The present method may not be applied for solving large
systems of equations due to the limitation in the size of Fig. 17. Variation of groundwater level for tZ3600 days.
384 H. Karahan, M.T. Ayvaz / Advances in Engineering Software 36 (2005) 374–384
spreadsheets. Another limitation of spreadsheet is that finite [6] Grupta SK, Cole CR, Pinder GF. A finite element three-dimensional
difference grids, which are mapped into spreadsheet cells, groundwater (FE3DGW) model for a multiaquifer system. Water
Resour Res 1984;20(5):553–63.
can only be rectangular or triangular. Hence, some geometry [7] Li H, Yang QA. Least-squares penalty method algorithm for inverse
problems may be occurred at the excluding curved problems of steady-state aquifer models. Adv Water Res 2000;23(8):
boundaries in complex geometries. Future study should be 867–80.
on this issue. [8] Mazzia A, Putti M. Mixed-finite element and finite volume
discretization for heavy brine simulations in groundwater. J Comp
Appl Math 2002;147(1):191–213.
[9] Hagler M. Spreadsheet solution of partial differential equations. IEEE
Acknowledgements Trans Educ 1987;E-30:130–4.
[10] Gvirtzman Z, Garfunkel Z. Numerical solutions for one-dimensional
The authors say a special thanks to anonymous referees heat-conduction equation using a spreadsheet. Comput Geosci 1996;
22(10):1147–58.
and Dr Halim Ceylan from the Department of Civil [11] Bardet JP, Tobita T. A practical method for solving free-surface
Engineering at Pamukkale University for meticulous proof- seepage problems. Comput Geotech 2002;29:45–475.
reading and suggestions. [12] Anderson MP, Woessner WW. Applied groundwater modelling
simulation of flow and advective transport. New York: Academic
Press; 1992.
[13] Freeze A, Cherry JA. Groundwater. Englewood Cliffs, NJ: Prentice-
References Hall; 1979.
[14] Fetter CW. Applied hydrogeology. 3rd ed. New York: Macmillan
[1] Trescott PC, Larson SP. Solution of three-dimensional groundwater Company; 1994.
flow equations using the strongly implicit procedure. J Hydrol 1977; [15] Kinzelbach W. Groundwater modelling. Amsterdam: Elsevier; 1986.
35:49–60. [16] Olsthoorn TN. The power of electronic worksheet: modeling without
[2] McDonald MG, Harbough AW. A modular three-dimensional finite special programs. Ground Water 1985;23(3):381–90.
difference groundwater flow model. US Geol Surv Tech Water Resour [17] Anderson MP, Bair ES. The power of spreadsheet models. MOD-
Invest 1988;Book 6(Chapter A1):586. FLOW 2001 and other modeling odysseys proceedings, international
[3] Wang PP, Chunmaio Z. An efficient approach for successively ground water modeling center, Colorado School of Mines 2001
perturbated groundwater models. Adv Water Resour 1998;21(6): p. 815–22.
499–508. [18] Saulyev FK. Integration of equations of parabolic type by the method
[4] Bakker M. Simulating groundwater flow in multi-aquifer systems with of nets. New York: Macmillan Company; 1964.
analytical and numerical Dupuit-models. J Hydrol 1999;222(1–4): [19] Bobba AG. Numerical model of contaminant transport through
55–64. conduit-porous matrix system. Math Geol 1989;21:861–90.
[5] France PW. Finite element analysis of three-dimensional groundwater [20] Bear J. Hydraulics of groundwater. New York: McGraw-Hill,
flow problems. J Hydrol 1974;21:381–98. Inc; 1979.