Introduction to Finite Differences - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Introduction to Finite Differences

Description:

Addition of Artificial Dissipation can lead to inaccuracies and therefore, the ... you will need to add artificial dissipation terms to the governing equations. ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 17
Provided by: vishsubr
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Finite Differences


1
Introduction to Finite Differences
  • Partial derivatives appearing in the conservation
    equations are replaced by algebraic difference
    quotients. This leads to algebraic equations for
    the dependent variables at specified grid points.
  • There are 3 types of differences
  • Forward Difference
  • Backward Difference
  • Central Difference
  • These are generated using Taylors series
    approximations.

2
Forward Differences
?
?
where (Dx) xi1 - xi
3
Backward Differences
?
?
where (Dx) xi - xi-1
4
Central Differences
and
Subtracting,
?
5
  • We will introduce finite difference techniques
    with the non-reacting, i.e. compositionally
    frozen flow (quasi-1D) as an illustration
  • These are of the form
  • where for example Gr, a1/A, and FruA
  • for the continuity equation

6
  • We illustrate a most important concept known as
    Artificial Diffusion or Numerical Diffusion using
    a particular technique developed by Lax, which is
    outlined below
  • Central difference the spatial derivative to
    obtain
  • Forward difference in time
  • Replace based on its neighbors values, i.e.

7
  • Thus, using Laxs method, the equation becomes

?
Subtracting Gin from both sides, and dividing by
Dt,
8
  • This can also be written as
  • In the limit as Dt, Dx ? 0, we have
  • There is the appearance of the first term on the
    right hand side, which was NOT there in the
    original PDE.
  • Discretized operator is different from original
    PDE!

?
9
  • Note that is (can be) hyperbolic. But,
  • is parabolic.
  • The second order derivative resembles the viscous
    term in the Navier-Stokes equations which govern
    flow with friction (as we shall see later), but
    here it was obtained as a consequence of the
    particular differencing scheme used. Because of
    the resemblance, the coefficient of this
    additional term, , is called the Artificial
    Viscosity.

10
  • The presence of the term leads to changes in
    amplitude and phase of the solution, and can be
    de-stabilizing.
  • Therefore, to counter such differences between
    the PDE and its discretized form, second or
    higher order terms have to be added to the PDE or
    its discretized form.
  • Addition of Artificial Dissipation can lead to
    inaccuracies and therefore, the final solution
    must be checked for varying levels of
    dissipation.

11
  • This idea of adding dissipative terms to the
    governing equation explicitly to stabilize and
    dampen numerical oscillations was due to Von
    Neumann Richtmeyer.
  • Be aware that in the forthcoming numerical
    techniques, you will need to add artificial
    dissipation terms to the governing equations.

12
  • This Lax method is an example of an explicit
    method. All quantities are known at time level n
    and the quantities at time level n1 can be
    solved for directly or explicitly, i.e. no
    iteration is necessary.
  • Example
  • Laxs method for yielded
  • In contrast, an implicit form would be
  • Since and will depend on , usually
    in a non-linear manner.

13
  • In general, explicit methods are easier to
    program than implicit methods, but suffer from
    possible instability problems and stiffness.
  • Explicit MacCormack Scheme
  • Suppose we want to solve , where f and y are
    some non-linear functions of the dependent
    variables (such as r, u, T), and a could depend
    on x.

14
  • MacCormack proposed the following
    predictor-corrector method
  • Predictor
  • Note that is forward differenced in time
    and is forward differenced in space.
  • Corrector Step

15
  • Where and depend upon the predicted values
    . This corrector step is obtained from
  • or

?
16
?
?
We will now apply this method to our quasi 1D
problem.
Write a Comment
User Comments (0)
About PowerShow.com