3.1 Finite-difference method 39
where
∂
∂x
A
=
2
−
1
x
2
− x
1
,
∂
∂x
B
=
3
−
2
x
3
− x
2
.
Using a similar procedure we can formulate third-, fourth-, fifth- and higher-order
derivatives as well.
As follows from the above examples, we need a grid of points representing the
distribution of field variables in space (and time) to apply finite differences. This
so called numerical grid is also often called a numerical mesh. Similarly, two types
of geometrical points may exist, grid points can be either Eulerian or Lagrangian.
Eulerian points have steady positions and an Eulerian grid does not deform with
deformation of the medium. Lagrangian points move according to the local flow
and a Lagrangian grid deforms with the deformation of medium. Time derivatives
of field variables for Eulerian and Lagrangian points may differ from each other
e.g.,
Dρ
Dt
=
∂ρ
∂t
+v grad(ρ), (3.3)
where
Dρ
Dt
is the substantive time derivative of density for a moving Lagrangian
point and
∂ρ
∂t
is the time derivative of density for an immobile Eulerian point in
the same location. The main advantage of using an Eulerian grid is the possibility
of having a relatively simple grid geometry that does not change during the model
deformation; this simplifies the numerical formulation. The main disadvantage is
the necessity to account for advective terms in time-dependent PDEs, which often
causes numerical problems (e.g. numerical diffusion, Chapter 8). For a Lagrangian
grid it is the contrary: a deforming grid ultimately produces numerical problems
(and requires re-gridding or re-meshing when it is deformed too strongly) while the
absence of advective terms in PDEs is an advantage. The use of either an Eulerian,
or a Lagrangian grid depends on the partial differential equations to be solved as
well as on the type of physical processes to be modelled. In geodynamic mod-
elling, combinations of Eulerian and Lagrangian grids for different field variables
are often used to explore advantages of both approaches (see e.g. Zhong et al.,
2007).
What are we actually gaining by approximating derivatives by finite differences?
This is a very important issue at the ‘core’ of numerical modelling. The use of
finite differences allows us to transform partial differential equations, which are