92 Thermal effects of exhumation
function of space and a higher-order element might be necessary; however, if
spatial discontinuities are present in the conductivity or any other parameter, the
solution (or at least its derivative) is likely to be discontinuous, and a large number
of linear elements might be better suited to represent the solution. In two dimen-
sions, whether triangles or rectangles are the more appropriate elements to use
depends on the geometry of the problem, i.e. whether it is characterised by a radial
geometry, a plane of symmetry, or a curved boundary, for example. It is also pos-
sible to combine different types of elements in the same problem but this involves
additional coding because each element might be different from its neighbour, and
might have a different set of shape functions and/or a different integration rule.
Numerical integration
The construction of the finite-element matrices (Equation (5.28)) requires the
computation of spatial integrals. Because the integrands are not simple func-
tions, this integration cannot be performed analytically (i.e., exactly) and, instead,
numerical integration is used. This operation consists of estimating the integrand
at a finite number of so-called ‘integration points’ and approximating the integral
by a weighted sum of these estimates. Several schemes to determine the positions
of the integration points and the values of the weights exist, the most common of
which are the Newton–Cotes and Gauss formulas.
The Newton–Cotes formula
An approximation of the integral
b
a
Frdr (5.44)
can be obtained by estimating the integrand at n +1 equally spaced points, r
i
,
defining n intervals between a and b. The approximate value of the integral is
obtained from a weighted sum of these estimates:
b
a
Frdr = b −a
n
i=0
C
n
i
Fr
i
+R
n
(5.45)
The coefficients or weights (C
n
i
) are given in Table 5.1.
Gauss quadrature
The most widely used numerical integration is the Gauss quadrature, in which
the integral is approximated by a weighted sum of estimates of the integrand at
unequally spaced locations:
b
a
Frdr =
1
Fr
1
+
2
Fr
2
+···+
n
Fr
n
+R
n
(5.46)