Stability and Accuracy of Diffusion Equation Solution

baseball07
Messages
5
Reaction score
0
I have a general question about the solution to the Diffusion equation using the explicit finite difference method. Now, it is known the solution is stable when D*dt/dx^2 is less than 0.5, based on the choice of time and space steps. However, how does the choice of the time and space steps affect the actual numerical solution values, say if we were to compare with some experimental data? That is, a D*dt/dx^2 of 0.48 and 0.3 are both indeed stable, but they will both have different numerical values, correct? So how does one choose the correct time and space steps to get the closest solution?
 
Physics news on Phys.org
baseball07 said:
I have a general question about the solution to the Diffusion equation using the explicit finite difference method. Now, it is known the solution is stable when D*dt/dx^2 is less than 0.5, based on the choice of time and space steps. However, how does the choice of the time and space steps affect the actual numerical solution values, say if we were to compare with some experimental data? That is, a D*dt/dx^2 of 0.48 and 0.3 are both indeed stable, but they will both have different numerical values, correct? So how does one choose the correct time and space steps to get the closest solution?

You can compare against analytic solutions. You can set the value of D*dt/dx^2 constant, and solve the equations using progressively smaller values of dx and dt (at fixed D*dt/dx^2 ) until you are satisfied that the solutions have stopped changing (to your satisfaction). You can also try this for several values of D*dt/dx^2 and compare results.
 
Chestermiller said:
You can compare against analytic solutions. You can set the value of D*dt/dx^2 constant, and solve the equations using progressively smaller values of dx and dt (at fixed D*dt/dx^2 ) until you are satisfied that the solutions have stopped changing (to your satisfaction). You can also try this for several values of D*dt/dx^2 and compare results.

Yes, this is probably the only thing you can do. I've used it in heat transfer
studies to verify/validate finite element simulations compared to analytic
heat diffusion solutions for regular geometric shapes. Eg, if I was
modeling the cooling of an avocado, I would test the numerical
simulation against spheres and short columns.
 
Last edited:
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top