Time evolution of a diffusion equation

Click For Summary

Discussion Overview

The discussion revolves around the time evolution of a 1-D diffusion equation with decay, specifically focusing on how to determine the time required to reach equilibrium concentration from a given initial condition and boundary conditions. The conversation includes theoretical aspects, numerical methods, and analytical solutions related to diffusion processes.

Discussion Character

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

Main Points Raised

  • Some participants discuss the diffusion equation dA/dt = d²A/dx² - L*A, with initial and boundary conditions provided, and express the need to determine the time to reach equilibrium concentration.
  • One participant points out that it will take an infinite amount of time to reach equilibrium, suggesting a more practical approach would be to determine the time to reach a certain percentage of equilibrium concentration (e.g., 95% or 99%).
  • Another participant mentions that diffusion equations are typically solved numerically or through series expansion, referencing Fourier's contributions to the field.
  • There is a discussion about the clarity of boundary conditions, with one participant asking for the relationship between different variables (C, c, D) and expressing confusion over the notation used.
  • Participants highlight potential conflicts between initial and boundary conditions, specifically regarding the parameters a and I0/D.
  • Some suggest methods for solving the equation, including finite differences and Laplace transforms, while others inquire about the feasibility of using finite Fourier series for the problem.

Areas of Agreement / Disagreement

Participants generally agree that reaching equilibrium takes an infinite amount of time, but they propose that determining a finite time to approach equilibrium is a more practical question. There is no consensus on the best method to solve the equation, with multiple approaches being discussed.

Contextual Notes

There are unresolved issues regarding the clarity of the boundary conditions and their relationship to the initial conditions. The discussion also reflects varying levels of familiarity with numerical methods and analytical solutions among participants.

Who May Find This Useful

This discussion may be useful for individuals interested in mathematical modeling of diffusion processes, numerical methods for solving partial differential equations, and those studying the theoretical aspects of diffusion in physics and engineering contexts.

Juliousceasor
Messages
23
Reaction score
0
Hallo everyone,

I have a 1-D diffusion equation with decay as
dA/dt = d2A/dx2-L*A

with initial condition C(x,0)=C0=exp(-ax)
and boundary condition= -Ddc/dx = I0

where L= decay constant
A = certain concentration

the concentration A is not in equilibrium. We can solve the above equation for equilibrium putting dA/dt=0.

The equilibrium concentration can be reached in time t.

How can I determine the time that it takes to reach equilibrium concentration?

Thank you

help would be greatly appriciated
 
Physics news on Phys.org
Juliousceasor said:
Hallo everyone,

I have a 1-D diffusion equation with decay as
dA/dt = d2A/dx2-L*A

with initial condition C(x,0)=C0=exp(-ax)
and boundary condition= -Ddc/dx = I0

where L= decay constant
A = certain concentration

the concentration A is not in equilibrium. We can solve the above equation for equilibrium putting dA/dt=0.

The equilibrium concentration can be reached in time t.

How can I determine the time that it takes to reach equilibrium concentration?

Thank you

help would be greatly appriciated

Strictly speaking, it will take an infinite amount of time to reach equilibrium. A more finite question would be "How can I determine the time that it takes to reach 99% of the equilibrium concentration." Or 95%, or 99.99%, pick a good number.
 
Rap said:
Strictly speaking, it will take an infinite amount of time to reach equilibrium. A more finite question would be "How can I determine the time that it takes to reach 99% of the equilibrium concentration." Or 95%, or 99.99%, pick a good number.


Yes that is true as t = inf you will get the original equilibrium concentration back...
Yes more finitely speaking 95-99% is a good approximation.. But analytically speaking t= inf still does hold.

Do you have any clue how to do that?

Thanks
 
Juliousceasor said:
Yes that is true as t = inf you will get the original equilibrium concentration back...
Yes more finitely speaking 95-99% is a good approximation.. But analytically speaking t= inf still does hold.

Do you have any clue how to do that?

Thanks

I have a little experience in these, but probably not enough. Diffusion equations are generally solved numerically, or by a series expansion. The first guy to do this was Fourier, and that's why he invented the Fourier series. I will play around with it, maybe the boundary conditions will make things easy. I don't understand the boundary conditions, what are C, c, and D?
 
Rap said:
I have a little experience in these, but probably not enough. Diffusion equations are generally solved numerically, or by a series expansion. The first guy to do this was Fourier, and that's why he invented the Fourier series. I will play around with it, maybe the boundary conditions will make things easy. I don't understand the boundary conditions, what are C, c, and D?

Actually I am searching for an analytical solution rather than a practical one...
the boundary condition is fick's law -DdA/dx=constant
the initial condition is A(z,t=0)= A0*exp(-mx)

thanks
 
Juliousceasor said:
Actually I am searching for an analytical solution rather than a practical one...
the boundary condition is fick's law -DdC/dx=constant
the initial condition is C(z,t=0)= Aexp(-mx)

thanks

You have to express boundary conditions in terms of the concentration A. What is the relationship between C and A? Is d and D another typo? If you cannot express the problem clearly, then it cannot be solved.
 
Rap said:
You have to express boundary conditions in terms of the concentration A. What is the relationship between C and A? Is d and D another typo? If you cannot express the problem clearly, then it cannot be solved.

it is actually d/dt (A) = D * d^2A/dx^2(partial double derivative of A w.r.t.x)- L*A

with initial condition A(x,0)=A0=exp(-ax)
and boundary condition= -DdA/dx = I0

where L= decay constant
A = certain concentration
D = Diffusion coefficient

Sorry if it was not clear
 
Juliousceasor said:
it is actually d/dt (A) = D * d^2A/dx^2(partial double derivative of A w.r.t.x)- L*A

with initial condition A(x,0)=A0=exp(-ax)
and boundary condition= -DdA/dx = I0

where L= decay constant
A = certain concentration
D = Diffusion coefficient

Sorry if it was not clear

Where is the boundary located? At x=0? Is the boundary condition that -D dA/dx=I0 at x=0 for all t?
 
Rap said:
Where is the boundary located? At x=0? Is the boundary condition that -D dA/dx=I0 at x=0 for all t?

Yes boundary is located at x=0 (this is all happening in semi infinite slab x=0 to inf)
-D dC/dx = I0 is at x=0 for all t
 
  • #10
The initial conditions and boundary conditions are in conflict unless a=I0/D. If A(x,0)=exp(-ax) then at t=0, dA/dx=-a exp(-ax) so that dA/dx=-a at x=0, t=0. Since dA/dx=-I0/D for all t, including t=0, that means that a=I0/D.
 
  • #11
Rap said:
The initial conditions and boundary conditions are in conflict unless a=I0/D. If A(x,0)=exp(-ax) then at t=0, dA/dx=-a exp(-ax) so that dA/dx=-a at x=0, t=0. Since dA/dx=-I0/D for all t, including t=0, that means that a=I0/D.


Yes you are right..Actually it is like this at t=0 that means where initial condition apply A(x,0)=exp(-kx) and for t>0 the Boundary condition comes in the picture -DdA/dx = I0.

I guess now its no more in conflict
 
  • #12
I don't know how to solve this equation with these boundary conditions. Try submitting it to http://www.mymathforum.com/ under the "Real analysis and topology section". You will have no luck unless you state the problem clearly. Don't change A to C to c, don't make typos. Do it like this:

--------

I am trying to solve a type of heat equation for A(x,t) (all variables are real). The differential equation to be solved is:

dA/dt = D d^2A/dx^2 - A/to where D>0, to>0 (d's are partials)

The IC is that at t=0, x>=0, A(x,0)=exp(-a x) where a is some constant > 0.

The BC is that at x=0, t>0, dA/dx=-k where k is some constant >0

----------

I changed a few variables around to make it simpler (e.g. L=1/to).
 
Last edited:
  • #13
Rap said:
I don't know how to solve this equation with these boundary conditions. Try submitting it to http://www.mymathforum.com/ under the "Real analysis and topology section". You will have no luck unless you state the problem clearly. Do it like this:

I am trying to solve a type of heat equation for A(x,t) (all variables are real). The differential equation to be solved is:

dA/dt = D d^2A/dx^2 - A/to where D>0, to>0

The IC is that at t=0, x>=0, A(x,0)=exp(-a x) where a is some constant > 0.

The BC is that at x=0, t>0, dA/dx=-k where k is some constant >0



Okey i will do that
thanks for the help anyways
 
  • #14
There are two ways: apply finite differences to solve this problem OR apply laplace equation, finite Fourier series, etc. If you still need help, please contact me or reply back.
 
  • #15
yus310 said:
There are two ways: apply finite differences to solve this problem OR apply laplace equation, finite Fourier series, etc. If you still need help, please contact me or reply back.

Will finite Fourier series work? I mean its for 0<=x<=infinity.
 
  • #16
you can use any of these three. again.. it is a lot of work.. you need to be careful.. best case scenario is finite difference.. way easier.. attached is my program for a similar equation by no L^2-A, so
n=29;
dx=5/(n-1);
Y=0:dx:5;
alpha=0.5;
stab=(0.5*dx*dx)/(alpha);
dt=0.03;
g=0:dt:250;
[o,d]=size(g);
th=zeros(d,n);
tau=(0.5*dt)/(dx*dx);
for k=1
for i=1:1:n
th(k,i)=1;
end
end

for k=2:1:d
th(k,1)=0;
th(k,n)=2;
end


for t=1:1:d-1
for i=2:1:n-1
th(t+1,i)=((th(t,i+1)+th(t,i-1)-(2*th(t,i)))*(tau))+th(t,i);
end
end
tc=10; %Choose t for Viewing, Steady at tc=1E5 or 5 s
for i=1:1:n
thetha(i)=th(tc,i);
end
hold on
figure (1)
plot(Y,thetha)
xlabel ('x (cm)')
ylabel('thetha(t,x)')

way easier to finite differences

a) set up mesh
b) define bc's and initial conditons (knowns)
c) set up a time marching loop.. set inner node equations, etc, and other things and set up everything
d) solve for C(x,t)
 
  • #17
yus310 said:
you can use any of these three. again.. it is a lot of work.. you need to be careful.. best case scenario is finite difference.. way easier.. attached is my program for a similar equation by no L^2-A, so

LOL - I am not the original poster, but being a programmer, I copied the program for future reference.

I cannot figure out how to use Fourier series to solve an equation where x<=0<=infinity. Fourier transform, yes, Laplace transform, yes, but Fourier series needs a finite interval, right?
 
  • #18
Just use lapace or Fourier transform.. Fourier transform is related to Fourier series... equally you can use finite Fourier if need be
 
  • #19
Thanks for the help. Actually I have solved the problem with the help of Laplace transformation...and the solution works..:)...but thanks anyways!
 

Similar threads

Replies
0
Views
1K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 41 ·
2
Replies
41
Views
10K