CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Has von Neumann stability theory a flawness?

Register Blogs Community New Posts Updated Threads Search

Like Tree19Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2018, 11:25
Default Has von Neumann stability theory a flawness?
  #1
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The generally reported theory of von Neumann is focused on the evolution of the round-off error, that is a finite dimensional vector that is superimposed to the numerical solution of the discrete equation, assumed in absence of a finite precision arithmetic.
That is the discrete equation is


Ad ud=0


And the round-off error is the vector


e=ud-uro


When the discrete operator is applied to e we exploit Ad ud=0 but in literature is generally reported (see Hirsch or Anderson) that also Aduro=0, therefore the equation to study for the stability constraints is



Ad e=0


1) Why is it assumed that the RHS vanishes? I found no theoretical reasons to assume Aduro=0.
2) When the round-off error is introduced should'nt be considered its action also on the discrete operator Ad, that is Ae=Ad-Aro ?




aero_head likes this.
FMDenaro is offline   Reply With Quote

Old   October 21, 2018, 02:11
Default
  #2
Super Moderator
 
Praveen. C
Join Date: Mar 2009
Location: Bangalore
Posts: 342
Blog Entries: 6
Rep Power: 18
praveen is on a distinguished road
This is a good question and I dont have a good answer.

Suppose you have a time update scheme
u^{n+1}_i = H_i(u^n)
for which you have shown stability
\| u^{n+1} \| \le \| u^n \|
under some time step condition. In actual computation we get
v^{n+1}_i = H_i(v^n) + \epsilon_i^n
where each \epsilon_i^n is of the order of |v|\eta where \eta is the unit round of the computer. So we get an estimate of the form
\| v^{n+1} \| \le \| v^n \| + \eta \| v^n \| = (1 + \eta) \| v^n \|
and the solution norm might increase by a fraction \eta in one time step.

But this is a coarse argument and it ignores the fact that roundoff errors also cancel one another. Maybe if you use probabilistic arguments to account for the distribution of roundoff errors, you get a more precise estimate. These things would have been studied in the past but I dont know any good literature.

What we are told in class is that if your method is fourier stable, and you use enough precision, then you dont have to worry about roundoff error in most applications.
aero_head likes this.
praveen is offline   Reply With Quote

Old   October 21, 2018, 03:08
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
At the best of my knowledge, the literature does not clarify the issue.
The original papers

von Neumann, J., Richtmyer, R.D. (1947), "On the Numerical Solution of Partial Differential Equations of Parabolic Type", LA Report 657,

Crank, J.; Nicolson, P. (1947), "A Practical Method for Numerical Evaluation of Solutions of Partial Differential Equations of Heat Conduction Type", Proc. Camb. Phil. Soc., 43: 50-67, doi:10.1007/BF02127704

Charney, J. G.; Fjørtoft, R.; von Neumann, J. (1950), "Numerical Integration of the Barotropic Vorticity Equation", Tellus, 2: 237-254, doi:10.1111/j.2153-3490.1950.tb00336.x





as well as the books of Hirsch and Anderson, simply stated that the discrete equation for the evolution of the round-off error has the RHS set to zero, that is exactly corresponds to the solved discrete equations. This is explained simply stating that both Adud=0 and Aduro=0. But there is no further argumentation to assess the latter is really satisfied in a finite precision. I mean, the latter is the equation that is not really solved in a computer program as Ad is the operator not affected by the round-off. I think that using Maple in symbolic calculus that can be shown.


I could also change my question in:


If I would able to do the computation by hand (or without introducing the finite precision responsible of the round-off), there is no more concerns about numerical stability, isn't that?

aero_head likes this.
FMDenaro is offline   Reply With Quote

Old   October 22, 2018, 09:27
Default
  #4
agd
Senior Member
 
Join Date: Jul 2009
Posts: 351
Rep Power: 18
agd is on a distinguished road
What I always understood (following Hirsch's description) is that the operator is linear, and the actual output of the system can be written as the sum of two functions - one of those is the exact solution to the difference equation and the other is an error term. Each piece equals zero identically because the operator is linear. As far as I know, that's the only justification. So it's not a flaw as much as a limitation to linear systems. The results are then extended to non-linear systems on an ad-hoc basis. At least that's the way I was taught Von Neumann stability theory.
agd is offline   Reply With Quote

Old   October 22, 2018, 10:22
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by agd View Post
What I always understood (following Hirsch's description) is that the operator is linear, and the actual output of the system can be written as the sum of two functions - one of those is the exact solution to the difference equation and the other is an error term. Each piece equals zero identically because the operator is linear. As far as I know, that's the only justification. So it's not a flaw as much as a limitation to linear systems. The results are then extended to non-linear systems on an ad-hoc basis. At least that's the way I was taught Von Neumann stability theory.



Linear assumption means only that the round-off errors sums to the numerical solution to provide the real vector of the solution at finite precision. Why this round-off affected solution is an exact solution of the discrete (and linear) operator that satisfies Adud=0. What we should assumed true is that also the the discrete operator is affected by the round-off error to provide Aro uro = 0. But that does not change the fact that Adero seems to me to be not zero as assumed by the von Neumann theory.
I know that Anderson and Hirsch assumes such identity for the equation that describes the evolution of the round-off error but I did not find a theoretical basis.
FMDenaro is offline   Reply With Quote

Old   October 22, 2018, 11:18
Default
  #6
agd
Senior Member
 
Join Date: Jul 2009
Posts: 351
Rep Power: 18
agd is on a distinguished road
If you are suggesting that the operator itself needs to be examined for its effect on stabilty, then I'm not sure that Von Neumann analysis is suitable. The VN error analysis is founded on the idea that the operator is linear, and so any sum of solutions will equal a third solution. It sounds like you are suggesting the need for a non-linear stability analysis. But I may not be understanding what you are saying.
agd is offline   Reply With Quote

Old   October 22, 2018, 11:38
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by agd View Post
If you are suggesting that the operator itself needs to be examined for its effect on stabilty, then I'm not sure that Von Neumann analysis is suitable. The VN error analysis is founded on the idea that the operator is linear, and so any sum of solutions will equal a third solution. It sounds like you are suggesting the need for a non-linear stability analysis. But I may not be understanding what you are saying.



The problem is that Ad is the exact discrete operator we write by hand on a paper at infinite precision. And the solution that satisfies Ad ud = 0 is assumed at exact precision, too. If we sum (linear assumption) to the solution ud a vector of the round-off error to express uro = ud + ero when you apply this operator to both sides we have only the constraint that ud satisfies exactly the equation. I dont know how to figure it out a theoretical assessment that ensures also Aduro=0 to get the common homogeneous equation for the error.





You can always start by considering the real finite precision computation as the equation



Aro uro =0


Thus


(Ad + Ero )(ud + ero )=0



The problem is still due to the fact that we do not recover the von Neumann equation Ad ero =0 but the RHS has a source term affecting the evolution of the round-off error.
FMDenaro is offline   Reply With Quote

Old   October 23, 2018, 02:38
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I have not found anything else in literature addressing this issue, I will try to do some numerical check in matlab
FMDenaro is offline   Reply With Quote

Old   October 23, 2018, 17:42
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
After further reading, I finally think that some conclusions can be driven :


1) starting from the original von Neumann theory (1947), considering what stated also in the book of Trefethen (https://people.maths.ox.ac.uk/trefethen/4all.pdf), the analysis considers only the amplification factor of the numerical scheme, round-off is never explicitly considered in the original idea.
2) we could argue why some textbooks (for example Hirsch) illustrated the theory on the basis of the round-off error evolution.
3) According to the statement of Trefethen, the stability could be analysed by means of the discretization error, too. However, the discrete equation for the evolution of such error is not homogenous, a fact that changes the evaluation of the analysis.
aero_head likes this.
FMDenaro is offline   Reply With Quote

Old   April 7, 2021, 11:34
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
For interested readers, I wrote a note for eduational purpose


https://www.researchgate.net/publica...eory_revisited
sbaffini, LuckyTran and aero_head like this.
FMDenaro is offline   Reply With Quote

Old   April 7, 2021, 23:44
Default
  #11
Senior Member
 
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 8
aero_head is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
For interested readers, I wrote a note for eduational purpose


https://www.researchgate.net/publica...eory_revisited
Thank you, professor. These are important concepts to understand. It is written very clearly, such that a novice like me could understand and follow along.
aero_head is offline   Reply With Quote

Old   April 8, 2021, 04:25
Default
  #12
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by FMDenaro View Post
For interested readers, I wrote a note for eduational purpose


https://www.researchgate.net/publica...eory_revisited
The fact that the stability is not related to the roundoff error (at all), I think is clear from the most simple example of the linear advection equation:

\frac{\partial u}{\partial t} + c \frac{\partial u}{\partial x} = 0

on a unform grid with nodes x_i = x_0 + i \cdot \Delta x with c>0, which leads to the following scheme:

u^{n+1}_i = \left(1-CFL\right) \cdot u^n_i + CFL \cdot u^n_{i-1}

where CFL = c \cdot \Delta t/\Delta x. Now, if you take an initial condition (time level n) which is 0 everywhere except, say, in nodes 2 and 3, where it is 1, then at the next time step (time level n+1) you have:

u^{n+1}_2 = \left(1-CFL\right)
u^{n+1}_3 = 1
u^{n+1}_4 = CFL
u^{n+1}_5 = 0

Take CFL>1 and you have problems, but I don't think I made any roundoff errors at all. Do I miss something in the reasoning? I think it is interesting to also note that node 5 won't get anything at all, no matter how high the CFL.
FMDenaro and aero_head like this.
sbaffini is offline   Reply With Quote

Old   April 8, 2021, 04:40
Default
  #13
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by sbaffini View Post
The fact that the stability is not related to the roundoff error (at all), I think is clear from the most simple example of the linear advection equation:

\frac{\partial u}{\partial t} + c \frac{\partial u}{\partial x} = 0

on a unform grid with nodes x_i = x_0 + i \cdot \Delta x with c>0, which leads to the following scheme:

u^{n+1}_i = \left(1-CFL\right) \cdot u^n_i + CFL \cdot u^n_{i-1}

where CFL = c \cdot \Delta t/\Delta x. Now, if you take an initial condition (time level n) which is 0 everywhere except, say, in nodes 2 and 3, where it is 1, then at the next time step (time level n+1) you have:

u^{n+1}_2 = \left(1-CFL\right)
u^{n+1}_3 = 1
u^{n+1}_4 = CFL
u^{n+1}_5 = 0

Take CFL>1 and you have problems, but I don't think I made any roundoff errors at all. Do I miss something in the reasoning?



Paolo, you are right but you know that it is quite common to present the numerical stability analysis while introducing the concept of "evolution of the error", "amplification factor of the error", and so on, using such statements while referring to finite numerics.

In my note I followed the literature and I still don't know why the original paper of von Neumann was then, somehow, misunderstood.
In his original paper the stability analysis is performed on the basis of the discrete equation for the resolved variable, no error equation is introduced.
And I don't know why the error equation was then introduced by some authors in a wrong form, that is as homogeneous equation.
Admittedly, I used to teach to the student the stability analysis following the CFD textbooks and the evolution equation for the error but I think that if we really want to analyze the topic in a modern a rigorous way, it is now time to consider the correct equations for bot the discrete and the continous errors.
sbaffini and aero_head like this.
FMDenaro is offline   Reply With Quote

Old   April 8, 2021, 04:41
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I strongly suggest to read the original von Neumann's paper...
praveen likes this.
FMDenaro is offline   Reply With Quote

Old   April 8, 2021, 04:47
Default
  #15
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
The way I see the matter on the stability is that once you pick up a stencil, a grid and a time step, then:
  • For an explicit scheme you are explicitly (pun intended) enforcing how fast information can travel on that grid
  • For an implicit scheme, by the fact that you end up with a system of equations (so that every point can influence any other one), you are implicitly (pun intended) stating that information can travel infinitely fast (despite being wrong)
aero_head likes this.
sbaffini is offline   Reply With Quote

Old   April 8, 2021, 04:51
Default
  #16
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by FMDenaro View Post
Paolo, you are right but you know that it is quite common to present the numerical stability analysis while introducing the concept of "evolution of the error", "amplification factor of the error", and so on, using such statements while referring to finite numerics.

In my note I followed the literature and I still don't know why the original paper of von Neumann was then, somehow, misunderstood.
In his original paper the stability analysis is performed on the basis of the discrete equation for the resolved variable, no error equation is introduced.
And I don't know why the error equation was then introduced by some authors in a wrong form, that is as homogeneous equation.
Admittedly, I used to teach to the student the stability analysis following the CFD textbooks and the evolution equation for the error but I think that if we really want to analyze the topic in a modern a rigorous way, it is now time to consider the correct equations for bot the discrete and the continous errors.
Then I'm lucky that I don't remember anything anymore

Jokes apart, I've read your note (but not the original papers you mention), and I also remember the stability often being referred with respect to roundoff errors.
FMDenaro and aero_head like this.
sbaffini is offline   Reply With Quote

Old   April 8, 2021, 05:08
Default
  #17
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by sbaffini View Post
Then I'm lucky that I don't remember anything anymore

Jokes apart, I've read your note (but not the original papers you mention), and I also remember the stability often being referred with respect to roundoff errors.
Are you able to download that paper? I can send you if you aren’t
FMDenaro is offline   Reply With Quote

Old   April 8, 2021, 05:17
Default
  #18
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by FMDenaro View Post
Are you able to download that paper? I can send you if you aren’t
I can't, so yes, thanks...

Returning to the issue, one can also see that, for the specific scheme I picked up, it turns out that every node will always contribute, at the next time step, a fraction 1-CFL of its value to the same node and a fraction CFL to the one next to it along the flow, no matter what. So, in a way, stability is a sort of conservation statement for the stencil in use.
sbaffini is offline   Reply With Quote

Old   April 8, 2021, 05:25
Default
  #19
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by sbaffini View Post
I can't, so yes, thanks...

Returning to the issue, one can also see that, for the specific scheme I picked up, it turns out that every node will always contribute, at the next time step, a fraction 1-CFL of its value to the same node and a fraction CFL to the one next to it along the flow, no matter what. So, in a way, stability is a sort of conservation statement for the stencil in use.



but you need to generalize the analysis also for parabolic equations... I send you the paper
sbaffini likes this.
FMDenaro is offline   Reply With Quote

Old   April 8, 2021, 05:32
Default
  #20
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by FMDenaro View Post
but you need to generalize the analysis also for parabolic equations... I send you the paper
Yes, but even in that case one might think of some hyperbolic formulation (like the one by Peshkov or Nishikawa).

For purely explorative reasons, one could devise a scheme where first each node, according to the local characteristic speed, marks all the nodes within its region of influence and then each node evolves using a stencil with al the nodes that marked it in the first step... still, it is unclear how such stencil weights should be constructed
sbaffini is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Von Neumann Stability mathgra Main CFD Forum 1 July 2, 2018 09:57
Why we use finite number of Terms in Fourier Decomposition of Error in Von Neumann St alibaig1991 Main CFD Forum 2 January 26, 2018 14:46
stress analysis -Von Mises Theory watashiwa OpenFOAM 7 October 15, 2010 15:43
Lax method stability via von neumann analysis morteza08 Main CFD Forum 1 June 5, 2010 12:43
wmake compiling Problem with OF1.5 openTom OpenFOAM Installation 4 May 3, 2009 14:44


All times are GMT -4. The time now is 14:15.