Diffusion equation in sperical coordinates

Click For Summary
SUMMARY

The discussion centers on solving the diffusion equation in spherical coordinates, specifically the equation \(\frac{\partial^{2}c}{\partial r^{2}} + \frac{2}{r}\frac{\partial c}{\partial r} = \frac{1}{\alpha}\frac{\partial c}{\partial t}\) with boundary conditions \(c(b,t) = 1\) and \(c(0,t) = 0\). The user successfully identifies that the spatial part leads to the spherical Bessel function equation, resulting in a general solution of the form \(c(r,t) = De^{-(\alpha\lambda^2t)}J_0(\lambda{r})\). However, confusion arises when applying the initial and boundary conditions, leading to the conclusion that the solution does not change over time, prompting the user to reconsider their approach to applying these conditions.

PREREQUISITES
  • Understanding of partial differential equations (PDEs)
  • Familiarity with spherical coordinates and boundary value problems
  • Knowledge of Bessel functions and their properties
  • Basic calculus, particularly in applying initial and boundary conditions
NEXT STEPS
  • Study the application of boundary conditions in solving PDEs
  • Research the properties and applications of spherical Bessel functions
  • Learn about the method of separation of variables in depth
  • Explore numerical methods for solving diffusion equations
USEFUL FOR

Mathematicians, physicists, and engineers working with diffusion processes, particularly those dealing with spherical geometries and boundary value problems in partial differential equations.

lostidentity
Messages
16
Reaction score
0
I have the following diffusion equation

[tex] \frac{\partial^{2}c}{\partial r^{2}} + \frac{2}{r}\frac{\partial c}{\partial r} = \frac{1}{\alpha}\frac{\partial c}{\partial t}[/tex]

where [tex]\alpha[/tex] is the diffusivity. The solution progresses in a finite domain where [tex]0 < r < b[/tex], with initial condition
[tex]c(r,0) = g(r)[/tex]

and the boundary conditions

[tex] c(b,t) = 1 [/tex]

[tex] c(0,t) = 0[/tex]

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
[tex]\frac{\partial^{2}c}{\partial r^{2}} + \frac{2}{r}\frac{\partial c}{\partial r} = \lambda[/tex]

[tex]\frac{r}{2} \frac{\partial^{2}c}{\partial r^{2}} + \frac{\partial c}{\partial r} = \frac{r \lambda}{2}[/tex]

Let u = r/2 and you should be able to get it into the form of [tex]x \frac{d^2 y}{dx^2} + \frac{dy}{dx} = \frac{d}{dx} (x \frac{dy}{dx})[/tex]
 
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

[tex]J_0(\lambda{r}) = \frac{\sin(\lambda{r})}{\lambda{r}}[/tex]
[tex]Y_0(\lambda{r}) = -\frac{\cos(\lambda{r})}{\lambda{r}}[/tex]

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

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

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

The initial condition is [tex]c(r,0)=g(r)[/tex]

I first apply the initial condition to obtain

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

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

[tex] c(b,t)=\frac{g(b)}{J_0(\lambda{b})}e^{-\alpha\lambda^2t}J_0(\lambda{b})}=1[/tex]

[tex] -\alpha\lambda^2{t}=\ln(\frac{1}{g(b)})[/tex]

Therefore the solution is

[tex] c(r,t)=g(r)e^{\ln\frac{1}{g(b)}}[/tex]

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

[tex] c(r,t)=g(r)[/tex]

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

[tex]c(0,t)=0[/tex] gives me

[tex]De^{\alpha\lambda^2t}=0[/tex]

and the second boundary condition [tex]c(b,t)=1[/tex] gives

[tex]De^{\alpha\lambda^2t}J_0(\lambda{r})=1[/tex]

I don't know how this could be solved. It could be that my boundary conditions are incorrect.
 
Last edited:

Similar threads

Replies
13
Views
4K
Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K