Explicit solution of heat/diffusion equation

  • Context: Graduate 
  • Thread starter Thread starter Holofernes
  • Start date Start date
  • Tags Tags
    Explicit
Click For Summary

Discussion Overview

The discussion revolves around the explicit finite difference method (FDM) applied to a transient one-dimensional diffusion equation with nonlinear diffusion and reaction terms. Participants explore issues related to the implementation of the method, particularly concerning the behavior of the diffusion coefficient and the reaction rate, as well as the resulting numerical solution.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes using an explicit FDM for a diffusion equation where the diffusion coefficient D(x) and reaction rate R(s) are nonlinear functions, leading to unexpected results.
  • The participant notes that the diffusion parameter is position-dependent and has non-continuous derivatives, suggesting that averaging D(x) for linear elements may be problematic.
  • Another participant seeks clarification on the term "wired," interpreting it as "weird," and questions the nature of the plot that appears to have too many bumps.
  • A further reply suggests that the diffusion equation could be expressed in a different form and asks about the initial conditions, indicating a need for more information to understand the problem better.

Areas of Agreement / Disagreement

Participants express confusion and seek clarification on terminology and the nature of the numerical results, indicating that there is no consensus on the issues raised or the correct approach to the problem.

Contextual Notes

Participants have not fully defined the initial conditions or the specific forms of the nonlinear functions for D(x) and R(s), which may affect the analysis and understanding of the problem.

Holofernes
Messages
2
Reaction score
0
I am trying to use a explicit FDM for transient 1d conditions with linear elements for specific diffusion equation:

ds/dt=D(x)*d2s/dx2+R(s)

the problem is that I am using different, nonlinear functions describing diffusion constant D(x) and reaction rate R(s).
The diffusion parameter is dependent on position along x and in general case is a function with non-continuous dD(x)/dx at some points. I am using average value of diffusion parameter for each linear element but the solution seems to be not right. I think that is the problem, because when I use constant D everything looks all right. Especially plot of d2s/dx2 is very wired.
What I am doing wrong?
Thanks.
 
Physics news on Phys.org
Huh?

Holofernes said:
I am trying to use a explicit FDM for transient 1d conditions with linear elements for specific diffusion equation:

ds/dt=D(x)*d2s/dx2+R(s)

the problem is that I am using different, nonlinear functions describing diffusion constant D(x) and reaction rate R(s).
The diffusion parameter is dependent on position along x and in general case is a function with non-continuous dD(x)/dx at some points. I am using average value of diffusion parameter for each linear element but the solution seems to be not right. I think that is the problem, because when I use constant D everything looks all right. Especially plot of d2s/dx2 is very wired.
What I am doing wrong?
Thanks.

FDM?

Wired as in wire-frame plot? Or is that "weird"?
 
'wired' as strange. it has to many bumps. should be less compicated in places where D is changing
 
Gentle hint

So, weird as in "strange"? Too many bumps? Less complicated? And what is FDM? "Finite difference method", perchance? Is your diffusion equation
[tex] \frac{\partial u}{\partial t} = f(x) \, \frac{\partial^2 u}{\partial x^2}+ g(u)[/tex]
where u is an unknown function of x,t and f,g are known functions of one variable, and where f is continuous but only piecewise differentiable? You hinted at initial conditions--- what are they?
 
Last edited:

Similar threads

  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
957
Replies
3
Views
3K