Diffusion equation in sperical coordinates

Click For Summary
The discussion revolves around solving a diffusion equation in spherical coordinates using separation of variables. The equation is transformed into a form involving spherical Bessel functions, specifically focusing on the first kind, J_0. The user struggles to determine the constants D and λ while applying the initial and boundary conditions, leading to confusion about the time evolution of the solution. An oversight in the order of applying boundary and initial conditions is acknowledged, but this results in further complications, particularly with the boundary condition at r=0. The user is seeking clarification on the correct approach to resolve these issues with the boundary conditions.
lostidentity
Messages
16
Reaction score
0
I have the following diffusion equation

<br /> \frac{\partial^{2}c}{\partial r^{2}} + \frac{2}{r}\frac{\partial c}{\partial r} = \frac{1}{\alpha}\frac{\partial c}{\partial t}<br />

where \alpha is the diffusivity. The solution progresses in a finite domain where 0 &lt; r &lt; b, with initial condition
c(r,0) = g(r)

and the boundary conditions

<br /> c(b,t) = 1 <br />

<br /> c(0,t) = 0<br />

How will I proceed with this using the separation of variables?
I think the time-dependent part is straight forward after separation of variables. But how will I deal with the spatial part where Bessel functions have to be dealt with?

Thanks.
 
Last edited:
Physics news on Phys.org
\frac{\partial^{2}c}{\partial r^{2}} + \frac{2}{r}\frac{\partial c}{\partial r} = \lambda

\frac{r}{2} \frac{\partial^{2}c}{\partial r^{2}} + \frac{\partial c}{\partial r} = \frac{r \lambda}{2}

Let u = r/2 and you should be able to get it into the form of x \frac{d^2 y}{dx^2} + \frac{dy}{dx} = \frac{d}{dx} (x \frac{dy}{dx})
 
Hello thanks for the reply. I've found out that my spatial equation is in the form of the spherical Bessel function equation, where the Bessel functions of the first and second kinds are given by

J_0(\lambda{r}) = \frac{\sin(\lambda{r})}{\lambda{r}}
Y_0(\lambda{r}) = -\frac{\cos(\lambda{r})}{\lambda{r}}

I ignore Y_0 since it goes to infinity when r=0. The general solution then becomes

c(r,t)=De^{-(\alpha\lambda^2t)}J_0(\lambda{r})

Now the problem I'm having is finding the constant D and \lambda using the initial and boundary conditions.

The initial condition is c(r,0)=g(r)

I first apply the initial condition to obtain

c(r,0)=DJ_0(\lambda{r})=g(r)
D=\frac{g(r)}{J_0(\lambda{r})}

I now apply the boundary condition c(b,t)=1 to obtain

<br /> c(b,t)=\frac{g(b)}{J_0(\lambda{b})}e^{-\alpha\lambda^2t}J_0(\lambda{b})}=1<br />

<br /> -\alpha\lambda^2{t}=\ln(\frac{1}{g(b)})<br />

Therefore the solution is

<br /> c(r,t)=g(r)e^{\ln\frac{1}{g(b)}}<br />

but my problem is g(b)=1 for the profile, which means that the solution is actually

<br /> c(r,t)=g(r)<br />

i.e. it doesn't change with time! I don't think this makes sense.
What am I doing wrong here?

EDIT:

I realized that I've forgotten a simple rule of calculus where I should apply both the boundary conditions first before I apply the initial conditions. However, this gives another problem because applying the first boundary condition

c(0,t)=0 gives me

De^{\alpha\lambda^2t}=0

and the second boundary condition c(b,t)=1 gives

De^{\alpha\lambda^2t}J_0(\lambda{r})=1

I don't know how this could be solved. It could be that my boundary conditions are incorrect.
 
Last edited:
Thread 'What is the pressure of trapped air inside this tube?'
As you can see from the picture, i have an uneven U-shaped tube, sealed at the short end. I fill the tube with water and i seal it. So the short side is filled with water and the long side ends up containg water and trapped air. Now the tube is sealed on both sides and i turn it in such a way that the traped air moves at the short side. Are my claims about pressure in senarios A & B correct? What is the pressure for all points in senario C? (My question is basically coming from watching...

Similar threads

  • · Replies 1 ·
Replies
1
Views
538
  • · Replies 5 ·
Replies
5
Views
751
  • · Replies 5 ·
Replies
5
Views
606
  • · Replies 3 ·
Replies
3
Views
621
  • · Replies 29 ·
Replies
29
Views
1K
  • · Replies 3 ·
Replies
3
Views
643
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 0 ·
Replies
0
Views
855
  • · Replies 19 ·
Replies
19
Views
2K
Replies
6
Views
2K