Analysis of spatial discretization of a PDE

Click For Summary

Discussion Overview

The discussion revolves around the analysis of spatial discretization of the 1D heat equation using finite-difference methods (FDM). Participants explore how to evaluate the accuracy of numerical solutions compared to analytic solutions, and whether there are tools or methods to analyze the influence of discretization on these solutions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes using FDM to discretize the heat equation and seeks tools to analyze the influence of spatial discretization on the analytic solution.
  • Another participant mentions stability criteria related to the increments in space and time, suggesting that there are restrictions on the values of these increments.
  • A participant suggests plotting the numerical and analytic solutions against each other to visually assess the accuracy of the FDM solution.
  • Discussion includes the idea of examining the \ell^{2} norm of differences at specific time points to gauge convergence.
  • Some participants propose that while examining the norm at a single time provides limited information, doing so across all time steps could yield a function representing convergence behavior.
  • One participant draws a parallel to the Shannon-Nyquist theorem, suggesting that similar conditions might apply to spatial discretization, although they express uncertainty about the existence of such methods.
  • Another participant discusses the implications of the Nyquist criterion for spatial frequencies in the context of the heat equation, noting that diffusion rapidly diminishes high frequencies.
  • There is mention of solving the problem in frequency space as a potentially efficient numerical method for the heat equation.
  • Participants share notes and references related to Fourier transforms and their connection to the heat equation, indicating a focus on Gaussian smoothing.

Areas of Agreement / Disagreement

Participants express varying degrees of understanding and approaches to the problem, with no clear consensus on specific tools or methods for analyzing discretization effects. Multiple competing views and suggestions remain present throughout the discussion.

Contextual Notes

Participants acknowledge the complexity of the topic and the potential limitations of their proposed methods, such as the need for further exploration of the frequency spectrum and the implications of stability criteria.

Who May Find This Useful

Readers interested in numerical methods for partial differential equations, particularly in the context of heat transfer and discretization techniques, may find this discussion relevant.

zhidayat
Messages
8
Reaction score
0
Hi everybody,

I hope I am asking in the right forum.
Let describe the problem as follows:
I have a 1D heat equation. To solve it, I use finite-difference method to discretize the PDE and obtain a set of N ODEs. The larger N gives the better solution, i.e., the closer the solution to the original PDE. I can also further discretized in time so that I have a set of difference-equations and find the temperature distribution.

My question:
Are there tools that can be used to analyze the influence of the discretization (spatially) to the analytic solution?

Thank you in advance.
 
Physics news on Phys.org
Not too sure what you're asking but there are tests to tell you the stability of your finite difference scheme, suppose that dx and dt are the increments in x and t than there is a rule involving dx and dt which gives you a restriction on what values of dx and dt you are able to take.

These are in general called stability criterion I believe.
 
I think I understand what zhidayat is asking. He's solved his problem numerically by a finite difference method, and he also has an analytic solution. He wants to analyze how good a job the FDM does. Of course, if you have an analytic solution, the FDM solution is kind of pointless, but what he proposes nevertheless makes sense as a way of seeing how well the FDM works.

Unfortunately, I don't know of any tools, in the sense of software packages, or special techniques. I expect they exist, since FDM solution of DEs is an important and difficult topic, but I just don't know about them. But the particular problem he's solving is a pretty easy one. I would just plot the solutions against each other and plot the difference between them, then redo the numerical solution with the interval decreased by a factor of two. That's not too sophisticated but will give you a fair idea of how well it works and what pathologies it might develop.
 
How about he chooses a particular time and examines the \ell^{2} norm of the differences?
 
Yes, of course. But that's just one number. I think you want more fine-grained information.
 
It's one number for a given time, do this for all the time steps and you will end up with a function that will gives you the general feeling of the convergence.
 
hunt_mat said:
It's one number for a given time, do this for all the time steps and you will end up with a function that will gives you the general feeling of the convergence.
Well, you did say "How about he chooses a particular time..."

This is why I suggested plotting the solutions.
 
Thanks for some ideas.
I am thinking of something similar as the Shannon-Nyquist theorem for which gives condition for minimum sampling period with respect to information not stability.
But perhaps the method is non exist, I do not know.
 
zhidayat said:
Thanks for some ideas.
I am thinking of something similar as the Shannon-Nyquist theorem for which gives condition for minimum sampling period with respect to information not stability.
But perhaps the method is non exist, I do not know.
The Nyquist criterion applies -- if you want spatial frequencies up to B (for bandwidth), you need to sample at 2B -- i.e. your grid points should be <= 1/2B apart. But this is simple for the heat equation. Diffusion makes high frequencies go away very rapidly. The decay rate is proportional to the square of the frequency. In fact, if you're concerned about the frequency spectrum, you should solve the problem in frequency space directly. Diffusion is equivalent to Gaussian smoothing. This is actually the most efficient numerical method to solve the heat equation, too.
 
  • #10
pmsrw3 said:
The Nyquist criterion applies -- if you want spatial frequencies up to B (for bandwidth), you need to sample at 2B -- i.e. your grid points should be <= 1/2B apart. But this is simple for the heat equation. Diffusion makes high frequencies go away very rapidly. The decay rate is proportional to the square of the frequency. In fact, if you're concerned about the frequency spectrum, you should solve the problem in frequency space directly. Diffusion is equivalent to Gaussian smoothing. This is actually the most efficient numerical method to solve the heat equation, too.

Interesting ..., I get your point. Do you know references that have presented/discussed what you have told me above? Could you tell me please?
 
  • #11
Here are my notes from some lectures I gave on this topic. Note sure how much sense they'll make without the talk, but you can take a look at them. If you have the fortitude to wade through them, I'll try to answer any questions.
 

Attachments

  • #12
Thank you pmsrw3. Browsing the notes, they has something to do with Fourier series/transform I guess. I will read it more careful later.
 
  • #13
They are about using the heat equation (which, for reasons of context, I refer to as the diffusion equation -- but it's the same) as a way to introduce Fourier transforms. Anyway, they demonstrate that the heat equation is equivalent to Gaussian smoothing.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K