Group Abstract Group Abstract

Message Boards Message Boards

Partial differential equation (Diffusion equation in spherical coordinates)

Posted 10 years ago
Attachments:
POSTED BY: Dodji Cohovi

I don't get anything from DSolve, but NDSolve gives a solution with proper syntax:

With[{difcoefr = 1, cmo = 1, rin = 1, rout = 2, cmeq = 1}, 
 NDSolve[{D[cm[t, r], t] == (1/r)^2*D[difcoefr^2 D[cm[t, r], r], r], 
   cm[0, r] == cmo, 
   cm[t, rout] == cmeq, (D[cm[t, r], r] /. r -> rin) == 0}, 
  cm, {t, 0, 1}, {r, rin, rout}]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard