Docsity

Finite Volume Method: Stability Analysis of Time Discretization, Study notes of Earth Sciences

Toggle sidebar
bg1
Chapter 14
Finite Volume Method and Time
Discretization
14.1 Introduction
The previous chapter focussed primarily on the issues of turning the partial dif-
ferential equation into a finite volume formulation, and on the various ways of
reconstructing the function at cell edges from cell values. The result is a spatially
discretized ordinary differential equation that we need to integrate in time. Here
we focus on identifying suitable time-discretization that are both accurate and sta-
ble. The stability analysis is however, more complicated now since we are dealing
with systems of ordinary differential equations. Hence instead of a scalar amplifi-
cation factor we have an amplification matrix whose impact on the growth of the
numerical solution must be investigated. This requires the analysis of the structure
of the matrix and its eigenvalues. The Von-Neumann stability analysis provide a
simpler approach to study the time-stability of the finite difference scheme.
14.2 The Forward Euler ODE system
For the sake of simplicity (and later on necessity) we assume that the flow field
is constant and positive (u > 0). Furthermore we need an initial condition which
we assume to be Tj(t= 0) = T0
j, and an inlet boundary condition which take as
as Tn
1
2
=Tn
iwhere T0
jand Tn
iare known quantities. The piecewise constant FV
formulation becomes then:
dTj
dt=−uTj−Ti
∆x, j = 1 (14.1)
dTj
dt=−uTj−Tj−1
∆x, j = 2,3,...,N (14.2)
141
pf3
pf4

Partial preview of the text

Download Finite Volume Method: Stability Analysis of Time Discretization and more Study notes Earth Sciences in PDF only on Docsity!

Chapter 14

Finite Volume Method and Time

Discretization

14.1 Introduction

The previous chapter focussed primarily on the issues of turning the partial dif- ferential equation into a finite volume formulation, and on the various ways of reconstructing the function at cell edges from cell values. The result is a spatially discretized ordinary differential equation that we need to integrate in time. Here we focus on identifying suitable time-discretization that are both accurate and sta- ble. The stability analysis is however, more complicated now since we are dealing with systems of ordinary differential equations. Hence instead of a scalar amplifi- cation factor we have an amplification matrix whose impact on the growth of the numerical solution must be investigated. This requires the analysis of the structure of the matrix and its eigenvalues. The Von-Neumann stability analysis provide a simpler approach to study the time-stability of the finite difference scheme.

14.2 The Forward Euler ODE system

For the sake of simplicity (and later on necessity) we assume that the flow field is constant and positive (u > 0). Furthermore we need an initial condition which

we assume to be T (^) j (t = 0) = T 0 j , and an inlet boundary condition which take as as T 1 n 2 = T (^) in where T 0 j and^ T^

n i are known quantities.^ The piecewise constant FV formulation becomes then:

dT (^) j dt

= −u

T (^) j − Ti ∆x

, j = 1 (14.1)

dT (^) j dt

= −u

T (^) j − T (^) j− 1 ∆x

, j = 2, 3 ,... , N (14.2)

142 CHAPTER 14. FINITE VOLUME METHOD AND TIME DISCRETIZATION

Note that j = 1 is special because of the need to apply the inlet boundary condition. The above is a system of ODE that must be advanced in time with some suitable time-stepping scheme. The Forward Euler scheme, even though it is only first order in time, is one of the simplest scheme which allow the unknowns to be “marched” in time explicitly. So the fully discrete system takes the form:

T

n+ j =^ T^

n j −^ u∆t

T

n j −^ T^

n j− 1 ∆x

= T (^) jn − μ

( (T n j −^ T^

n j− 1

) , μ =

u∆t ∆x

= μT n j− 1 (1^ −^ μ)^ T^

n j (14.5)

where μ is a dimensionaless quantity known as the Courant number: it represents the ratio of the distance covered by the flow in time ∆t over the grid spacing. The above equation can also be written in matrix form as

        

T (^1) T (^2) .. . T (^) j− 1 T (^) j T (^) j+ .. . T (^) N − 1 T (^) N

         

n+

=

         

1 − μ μ 1 − μ

...... μ 1 − μ μ 1 − μ μ 1 − μ ...... μ 1 − μ μ 1 − μ

         

         

T (^1) T (^2) .. . T (^) j− 1 T (^) j T (^) j+ .. . T (^) N − 1 T (^) N

         

n

+μ

         

T (^) in 0 .. . 0 0 0 .. . 0 0

         

(14.6) The left hand side vector represent the unknown cell averages at time tn+1 while the right hand side consists of the evolution matrix M, the cell average vector at time tn, and the so-called load vector which contain the forcing on the system, in the present case it contains only the inlet boundary condition. Although the matrix M here is relatively simply: it is a bi-diagonal matrix consisting of (1 − μ) on the main diagonal, μ on the first subdiagonal, and zero everywhere else, on is still required to analyze the eigenvalues of this matrix.

14.3 The Von-Neumann stability analysis

The Von-Neumann stability analysis allows us to determine the suitability of the time-stepping scheme without complicated matrix algebra. Instead the problem is modified slightly by assuming the boundary conditions are periodic in space. This precludes studying the impact of applying the boundary on the scheme’s stability, but however, this is rarely a problem in practice, particular for such an essential boudary condition as the inlet condition. Under these circumstance, all rows of the

144 CHAPTER 14. FINITE VOLUME METHOD AND TIME DISCRETIZATION

(^00) 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

1

k∆ x/π

|A|

μ=1/ μ=1/ μ=1/

Figure 14.1: Amplification factor for the FE in time, Donor cell scheme for various Courant numbers

A detailed analysis of the amplification factor for this scheme will reveal its behavior for all waves supported on the computational grid. Notice for example that if λ is the wavelength of wavenumber k then

k∆x = 2π

∆x λ

and hence k∆x is proportional to the ratio of grid cells per wavelength. If a lot of grid cells are used per-wavelength so that k∆x = 2π∆x/λ  1, the amplification factor is close to 1 and the waves are not damped. Notice also that on a discrete grid, the wavelength cannot be arbitrarily small since the smallest wave that can be represented on the grid has wavelength 2∆x so that kmax∆x = π. This shortest wave will be damped at a rate determined by the Courant number: A = 1 − 4 μ(1 − μ). Figure 14.1 shows the dependence of the amplification factor on k∆x and μ. Notice that on the left side of the spectrum k∆x << 1, where waves are well-resolved, the amplification factor is close to 1, and the waves are not damped (as one would expect from solving the PDE exactly). The unresolved waves on the other hand with k∆x close to π are damped. The maximum damping occurs for a Courant number of 1/2. The damping is less for all other Courant numbers.