Second Fick's law with nonconstant diffusion coefficient

AI Thread Summary
The discussion focuses on solving a modified version of the second Fick's law in nondimensional spherical coordinates, where the diffusion coefficient is variable with time and radius. The equation presented involves a time derivative and spatial derivatives, along with specific initial and boundary conditions. Participants express skepticism about the feasibility of finding an analytic solution, suggesting that numerical methods are more appropriate. One participant recommends converting the equation into a set of ordinary differential equations (ODEs) using the method of lines and solving them numerically in FORTRAN with a stiff integration package. The original poster expresses gratitude for this suggestion and plans to develop a routine based on it.
mabiondi
Messages
2
Reaction score
0
Hello everybody.
I should solve a modified version of second Fick's law in nondimensional spherical coordinates; t is the time and rho [0,1] the nondimensional radius. In this equation the diffusion coefficient is vraiable with t and rho.

The equation is the following:

dC/dt = (1/rho^2)*d/d(rho)(rho^2*D(rho,t)*dC/d(rho))

Initial conditions:
C(0,rho) = a*rho^4 + b*rho^2 -(a + b);

Boundary conditions:
dC(t,0)/d(rho) = 0
C(t,1) = 0

Is it possible to solve such an equation by Laplace transforms?
Alternatively, is there a user friendly tool for numerical solution of a PDE like this?

Thanks in advance, cheers.
Marco
 
Engineering news on Phys.org
I don't think an analytic solution exists. It would have to be solved numerically. I would just convert it to a set of ODE's using the method of lines, and then solve the equations numerically in FORTRAN using an automatic (stiff) integration package.

Chet
 
  • Like
Likes mabiondi
Thanks a lot for the suggestion, I really appreciate it. I'll try to develop a routine using MOL.
Cheers,
Marco
 
Back
Top