Advection equation stability for explicit scheme

Click For Summary
SUMMARY

The discussion centers on optimizing the number of nodes in a 1D advection problem involving a cold fluid over a flat plate, utilizing finite differences for simulation. Steven encountered issues with the CFL (Courant-Friedrichs-Lewy) criterion not ensuring stability, even when CFL < 1. A grid resolution study is recommended as a method to refine the simulation, alongside dynamic grid adaptation and Von Neumann stability analysis to assess the stability of the finite difference scheme. The Crank-Nicolson method is highlighted for its potential to introduce spurious oscillations if the time step is excessively large.

PREREQUISITES
  • Understanding of 1D advection problems
  • Familiarity with finite difference methods
  • Knowledge of CFL (Courant-Friedrichs-Lewy) criterion
  • Experience with Von Neumann stability analysis
NEXT STEPS
  • Research dynamic grid adaptation techniques
  • Study grid resolution methods for numerical simulations
  • Explore the Crank-Nicolson method and its applications
  • Learn about spurious oscillations in numerical methods
USEFUL FOR

Researchers, engineers, and students working on fluid dynamics simulations, particularly those focused on numerical stability and optimization of finite difference schemes.

pomekrank
Messages
13
Reaction score
0
Hello,

I have a typical 1D advection problem where a cold fluid flows over a flat plate. I did an energy balance to include conduction, convection and friction loss and I got the PDE's for the fluid and the solid. I used finite differences to solve the system as T(x, t) for both fluid and solid. After simplification, I have this kind of matrix in explicit scheme.
(see attached matrix.png)

The problem is that I want to optimise the number of nodes (time step) in my simulation to decrease time of calculation and ensure stability and convergence. I read about CFL criteria but it doesn't seem to always work in my case even if CFL < 1. Here (advection.png) is an image of the temperature distribution at a specific node for 2 different cases. By trial and error, I determined that the lowest minimum of nodes would be around 20 to get the full phenomen. However, is there a analytical way to figure out this value ?

Thank you,

Steven
 

Attachments

  • matrix.png
    matrix.png
    23 KB · Views: 626
  • advection.png
    advection.png
    3.4 KB · Views: 532
Physics news on Phys.org
The only way I know to do this is to perform a grid resolution study. You would start with a coarse grid, run the simulation, and keep refining the grid until the changes in the computed solution fall below a certain tolerance. You might consider automating this procedure. That is known as dynamic grid adaptation.
 
Von Neumann stability analysis is the standard technique for accessing the stability of a finite difference scheme.

However, some stable finite difference schemes will have spurious oscillating modes if the time step is too large. An example of this is the Crank-Nicolson method applied to the heat equation. While these mode eventually decay to zero, they can still negatively impact a calculation. Your plot of the temperature is indicative of such behavior.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 18 ·
Replies
18
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
24
Views
8K
  • · Replies 1 ·
Replies
1
Views
5K