Diffusion equation in sperical coordinates

AI Thread 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 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Thread 'Recovering Hamilton's Equations from Poisson brackets'
The issue : Let me start by copying and pasting the relevant passage from the text, thanks to modern day methods of computing. The trouble is, in equation (4.79), it completely ignores the partial derivative of ##q_i## with respect to time, i.e. it puts ##\partial q_i/\partial t=0##. But ##q_i## is a dynamical variable of ##t##, or ##q_i(t)##. In the derivation of Hamilton's equations from the Hamiltonian, viz. ##H = p_i \dot q_i-L##, nowhere did we assume that ##\partial q_i/\partial...
Back
Top