Professional Documents
Culture Documents
cbcilt o
cáåáíÉ=bäÉãÉåí=pìÄëìêÑ~ÅÉ=cäçï
C=qê~åëéçêí=páãìä~íáçå=póëíÉã
tÜáíÉ=m~éÉêë
sçäK=fff
aefJt^pv=dãÄe
`çéóêáÖÜí=åçíáÅÉW
kç=é~êí=çÑ=íÜáë=ã~åì~ä=ã~ó=ÄÉ=éÜçíçÅçéáÉÇI=êÉéêçÇìÅÉÇI=çê=íê~åëä~íÉÇ=ïáíÜçìí=ïêáííÉå=éÉêãáëëáçå=çÑ=íÜÉ=
ÇÉîÉäçéÉê=~åÇ=ÇáëíêáÄìíçê=aefJt^pv=dãÄeK
`çéóêáÖÜí=EÅF=OMMQI=OMMRI=OMMTI=OMMV=aefJt^pv=dãÄe=_Éêäáå=J=~ää=êáÖÜíë=êÉëÉêîÉÇK=
aefJt^pv=~åÇ=cbcilt=~êÉ=êÉÖáëíÉêÉÇ=íê~ÇÉã~êâë=çÑ=aefJt^pv=dãÄeK
aefJt^pv=dãÄeI===
t~äíÉêëÇçêÑÉê=píê~≈É=NMRI==aJNOROS=_ÉêäáåI=dÉêã~åó
mÜçåÉW=HQVJPMJST==VV=VUJMI=c~ñW=HQVJPMJST=VV=VUJVV
bJj~áäW=ã~áä]ÇÜáJï~ëóKÇÉ
áá=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
`çåíÉåíë
`çåíÉåíë
NK=jçÇÉäáåÖ=î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=áå=Oa=Üçêáòçåí~ääó=ëÅÜÉã~íáòÉÇ=~èìáÑÉêë=
ìëáåÖ=éêçàÉÅíÉÇ=Öê~îáíóK=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K R
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=
áå=cbcilt K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K NP
PK=rëáåÖ=~åÇ=íÉëíáåÖ=íÜÉ=~äÖÉÄê~áÅ=ãìäíáÖêáÇ=Éèì~íáçå=ëçäîÉê=p^jd=áå=cbcilt OR
pìÄàÉÅí=fåÇÉñ =K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K PV
cbcilt=ö=ááá
`çåíÉåíë
^ìíÜçê=fåÇÉñ=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K=K= QN
áî=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
jçÇÉäáåÖ= î~êá~ÄäÉJÇÉåëáíó= éêçÄäÉãë= áå= Oa= ÜçêáJ
òçåí~ääó= ëÅÜÉã~íáòÉÇ= ~èìáÑÉêë= ìëáåÖ= éêçàÉÅíÉÇ
Öê~îáíó
N
H.-J. G. Diersch
WASY Institute for Water Resources Planning and Systems Research, Berlin, Germany
N jçÇÉäáåÖ=î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=áå=Oa=Üçêáòçåí~ääó=ëÅÜÉã~íáòÉÇ=~èìáÑÉêë=ìëáåÖ=éêçàÉÅíÉÇ=Öê~îáíó
cbcilt=ö=R
NK=jçÇÉäáåÖ=î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=áå=Oa=Üçêáòçåí~ääó=ëÅÜÉã~íáòÉÇ=~èìáÑÉêë=ìëáåÖ
éêçàÉÅíÉÇ=Öê~îáíó
horizontally schematized aquifer described by verti- with
cally integrated equations and a projected gravity field.
This approach is available with the FEFLOW release B = xl
top bottom
– xl ⎫
⎪
5.1. f
q ⊗q
f ⎪
f
D = B ( εD d + β T q )I + ( β L – β T ) --------------- - ⎪
q
f ⎪
⎪
(1 – ε) ⎪
R = B 1 + ---------------- χ ( C ) ⎪
ε ⎪
cond disp f f s s
⎪
λ = λ +λ Q T = B [ ερ Q T + ( 1 – ε )ρ Q T ] ⎪
(1-5)⎬
f f ⎪
cond f s disp f f f q ⊗q ⎪
λ = B [ ελ + ( 1 – ε )λ ]I λ = ρ c β T q I + ( β L – β T ) ---------------
f
- ⎪
q ⎪
⎪
f f α ⎪
ρ = ρ o 1 + ----------------------- ( C – C o ) – β ( T – T o ) ⎪
( Cs – Co ) ⎪
g' ⎪
Figure 1.1 Three-dimensionally discretized basin (verti- e' = – -------- ⎪
g' ⎭
cal exaggeration 6 : 1).
S=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
NKP=içÅ~ä=Ei~óÉêJçêáÉåíÉÇF=`ççêÇáå~íÉë=ñÛ=~åÇ=íÜÉ=mêçàÉÅíÉÇ=dê~îáíó=qÉêã
z′
The rotation matrix a is performed for each finite
B e
inclined layer element e as a , which is thoroughly described in3. The
e
g z'
components of a have the form:
g x'
z T
g y'
e ui ⋅ ej i = 1, 2
x′ a ij = cos ( u i, e j ) = -------------- for
y g ui j = 1, 2, 3
x (1-8)
1 0 0
e1 = 0 e2 = 1 e3 = 0
Figure 1.2 Global x – y – z -coordinate system and local
0 0 1
(rotated) x' – y' – z' -coordinate system for a finite element
located on an inclined aquifer layer. Global gravity vector g
dissected by its local components g x', g y', g z' . where u i are directional vectors, which are evaluated
for each finite element e in the 3D space3.
The coordinate transformation between the global
coordinates x and the local (layer-oriented) coordi- The complete set of governing equations (1-1) to (1-
nates x' is described by the rotation matrix a as 5) are formulated in the local coordinates x' , where the
gravitational unit vector e' in (1-2) is also written for
x′ = a ⋅ x the local x' – y' -components directed along the princi-
pal axes of the inclined layer. They can be computed by
x′ a 11 a 12 a 13 x
(1-6) the projection
y′ = a 21 a 22 a 23 y
z′ a 31 a 32 a 33 z 0
e x' g' a a a
= e' = – -------- = 11 12 13 0 (1-9)
e y' g' a 21 a 22 a 23
Accordingly, the gravity components in the local coor- –1
dinates are given by the transformation
Note, in (1-9) it is g' = g and it is assumed that the
gravity acts strictly downwards parallel to the global z-
T
axis, i.e., g = 0 0 – g and g = g , where g is the
cbcilt=ö=T
NK=jçÇÉäáåÖ=î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=áå=Oa=Üçêáòçåí~ääó=ëÅÜÉã~íáòÉÇ=~èìáÑÉêë=ìëáåÖ
éêçàÉÅíÉÇ=Öê~îáíó
gravitational acceleration constant.
z
y
x
y′
x′
U=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
NKQ=cbcilt=léíáçå=pÉííáåÖë
NKQ cbcilt=léíáçå=pÉííáåÖë
These entries for the related density parameters are
The density-couple problem which will to be solved only attainable if a (at least one) reference distribution
by such a 2D horizontal aquifer schematization with a is introduced before in FEFLOW’s Reference Data
projected gravity is to be defined in FEFLOW (from Editor. In this Reference Data Editor the global z-coor-
release 5.1) as follows: dinates of the aquifer layer have to be assigned at each
node of the 2D mesh. Accordingly, the slope or curva-
• 2D horizontal problem for a confined aquifer, ture of the aquifer layer can be described locally in an
• flow and mass, flow and heat or thermohaline arbitrary manner. The global z-coordinates can be
problem type. extracted from an elevation distribution of an already
existing 3D model or via the common regionalization
With these problem definitions FEFLOW’s Flow Mate- techniques based on sample point data.
rial Data editor provides the new specific entries Den-
sity ratio (related) or/and Expansion coefficient Important note: The 2D coordinates of the finite ele-
(related) as shown in Fig. 1.5. If selecting the button(s) ment mesh have to be always input in the standard glo-
a dialog appears which allows the input of the density bal x-y-coordinates, i.e., x and y are coordinates
ratio or the expansion coefficient constants as well as projected on the exact horizon. The transformation into
the required link to a reference distribution, which must the x' – y' -coordinates is done completely internally in
contain the global z-coordinates of the aquifer layer. If the simulator and is hidden by the user. The computa-
the density or the expansion coefficient constants are tional results are again shown and evaluated strictly in
set to zero (as default) there will be no density cou- the global x-y-coordinates.
pling.
NKR iáãáí~íáçåë
This approach is applicable for relatively thin aqui-
fers in which flow and density effects in the z' -direc-
a b tion perpendicular to layer-oriented principal directions
c
are negligible. This can be often assumed for aquifer
layers having a small slope or low curvature in their
elevations. Furthermore, the solute (or heat) must be
Figure 1.5 Input of the so-called related density parameters: assumed invariable over the aquifer thickness (that
a) solute density ratio or expansion coefficient constant(s), means along z' ). If the aquifer slope is becoming larger
b) a link to the reference distribution containing the z-coor- and the density effects are increasing, the density-
dinates of the aquifer, and c) preview of the resulting pro- driven convection process modeled by such a projected
jected gravity field. gravity field must be more and more inaccurate due to
cbcilt=ö=V
NK=jçÇÉäáåÖ=î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=áå=Oa=Üçêáòçåí~ääó=ëÅÜÉã~íáòÉÇ=~èìáÑÉêë=ìëáåÖ
éêçàÉÅíÉÇ=Öê~îáíó
the fact that the approach suppresses vertical velocities We compare the results to a sloped aquifer layer
when becoming dominant in a convection process. The approach. The slope of the layer θ is assumed uniform
inaccuracy particularly increases with the increasing with 5° . To get a full physical equivalence to the refer-
slope of the layer for free convection at a high density ence problem we have to choose as follows: measure of
contrast (high Rayleigh number) when the solute (or the x-y-projected area is 0.9962 m ( cos θ ) x 1m, the
–4
heat) movement is fully gravity-driven. For mixed con- transmissivity T is 10 m2/s, the density ratio α must
–3 –2
vection problems (combined with a forced flow be increased to 5 ⋅ 10 ⁄ sin θ = 5.7369 ⋅ 10 . The
dynamics induced, for instance, by pumping), however, remaining parameters are the same.
a larger slope in the geometry can often be tolerated.
Generally, it is not possible to fix limits in form of crit- The solutions of the reference (standard vertical)
ical slopes and curvature because it is context-depen- problem and the solutions of the projected convection
dent. In case of doubt a full 3D model should be used problem are compared in Fig. 1.7. It reveals a very
for cross-checking purposes. good agreement between the reference problem and the
solution for the sloped layer with gravity projection.
NKS _ÉåÅÜã~êâ=bñ~ãéäÉ a)
0.350 m
0.182 m
Let us compare the proposed gravity-projection 0.325 m Cs
1m
driven convection problem (Fig. 1.6). We choose a K = 10-4 m/s
0.649 m
Dd = 10-9 m2/s
transient fingering problem with a high density contrast βL = βT = 0
(Rayleigh number should be 1667) which refers to the
most critical problem class in the present context. We
1m
will find that even for such a difficult example the
agreement of the results is very well.
b)
NM=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
NKT=`çåÅäìëáçå
t [d]
NKT `çåÅäìëáçå
FEFLOW (release 5.1 and further) is now capable
of solving density-driven problems in a 2D horizontal
schematization by using a projected gravity field. It
0.0 represents an important and cost-effective alternative to
a full 3D solution whenever the density-dependent
mass and/or heat transport problem can be modeled for
a single confined aquifer with a small to moderate
sloped or curved geometry. It should be particularly
useful in modeling large-scale brine transport for min-
ing and hydrogeological applications.
5
oÉÑÉêÉåÅÉë
1. Diersch HJG, Kolditz O. Variable-density flow and transport in
porous media: approaches and challenges. Advances in Water
Resources 2003;25:899-944 [see also: FEFLOW White Papers
Vol. II, Chapter 1; WASY Ltd, Berlin; 2001:5-111].
2. Diersch HJG. FEFLOW Reference Manual. WASY Ltd, Berlin,
15
2001.
3. Diersch HJG. FEFLOW White Papers Vol. I, Chapter 9; WASY
Ltd, Berlin; 2001:147-190.
^ééÉåÇáñ=^
100 kçãÉåÅä~íìêÉ
Figure 1.7 Comparison between the vertical (left column) Latin symbols
and the sloped layer (right column) fingering convection of a 1 rotation matrix;
a dense solute sinking down in a square closed box (concen-
B L aquifer thickness;
trations and streamlines are shown at selected times in the x- –3
y-plane, fringes are upscaled to the maximum time values). C, C o ML concentration and reference
cbcilt=ö=NN
NK=jçÇÉäáåÖ=î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=áå=Oa=Üçêáòçåí~ääó=ëÅÜÉã~íáòÉÇ=~èìáÑÉêë=ìëáåÖ
éêçàÉÅíÉÇ=Öê~îáíó
concentration (salinity), Greek symbols
respectively;
–3
Cs ML maximum concentration; α 1 solutal expansion coefficient;
2 –2 –1 –1
c L T Θ specific heat capacity of fluid; β Θ thermal expansion coefficient;
3 –1
D L T tensor of mechanical dispersion; β L, β T L longitudinal and transverse
2 –1
Dd L T molecular diffusion in the porous dispersivity, respectively;
medium; ε 1 porosity;
e' 1 gravitational unit vector with respect θ ° slope of aquifer layer;
to local coordinates; Λ
2 –3 –1
ML T Θ depth-integrated tensor of thermal
fμ 1 fluid viscosity relation function; hydrodynamic dispersion;
–2 f s –3 –1
g LT gravity vector in global coordinate λ,λ MLT Θ thermal conductivity for fluid and
directions; solid, respectively;
–2 f f –3
g' LT gravity vector in local coordinate ρ , ρo ML fluid density and reference fluid
directions; density;
–2
g LT gravitational acceleration; χ(C) 1 adsorption function;
h L hydraulic (piezometric) head; –1
∇ L Nabla (vector) operator with respect
I 1 unit vector; to local coordinates;
–1
Qρ LT depth-integrated flow sink/source;
–2 –1
QC ML T depth-integrated mass sink/source; Subscripts
–3
QT MT depth-integrated thermal sink/
source; i, j coordinate indices;
f 2 –1
q L T depth-integrated Darcy flux vector; o reference value;
R L depth-integrated retardation factor; x, y, z global coordinate directions;
So 1 depth-integrated storage coefficient; x', y', z' local coordinate directions;
2 –1
T L T tensor of transmissivity;
T, T o Θ temperature and reference Superscripts
temperature, respectively;
t T time;
e element;
u L directional vector;
f fluid (water) phase;
x L global Cartesian coordinate vector;
s solid phase;
x, y, z L global Cartesian coordinates;
x' L local Cartesian coordinate vector;
x', y', z' L local Cartesian coordinates;
NO=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
aÉêáî~íáçå= çÑ= íÜÉ= ÅçÉÑÑáÅáÉåíë= çÑ= íÜÉêã~ä= Éñé~åJ
ëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå=cbcilt
F. Magri
O
GeoForschungszentrum Potsdam, Division 4.3, Potsdam-Telegrafenberg, Germany
O aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå=cbcilt
f ⎫
1 ∂ρ
OKN cäìáÇ= aÉåëáíó= bèì~íáçå= çÑ β = ----f ------- ⎪
⎪
ρ ∂T
pí~íÉ=EblpF p, C k ⎪
⎪
f
1 ∂ρ ⎪
f γ = ----f ------- ⎬ (2-3)
Generally, the fluid density ρ varies with pressure ρ ∂p T, C k ⎪
p, temperature T and concentration of various compo- ⎪
f ⎪
nents C k (where C k stands for the C k 's of all compo- 1 ∂ρ
α k = ----f --------- ⎪
nents present in the fluid) according to relations called ρ ∂C k p, T ⎪
equations of state: ⎭
f f
ρ = ρ ( p, T, C k ) (2-1) with:
β : coefficient of thermal expansion at constant pres-
sure and concentration,
Symbols are summarized in the Appendix A. From (2-
γ : coefficient of compressibility of the fluid at constant
1) it follows that
temperature and concentration,
f f f
α k : introduces the effect of a density change due to the
f ∂ρ ∂ρ ∂ρ -
dρ = ------- dT + ------- dp + ∑ -------- dC k concentration of a kth component at constant tempera-
∂T ∂p ∂C k
p, C k T, C k k (2-2) ture and pressure.
p, T
f
= ρ ( βdT + γdp + α k dC k ) If, in certain ranges of p, T and C k , the coefficients
β , γ and α k are constants or can be approximated as
where such for a given fluid, the equation of state (2-1) takes
on the specific form1
cbcilt=ö=NP
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå
cbcilt
f f
density coded in FEFLOW version 5.0 (Eq. (2-6)) is
ρ = ρ o exp – β ( T – T o ) + γ ( p – p o ) + ∑ αk ( C k – C ko ) valid only in a rage of 0-100°C. Moreover it does not
k take in account the coefficient of compressibility γ and
(2-4)
f⎛ ⎞ only one component can be considered in the effect of a
≈ – β ( T – T o ) + γ ( p – p o ) + ∑ α k ( C k – C ko )⎟
ρo ⎜ 1 density change due to its concentration. The following
⎝ ⎠
k empirical relationship is given for α
f f
with ρ ( Cs ) – ρo
α = ---------------------------
f
(2-7)
ρo
1 ∂ρ
f ⎫
β = -----f ------- ⎪
ρ o ∂T p, C k
⎪
⎪ While the above linear approximation for α is nor-
f ⎪ mally sufficient for the most practical needs, wide
1 ∂ρ ⎪
γ = -----f ------- ⎬ (2-5) ranges of pressure and temperature require variable
ρo ∂ p T, C k ⎪ thermal fluid expansion β (Eq. (2-5)) and fluid com-
⎪
1 ∂ ρ
f ⎪ pressibility γ (Eq. (2-5)) within the state equation of
α k = -----f --------- ⎪ density (2-6).
∂ C
ρ o k p, T ⎪
⎭
f f
where ρ = ρ o when T = T o , p = p o and Ck = C ko OKO bñíÉåÇÉÇ=blp
that is when T, p and C k are respectively equal to the
reference temperature T o , reference pressure p o and The coefficients of thermal expansion β ( p, T ) and
reference concentration C ko . Equation (2-4) states that compressibility γ ( p, T ) for water will be derived for a
f
the density ρ can be approximated by a linear form. wide range of pressure p Sat < p ≤ 100 MPa and temper-
ature 0 ≤ T ≤ 350 °C and coded for the finite-element
In FEFLOW the following EOS for fluid density is program FEFLOW 5.1.
implemented2:
Figure 2.1 shows the well-known pressure-tempera-
α ture diagram of water. Since we are interested in liquid
ρ = ρ o ⎛ 1 – β ( T – T o ) + ----------------------- ( C – C o )⎞
f f
(2-6)
⎝ ( Cs – Co ) ⎠ phase in a range of 0-350 °C for the temperature and
less or equal than 100 MPa for the pressure, we focus
our study in region 1, which boundaries are
with β defined in (2-5) and α is normalized by the sat-
p Sat < p ≤ 100 MPa and 0 ≤ T ≤ 350 °C , where p Sat is
uration concentration of the solute at saturation, C s .
the saturation pressure of water.
It is important to notice that the EOS for the fluid
NQ=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
OKO=bñíÉåÇÉÇ=blp
SOLID Q OR
LI P
VA
Coefficient Value
1 ATM
0.00603 T ao 9.99792877961606E+02
ATM
B a1 5.07605113140940E-04
0 0.0098 100 350 374
TEMPERATURE *C
SOLID VAPOR
a2 -5.28425478164183E-10
b2 7.97204102509724E-12
The following expression provides a good approxi-
f co -7.53557031774437E-03
mation with an accuracy of 0.5% for ρ in the region 1
(Fig. 2.1): c1 6.32712093275576E-08
f 2 3 4 c2 -1.66203631393248E-13
ρ ( T, p ) = a ( p ) + b ( p )T + c ( p )T + d ( p )T + e ( p )T (2-8)
5 6 3
+ f ( p )T + g ( p )T in [kg/m ] do 4.60380647957350E-05
0 ≤ T ≤ 350 °C and pSat < p ≤ 100 MPa
d1 -5.61299059722121E-10
d2 1.80924436489400E-15
where
eo -2.26651454175013E-07
2⎫
a ( p ) = ao + a1 p + a2 p ⎪ e1 3.36874416675978E-12
2⎪
b ( p ) = bo + b1 p + b2 p ⎪ e2 -1.30352149261326E-17
⎬ (2-9)
… ⎪ fo 6.14889851856743E-10
⎪
2⎪
g ( p ) = go + g1 p + g2 p f1 -1.06165223196756E-14
⎭
f2 4.75014903737416E-20
cbcilt=ö=NR
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå
cbcilt
f
Table 2.1 Coefficients of the polynomial surface reference fluid density ρ o from (2-8), viz.,
f
fitting of freshwater density ρ ( T, p ) in region 1 as
expressed in Eq. (2-9) and its derivatives (T in °C f
ρ o ( T o, C o, p o ) = a ( p o ) + b ( po ) To (2-10)
Co Co
and p in kPa) (continued) 2 3 4
+ c ( po ) To + d ( po ) To + e ( po ) To
Co Co Co
Coefficient Value 5 6
+ f ( po ) To + g ( po ) To
Co Co
go -7.39221950969522E-13
f 2
ρ o ( T o, C o, p o ) = a ( p o ) = a o + a 1 p o + a 2 p o (2-11)
= 998.8396 [g/l]
f f
ρ = ρ o 1 + γ ( T, p ) ( p – p o ) – β ( T, p ) ( T – T o ) (2-12)
⎧
⎨
⎩
⎧
⎨
⎩
variable expansion variable expansion
tem
per ]
atu k Pa
re [ o su re [ where no effects in the fluid density from concentration
C] s
pre
of a component are taken in account.
Figure 2.2 Freshwater density ρf as a function of pressure
For purposes of implementation in FEFLOW, we
and temperature in region 1. For pictorial clarity, ρf is set to
zero outside region 1.
consider a Taylor series expansion for the fluid density
around To and p o where a 6th order approximation is
used for the temperature T and a 2nd order approxima-
The coefficients have been derived for freshwater tion is used for the pressure p, viz.,
conditions, so the surface (Fig. 2.2) given by Eq. (2-8)
is related to a reference concentration Co = 0 . There-
fore introducing a reference temperature T o and a ref-
erence pressure p o we can derive an expression for the
NS=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
OKO=bñíÉåÇÉÇ=blp
f f f ( 1, 0 ) 1 f ( 2, 0 ) 2 1 f ( 3, 0 ) 3 1 f ( 4, 0 ) 4
ρ ( T, p ) = ρ ( T o, p o ) + ( ρ ) T o, p o
( T – T o ) + ----- ( ρ ) T o, p o
( T – T o ) + ----- ( ρ ) ( T – T o ) + ----- ( ρ ) ( T – To ) (2-13)
2! 3! T o, p o
4! T o, p o
1 f ( 5, 0 ) 1 f ( 6, 0 )
5 6
+ ----- ( ρ ) ( T – T o ) + ----- ( ρ ) ( T – To )
5! T o, p o
6! T o, p o
f ( 0, 1 ) f ( 1, 1 ) 1 f ( 2, 1 ) 2 1 f ( 3, 1 ) 3 1 f ( 4, 1 ) 4
+ ( p – po ) ( ρ ) T o, p o
+ (ρ ) T o, p o
( T – T o ) + ----- ( ρ ) T o, p o
( T – T o ) + ----- ( ρ ) ( T – T o ) + ----- ( ρ ) ( T – To )
2! 3! T o, p o
4! T o, p o
1 f ( 5, 1 ) 5 1 f ( 6, 1 ) 6
+ ----- ( ρ ) ( T – T o ) + ----- ( ρ ) ( T – To )
5! T o, p o
6! T o, p o
2 f ( 0, 2 ) 1 f ( 1, 2 ) 1 f ( 2, 2 ) 2 1 f ( 3, 2 ) 3 1 f ( 4, 2 ) 4
+ ( p – po ) ( ρ ) T o, p o
+ --- ( ρ ) ( T – T o ) + --- ( ρ ) T o, p o
( T – T o ) + ------ ( ρ ) ( T – T o ) + ------ ( ρ ) ( T – To )
2 T o, p o
4 12 T o, p o
48 T o, p o
1 f ( 5, 2 ) 5 1 f ( 6, 2 ) 6
+ --------- ( ρ ) ( T – T o ) + ------------ ( ρ ) ( T – To )
240 T ,p
1440 T ,p
o o o o
By utilizing Eq. (2-8) we can calculate the above deriv- atives at p o and T o leading to the following equation:
ρ f (T , p ) = a 0 + p 0 a1 + p 0 2 a 2 + T0 ( b0 + p 0 b1 + p 0 2 b2 ) + T0 2 ( c0 + p 0 c1 + p 0 2 c2 ) + T0 3 ( d 0 + p 0 d 1 + p 0 2 d 2 ) + (2-14)
T0 ( e0 + p 0 e1 + p 0 e2 ) + T0 ( f 0 + p 0 f1 + p 0 f 2 ) + T0 ( g 0 + p 0 g 1 + p 0 g 2 ) +
4 2 5 2 6 2
(T - T0 ) 6 ( g 0 + p 0 g1 + p 0 2 g 2 ) + (T - T0 ) 5 ( f 0 + p 0 f1 + p 0 2 f 2 + 6T0 ( g 0 + p 0 g 1 + p 0 2 g 2 ) ) +
(T - T0 ) 4 ( e0 + p 0 e1 + p 0 2 e 2 + 5T0 ( f 0 + p 0 f1 + p 0 2 f 2 ) + 15T0 2 ( g 0 + p 0 g 1 + p 0 2 g 2 ) ) +
(T - T0 ) 3 ( d 0 + p 0 d1 + p 0 2 d 2 + 4T0 ( e 0 + p 0 e1 + p 0 2 e2 ) + 10T0 2 ( f 0 + p 0 f1 + p 0 2 f 2 ) + 20T0 3 ( g 0 + p 0 g 1 + p 0 2 g 2 ) ) +
(T - T0 ) 2 ( c0 + p 0 c1 + p 0 2 c 2 + 3T0 ( d 0 + p 0 d1 + p 0 2 d 2 ) + 6T0 2 ( e0 + p 0 e1 + p 0 2 e 2 ) + 10T0 3 ( f 0 + p 0 f1 + p 0 2 f 2 ) +
15T0 4 ( g 0 + p 0 g1 + p 0 2 g 2 ) ) +
(T - T0 ) ( b0 + p 0 b1 + p 0 2 b2 + 2T0 ( c 0 + p 0 c1 + p 0 2 c 2 ) + 3T0 2 ( d 0 + p 0 d 1 + p 0 2 d 2 ) + 4T0 3 ( e0 + p 0 e1 + p 0 2 e2 ) +
5T0 4 ( f 0 + p 0 f1 + p 0 2 f 2 ) + 6T0 5 ( g 0 + p 0 g 1 + p 0 2 g 2 ) ) +
( p - p 0 ) 2 ( a 2 + T0 b2 + T0 2 c2 + T0 3 d 2 + T0 4 e2 + T0 5 f 2 + T0 6 g 2 + (T - T0 ) 6 g 2 + (T - T0 ) 5 ( f 2 + 6T0 g 2 ) +
(T - T0 ) 4 ( e2 + 5T0 f 2 + 15T0 2 g 2 ) + (T - T0 ) 3 ( d 2 + 4T0 e2 + 10T0 2 f 2 + 20T0 3 g 2 ) +
(T - T0 ) 2 ( c2 + 3T0 d 2 + 6T0 2 e2 + 10T0 3 f 2 + 15T0 4 g 2 ) +
(T - T0 )( b2 + 2T0 c 2 + 3T0 2 d 2 + 4T0 3 e 2 + 5T0 4 f 2 + 6T0 5 g 2 ) ) +
( p − p 0 ) ⎡⎣ a1 + 2 p 0 a 2 + T0 (b1 + 2 p 0 b2 ) + T0 2 ( c1 + 2 p 0 c 2 ) + T0 3 ( d 1 + 2 p 0 d 2 ) + T0 4 ( e1 + 2 p 0 e2 ) +
T0 5 ( f1 + 2 p 0 f 2 ) + T0 6 ( g1 + 2 p 0 g 2 ) + (T - T0 ) 6 ( g 1 + 2 p 0 g 2 ) + (T - T0 ) 5 ( f1 + 2 p 0 f 2 + 6T0 ( g 1 + 2 p 0 g 2 ) ) +
(T - T0 ) 4 ( e1 + 2 p 0 e2 + 5T0 ( f1 + 2 p 0 f 2 ) + 15T0 2 ( g1 + 2 p 0 g 2 ) ) +
(T - T0 )3 ( d 1 + 2 p 0 d 2 + 4T0 ( e1 + 2 p 0 e2 ) + 10T0 2 ( f1 + 2 p 0 f 2 ) + 20T0 3 ( g 1 + 2 p 0 g 2 ) ) +
(T - T0 ) 2 ( c1 + 2 p 0 c 2 + 3T0 ( d 1 + 2 p 0 d 2 ) + 6T0 2 (e1 + 2 p 0 e2 ) + 10T0 3 ( f1 + 2 p 0 f 2 ) + 15T0 4 ( g1 + 2 p 0 g 2 ) ) +
(T - T0 ) ( b1 + 2 p 0 b2 + 2T0 ( c1 + 2 p 0 c 2 ) + 3T0 2 ( d 1 + 2 p 0 d 2 ) + 4T0 3 ( e1 + 2 p 0 e2 ) +
5T0 4 ( f1 + 2 p 0 f 2 ) + 6T0 5 ( g 1 + 2 p 0 g 2 ) ) ⎤⎦
cbcilt=ö=NT
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå
cbcilt
Comparing the above equation with the EOS for the sion for computing the coefficient of thermal expansion
fluid density Eq. (2-12) we finally obtain the expres- and the coefficient of compressibility, viz.,
1
β(T, p) =− ⎡(T -T0)5(g0 + p0g1 + p02g2) +(T -T0)4 ( f0 + p0 f1 + p02 f2 +6T0(g0 + p0g1 + p02g2)) + (2-15)
ρ0f ⎣
(T -T0)3 ( e0 + p0e1 + p02e2 +5T0( f0 + p0 f1 + p02 f2) +15T02(g0 + p0g1 + p02g2)) +
(T -T0)2 ( d0 + p0d1 + p02d2 +4T0(e0 + pe
0 1 + p0 e2) +10T0 ( f0 + p0 f1 + p0 f2) +20T0 (g0 + p0g1 + p0 g2 )) +
2 2 2 3 2
(T -T0)( c0 + p0c1 + p02c2 +3T0(d0 + p0d1 + p02d2) +6T02(e0 + p0e1 + p02e2) +10T03( f0 + p0 f1 + p02 f2) +
15T04(g0 + p0g1 + p02g2)) +
5T ( f + p f + p f ) +6T (g + p g + p g ))⎤⎦
0
4
0 0 1
2
0 2 0
5
0 0 1
2
0 2
and
γ (T,p) =
1
ρ0f
{(p- p )(a +Tb +T c +T d +T e +T f +T g +(T -T ) g +(T -T ) ( f +6Tg )+
0 2 0 2
2
0 2
3
0 2
4
0 2
5
0 2
6
0 2 0
6
2 0
5
2 0 2
(2-16)
(T -T0) (e2 +5T0 f2 +15T g ) +(T -T0) (d2 +4Te
4 2
0 2 0 2 +10T f +20T g ) +
3 2
0 2
3
0 2
(T -T0)2(c2 +3Td
0 2 +6T0 e2 +10T0 f2 +15T0 g2) +
2 3 4
T0 ( f1 +2p0 f2) +T0 (g1 +2p0g2) +(T -T0) (g1 +2p0g2) +(T -T0) ( f1 +2p0 f2 +6T0(g1 +2p0g2)) +
5 6 6 5
(T -T0)4 ( e1 +2pe
0 2 +5T0( f1 +2p0 f2) +15T0 (g1 +2p0g2)) +
2
(T -T0)2 ( c1 +2pc
0 2 +3T0(d1 +2pd 0 2) +10T0 ( f1 +2p0 f2) +15T0 (g1 +2p0g2)) +
0 2) +6T0 (e1 +2pe
2 3 4
(T -T0)( b1 +2pb
0 2 +2T0(c1 +2pc
0 2) +3T0 (d1 +2pd
2
0 2) +4T0 (e1 +2pe
3
0 2) +
NU=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
OKO=bñíÉåÇÉÇ=blp
Greek symbols
f
with ρ o computed from (2-11) and the coefficients
( a i, b i, c i, d i, e i, f i, g i ) i = 0, 1, 2 are given in Table 2.1. α 1 solutal expansion coefficient;
–1
β Θ thermal expansion coefficient;
The implementation of the extended form of EOS is γ
–1
M LT
2
fluid compressibility;
done in FEFLOW by using FEFLOW’s programming f f
ρ , ρo ML
–3
fluid density and reference fluid
interface IFM. Appendix B summarizes the steps of density, respectively;
implementation providing the IFM programming code
Beta_Gamma.c.
Subscripts
i coefficient index;
oÉÑÉêÉåÅÉë k chemical component;
1. Bear, J. and Corapcioglu, M.Y. Transport processes in porous o reference value;
media. Proceedings of the NATO Advanced Study Institute on Sat saturated;
Transport Processes in Porous Media, Pullmann, Washington
D.C, July 9-18, 1989.
2. Diersch HJG. FEFLOW Reference Manual. WASY Ltd, Berlin, Superscripts
2001.
f fluid (water) phase;
^ééÉåÇáñ=^ Abbreviations
–3
C, C o ML concentration and reference
concentration (salinity),
respectively;
^ééÉåÇáñ=_
–3
Cs ML maximum concentration;
–1 –2 fãéäÉãÉåí~íáçå= çÑ= íÜÉ= ÅçÉÑÑáÅáÉåí= çÑ
p, p o ML T hydrodynamic fluid pressure and
reference pressure, respectively; íÜÉêã~ä= Éñé~åëáçå= ~åÇ= ÅçãéêÉëëáÄáäáíó
T, To Θ temperature and reference
temperature, respectively;
cbcilt=ö=NV
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå
cbcilt
Ñçê= ìëÉ= ïáíÜ= cbcilt= íÜêçìÖÜ= íÜÉ= fcj 1 5 2
β ( T, p ) = – -----f [ T ( g o + p o g 1 + p o g 2 ) + (B2)
éêçÖê~ããáåÖ=áåíÉêÑ~ÅÉ ρo
4 2 3 2
T ( fo + po f1 + po f2 ) + T ( eo + po e 1 + po e2 ) +
In this appendix we will describe how to implement
in FEFLOW the equations we have derived for the 2 2 2
T ( do + po d1 + po d2 ) + T ( co + po c1 + po c2 ) +
coefficient of thermal expansion and compressibility
through the IFM programming interface. 2
( bo + po b1 + po b2 ) ]
Goal
Equation to implement
sion of β ( T, p ) (B2) and γ ( T, p ) (B3). The implementa- that can be directly implemented in the EOS of the
tion of β ( T, p ) can be done directly by the use of the fluid density present in FEFLOW (B4) through the API
IFM through the API IfmSetMatFlowExpan- IfmSetMatFlowExpansionCoeff leading to the
sionCoeff. On the other hand, since the EOS for the EOS (B1).
fluid density present in FEFLOW (B4) does not take in
account the coefficient of compressibility γ ( T, p ) , no
related API interface exists for this coefficient, hence Description of the source code Beta_Gamma.c
it's not possible to implement directly the expression
for γ ( T, p ) (B3) into (B4). Therefore, to make up for The input data required by the IfmSetMat-
this lack, we have to use a little trick: FlowExpansionCoeff function are the tempera-
ture T and pressure p of each element of the FE mesh.
Let's consider the EOS for the fluid density that we These values can be calculated by the use of the API
want to incorporate into FEFLOW (B1) and apply a functions IfmGetResultsTransportHe-
simple factorization in the following way: atValue and IfmGetResultsFlowPressure-
Value, which load respectively the nodal values of the
α temperature and pressure calculated from the simula-
ρ = ρ o ⎛⎝ 1 – β ( T, p ) ( T – T o ) + γ ( T, p ) ( p – p o ) + ----------------------- ( C – C o )⎞⎠
f f
( Cs – Co )
tions. Once the code has derived the mean temperature
( p – po)⎞ α
= ρ o 1 – ⎛ β ( T, p ) – γ ( T, p ) ------------------- and mean pressure of each element of the grid, by sum-
f
⎝
( T – T o ) + ----------------------- ( C – C o ) (B5)
( T – T o )⎠ ( Cs – Co )
ming the nodal values of the considered physical
α
= ρ o ⎛ 1 – β∗ ( T, p ) ( T – T o ) + ----------------------- ( C – C o )⎞
f
⎝ ( Cs – Co ) ⎠ parameters and then dividing by the number of nodes
of the element, it calculates β∗ ( T, p ) using Eq. (B6)
and then set its value into the API function IfmSet-
with
MatFlowExpansionCoeff.
⎧
⎨
⎩
defined as BETASTAR defined as BETA through the IFM tool in the Simulation interface
⎧
⎪
⎪
⎨
⎪
⎪
⎩
cbcilt=ö=ON
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå
cbcilt
double b2 = 7.97204102509724e-12; B = a2+(b2+(c2+(d2+(e2+(f2+g2*T)*T)*T)*T)*T)*T;
double c0 = -7.53557031774437e-03;
double c1 = 6.32712093275576e-08; /* Set BETA */
double c2 = -1.66203631393248e-13; beta = -(1/999.843633188666)*
double d0 = 4.60380647957350e-05; (bp0+(cp0+(dp0+(ep0+(fp0+gp0*T)*T)*T)*T)*T);
double d1 = -5.61299059722121e-10;
double d2 = 1.80924436489400e-15; /* Set GAMMA */
double e0 = -2.26651454175013e-07; gammastar = -(1/999.843633188666)*(A+B*(p-p0))/(T+.1);
double e1 = 3.36874416675978e-12;
double e2 = -1.30352149261326e-17; /* Set BETASTAR */
double f0 = 6.14889851856743e-10; BETASTAR = beta + gammastar;
double f1 = -1.06165223196756e-14; IfmSetMatFlowExpansionCoeff(pDoc, e, BETASTAR);
double f2 = 4.75014903737416e-20; /* IfmInfo(pDoc, "Beta and gamma: %g \n", BETASTAR); */
double g0 = -7.39221950969522e-13; }
double g1 = 1.42790422913922e-17; }
double g2 = -7.13130230531541e-23;
/* Reference pressure is 100kPa while
REFERENCE TEMPERATURE IS 0!!! */ Validation of the code
double p0 = 100.;
/* Useless
double bp0
ap0 = a0+a1*p0+a2*p0*p0; */
= b0+(b1+b2*p0)*p0;
We remind that the equations for β ( T, p ) (B2) and
double cp0 = c0+(c1+c2*p0)*p0; γ ( T, p ) (B3) are derived from the following polynomial
double dp0 = d0+(d1+d2*p0)*p0;
double ep0 = e0+(e1+e2*p0)*p0; fitting:
double fp0 = f0+(f1+f2*p0)*p0;
double gp0 = g0+(g1+g2*p0)*p0;
f 2 3 4
double gam0 = a1+2*a2*p0; ρ ( T, p ) = a ( p ) + b ( p )T + c ( p )T + d ( p )T + e ( p )T (B7)
5 6 3
double
double
gam1
gam2
=
=
b1+2*b2*p0;
c1+2*c2*p0;
+ f ( p )T + g ( p )T in [kg/m ]
double gam3 = d1+2*d2*p0; 0 ≤ T ≤ 350 °C and p Sat < p ≤ 100 MPa
double gam4 = e1+2*e2*p0;
double gam5 = f1+2*f2*p0;
double gam6 = g1+2*g2*p0;
with the temperature T in °C and, the pressure p in kPa
/* Number of elements and number of nodes */
int nElements = IfmGetNumberOfElements(pDoc); and the coefficients for freshwater are given in Tab.
int nNodes = IfmGetNumberOfNodesPerElement(pDoc);
2.1.
/* Loop through all elements */
for (e = 0; e < nElements; e++) {
T = 0.; For validating the source code, we will run a verti-
p = 0.;
cal 2D coupled heat transport and fluid flow problem
/* Loop locally
for (i = 0; i <
through all nodes of this element */
nNodes; i++) {
(i.e., α = 0 ) with the implemented Beta_Gamma
/* Get global node index */ module activated in order to compare the fluid density
int indNode = IfmGetNode(pDoc, e, i);
calculated from this simulation (B5) with the one pro-
T += IfmGetResultsTransportHeatValue(pDoc,indNode);
p += IfmGetResultsFlowPressureValue(pDoc,indNode);
vided by the polynomial fitting (B7). The code is valid
} only if these values coincide.
/* Solving the average physical properties (T and p)
of this element */
T /= (double)nNodes; The conceptual model used for the coupled simula-
p /= (double)nNodes; tion is a 3.5 x 3.5 km square. The rectangular mesh is
if (p < 100) p = 100; composed by 9 elements. At the top, a constant temper-
A = gam0 +
(gam1+(gam2+(gam3+(gam4+(gam5+gam6*T)*T)*T)*T)*T)*T; ature of 10 °C and a head value of 0 m are set as bound-
OO=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
OKO=bñíÉåÇÉÇ=blp
Important remarks
c)
(1) Since the module implements the EOS of the fluid
density referred to freshwater condition ( C o = 0 g/l) at
the atmospheric pressure ( p o = 100 kPa) and at triple
point temperature ( T o = 0 °C ), it is fundamental to set
these reference values in the FEFLOW menu for run-
ning the simulations.
cbcilt=ö=OP
OK=aÉêáî~íáçå=çÑ=íÜÉ=ÅçÉÑÑáÅáÉåíë=çÑ=íÜÉêã~ä=Éñé~åëáçå=~åÇ=ÅçãéêÉëëáÄáäáíó=Ñçê=ìëÉ=áå
cbcilt
OQ=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
rëáåÖ= ~åÇ= íÉëíáåÖ= íÜÉ= ~äÖÉÄê~áÅ= ãìäíáÖêáÇ= Éèì~J
íáçå=ëçäîÉê=p^jd=áå=cbcilt
H.-J. G. Diersch
P
WASY Institute for Water Resources Planning and Systems Research, Berlin, Germany
OS=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
PKO=^äÖÉÄê~áÅ=jìäíáÖêáÇ=qÉÅÜåáèìÉ=~åÇ=p^jd
structed fully automatically. In particular, the construc- the strongest coupling is negative. Matrices A can
tion of matrices used to transfer information between occur which also contain strong positive entries.
different levels (restriction of residuals and interpola-
tion of corrections) is based on matrix entries, and
matrices on coarser levels are computed based on the PKOKP mêÉÅçåÇáíáçåáåÖ
so-called Galerkin principle (Galerkin matrices). This
automatism is the major reason for AMG’s flexibility Recently, it has become very popular to use multi-
in adapting itself to specific requirements of the prob- grid not as a stand-alone solver but rather combine it
lem to be solved and for its robustness in solving large with acceleration methods such as conjugate gradient
classes of problems despite using very simple or BiCGSTAB. Experience has shown that AMG can
smoothers6. also be a very good preconditioner, much better than
standard (one-level) ILU-type preconditioners. This is
AMG is a two-part process. The first part, a fully mainly due to the fact that AMG, in contrast to any one-
automatic setup phase, consists of recursively choosing level preconditioner, efficiently operates on all error
the coarser levels and defining the transfer and coarse- components, short-range as well as long-range.
grid operators. The second part, the solution phase, just
uses the resulting components in order to perform nor-
mal multigrid cycling until a desired level of conver- PKOKQ p^jd=ëçäîÉê=é~Åâ~ÖÉ
gence is reached. It usually involves Gauss-Seidel
relaxation for smoothing. Although the origin of AMG dates back to the early
eighties1,3 it still provides one of the most attractive
algebraic approaches. Substantial progress has been
PKOKO `ç~êëÉåáåÖ achieved5. Today’s best and most complete AMG solu-
tion strategies are available in the commercial software
The coarsening strategy is the most tricky part in package SAMG6. SAMG has been developed by the
AMG. Because the matrix A is a result of a finite-ele- AMG pioneer K. Stüben and its group at the Fraunhofer
ment discretization of governing partial differential Institute for Algorithms and Scientific Computing
equations, AMG can take into account that the matrix (SCAI), St. Augustin, Germany. SAMG is much more
entries are small stencils. A standard coarsening is advanced than its academic, non-commercial forerun-
based on a direct coupling of the matrix elements. A ner, known as AMG1R5 in the scientific community.
strong connectivity is here a negative coupling in A ij . SAMG is a result of Stüben’s long-term experiences
However, the direct connection can cause a relatively and efforts in the AMG research. It is still being contin-
high complexity and an aggressive coarsening should uously developed, extended and improved. SAMG’s
be preferred which is based on the concept of long- usefulness and efficiency has been proven in many
range strong connections. Unfortunately, in finite ele- practical applications4 in the field of solid and fluid
ment discretizations it cannot always be assumed that mechanics.
cbcilt=ö=OT
PK=rëáåÖ=~åÇ=íÉëíáåÖ=íÜÉ=~äÖÉÄê~áÅ=ãìäíáÖêáÇ=Éèì~íáçå=ëçäîÉê=p^jd=áå=cbcilt
OU=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
PKP=mÉêÑçêã~åÅÉ=qÉëíë
dard options as indicated in section 3.2.5. Different quadrilaterals. The number of quadrilaterals NE and
options settings will be indicated in the examples if number of nodes NP then increase according to the
useful. refinement level l = 0, 1, … :
ϒl l = 0, 1, …, L (3-2)
PCG SAMG
CPU-ratio
l NE NP
number of CPU timea) number of CPU timea) PCG/SAMG
iterations [sec] cycles [sec]
Let us consider a triangular mesh, which is locally The obtained performances for SAMG and PCG are
extremely dense as shown in Fig. 3.4. The domain has compared in Tab. 3.2. It reveals that SAMG is signifi-
a constant conductivity. In the dense-mesh location cantly faster in the 2D problem. However, for the 3D
there is a pumping well. The left and right boundaries problem PCG results a similar performance. Note that
are subjected to a constant hydraulic-head condition. SAMG becomes here somewhat faster when aggressive
The remaining boundaries are impervious. The prob- coarsening is used instead of the standard coarsening
lem is steady-state. option.
PM=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
PKP=mÉêÑçêã~åÅÉ=qÉëíë
Figure 3.4 Unstructured triangular mesh with magnified view of the local dense part.
Table 3.2 Performance results for the extreme unstructured meshing problem
PCG SAMG
CPU-ratio
number of CPU timea) number of CPU timea) PCG/SAMG
iterations [sec] cycles [sec]
cbcilt=ö=PN
PK=rëáåÖ=~åÇ=íÉëíáåÖ=íÜÉ=~äÖÉÄê~áÅ=ãìäíáÖêáÇ=Éèì~íáçå=ëçäîÉê=p^jd=áå=cbcilt
PKPKP `êçëëJëÉÅíáçå~ä= éêçÄäÉã= ïáíÜ constant initial solution. It reveals that PCG is superior
ÜÉíÉêçÖÉåÉçìë=é~ê~ãÉíÉê=ÇáëíêáÄìíáçå to SAMG if the timesteps are small and the solution is
not far from the distribution of the previous timestep
A more complex cross-sectional 2D problem is (PCG needs here only a small number of iterations),
shown in Fig. 3.5. The triangular mesh is fully unstruc- which typically occurs at the beginning. However, as
tured and locally refined in a layered geometry. The the time stepping progresses, SAMG becomes clearly
problem models an aquifer-aquitard system with heter- superior to PCG because PCG requires significantly
ogeneous distribution of conductivity and storativity. more iterations if the change in the solution over each
timestep becomes larger. The overall CPU time for
We consider both a steady-state and a transient situ- SAMG is about three times smaller than for the PCG
ation (Tab. 3.3). In Fig. 3.6 the CPU times are shown method.
for an adaptive time-stepping process starting from a
PO=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
PKP=mÉêÑçêã~åÅÉ=qÉëíë
PCG SAMG
CPU-ratio
number of CPU timea) number of CPU timea) PCG/SAMG
iterations [sec] cycles [sec]
SAMG
100 lem is tested as shown in Fig. 3.7. The mesh at a mod-
erate resolution consisting of 221,210 pentahedral
prismatic elements and 122,485 nodes is locally refined
50
yet, well-formed and the parameter contrast remains
moderate (conductivity ranges over five orders of mag-
nitude). It can be considered as a typical 3D transient
finite-element groundwater model used in practical
0
1 3 5 7 9 11 13 15 17 19 water resources simulations. Of specific interest here
number of timesteps
are boundary conditions applied to rivers and pumping
Figure 3.6 CPU times for the transient simulation of the wells that possess a short-term dynamic (e.g., pumping
cross-sectional problem required for the PCG and SAMG capacity changes each day). The timesteps are automat-
method. ically controlled by FEFLOW’s adaptive predictor-cor-
rector technique.
cbcilt=ö=PP
PK=rëáåÖ=~åÇ=íÉëíáåÖ=íÜÉ=~äÖÉÄê~áÅ=ãìäíáÖêáÇ=Éèì~íáçå=ëçäîÉê=p^jd=áå=cbcilt
method remains clearly superior to the SAMG solvers faster. Even for a higher resolution of the mesh (e.g., by
as can be seen from Fig. 3.8 and Tab. 3.4. For this type using a global mesh refinement) the PCG solver is two
of simulation SAMG needs more CPU time than the to three times faster than the SAMG method.
PCG solver. Overall, PCG is here about three times
per timestep PCG cumulative sum per timestep SAMG cumulative sum
8 2000 60 6000
7.8
50 5000
7.6
1500
7.4
40 4000
7 1000 30 3000
6.8
20 2000
6.6
500
6.4
10 1000
6.2
6 0 0 0
0 50 100 150 200 250 0 50 100 150 200 250 0 50 100 150 200 250 0 50 100 150 200 250
Number of timesteps Number of timesteps Number of timesteps Number of timesteps
Figure 3.8 CPU times required for the PCG (left) and SAMG (right) solvers in simulating the transient the 3D flow
problem (247 timesteps) at the mesh resolution NE = 221,210, NP = 122,485.
PQ=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
PKP=mÉêÑçêã~åÅÉ=qÉëíë
a) b)
c)
Figure 3.9 3D basin model: NE = 123,726, NP = 83,056: a) 3D view, b) horizontal view on the prismatic mesh, c)
cross-section along indicated (red-colored) line (exaggeration 10 : 1).
cbcilt=ö=PR
PK=rëáåÖ=~åÇ=íÉëíáåÖ=íÜÉ=~äÖÉÄê~áÅ=ãìäíáÖêáÇ=Éèì~íáçå=ëçäîÉê=p^jd=áå=cbcilt
For this problem the PCG solver completely failed. should be noted that SAMG terminated after 50 cycles
It was impossible to get convergent solutions below the at each timestep. Although the residual error could not
–8 –8
residual error criterion of 10 . Continuing the simula- be reduced to the given error criteria of 10 , the simu-
tion in time, after a small number of timesteps the solu- lation could be successfully continued in time with sta-
tion became fully instable. In contrast to the PCG, the ble and sufficiently accurate solutions.
SAMG showed much better computational properties.
SAMG was able to solve the problem. However, it
Table 3.5 Performance results for the basin model problem
PCG SAMG
CPU-ratio
number of CPU timea) number of CPU timea) PCG/SAMG
iterations [sec] cycles [sec]
^ééÉåÇáñ=^
kçãÉåÅä~íìêÉ
Latin symbols
Greek symbols
ϒl refinement at level l;
Abbreviations
cbcilt=ö=PT
PK=rëáåÖ=~åÇ=íÉëíáåÖ=íÜÉ=~äÖÉÄê~áÅ=ãìäíáÖêáÇ=Éèì~íáçå=ëçäîÉê=p^jd=áå=cbcilt
PU=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
pìÄàÉÅí=fåÇÉñ
pìÄàÉÅí=fåÇÉñ o
êÉÑáåÉãÉåí=OV
^ êçí~íáçå=ã~íêáñ=T
~Ç~éíáîÉ=éêÉÇáÅíçêJÅçêêÉÅíçê=íÉÅÜåáèìÉ=PP p
~äÖÉÄê~áÅ=ãìäíáÖêáÇ=OS ë~äíï~íÉê=áåíêìëáçå=R
~äÖÉÄê~áÅ=ãìäíáÖêáÇ=E^jdF=OR p^jd=ëçäîÉê=OR
_ p^jd=ëçäîÉê=é~Åâ~ÖÉ=OT
ÄÉåÅÜã~êâ=NM q
` íÉãéÉê~íìêÉ=NP
Åç~êëÉåáåÖ=OT íÜÉêã~ä=Éñé~åëáçå=NPI=NQI=OM
ÅçãéêÉëëáÄáäáíó=NQI=OM s
ÅçåÅÉåíê~íáçå=NP î~äáÇ~íáçå=OO
ÅçåÑáåÉÇ=~èìáÑÉê=S î~êá~ÄäÉJÇÉåëáíó=éêçÄäÉãë=R
ÅçåàìÖ~íÉ=Öê~ÇáÉåí=ãÉíÜçÇ=Em`dF=OR
ÅççêÇáå~íÉ=íê~åëÑçêã~íáçå=T
a
ÇÉåëáíó=NP
aìéìáí=~ëëìãéíáçå=R
aìêäçÑëâó=éêçÄäÉã=OV
b
Éèì~íáçåë=çÑ=ëí~íÉ=NP
c
ÑêÉÉ=ÅçåîÉÅíáçå=NM
d
d~ìëëJpÉáÇÉä=êÉä~ñ~íáçå=OT
ÖÉçãÉíêáÅ=ãìäíáÖêáÇ=OS
ÖÉçíÜÉêã~ä=íê~åëéçêí=R
f
áääJéçëÉÇåÉëë=OU
j
ãÉëÜ=êÉÑáåÉãÉåí=OR
m
éÉêÑçêã~åÅÉ=íÉëíë=OU
éêÉÅçåÇáíáçåáåÖ=OT
éêÉëëìêÉ=NP
éêçÖê~ããáåÖ=áåíÉêÑ~ÅÉ=NV
éêçàÉÅíÉÇ=Öê~îáíó=S
cbcilt=ö=PV
pìÄàÉÅí=fåÇÉñ
QM=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff
^ìíÜçê=fåÇÉñ
^ìíÜçê=fåÇÉñ
a
aáÉêëÅÜ=R
aìêäçÑëâó=OV
h
hçäÇáíò=R
j
j~Öêá=NP
p
píΩÄÉå=OT
cbcilt=ö=QN
^ìíÜçê=fåÇÉñ
QO=ö=tÜáíÉ=m~éÉêë=J=sçäK=fff