Message Boards Message Boards

0
|
2812 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Implement "nested" derivatives and cylindrical coordinates?

Posted 2 years ago

Hello, I am looking to solve the PDE $$ \frac{1}{r} \frac{\partial}{\partial r} \left( r \frac{\partial T}{\partial r} \right) = \frac{1}{\alpha} \frac{\partial T}{\partial t}$$ in Mathematica, but I can't figure out how to input the $ \frac{\partial}{\partial r}\left( r \frac{\partial T}{\partial r} \right) $ part. Is it correct to nest the derivatives like below?

(1/r) * D[r * D[T[r,t], r], r] - (1/\[Alpha][r]) * D[T[r,t], t] == 0

Furthermore, how do I indicate to Mathematica that I am working in cylindrical coordinates instead of Cartesian?

Thanks.

POSTED BY: Daniela Sechen

If you want to go to cylindrical without opening a text book, Mathematica does it for you for the Div and Grad operators, when you specify the operator what coordinate system to use. see the basic examples of the reference pages.

https://reference.wolfram.com/language/ref/Div.html

https://reference.wolfram.com/language/ref/Grad.html

in your above unless you assume cylindrical symmetry, since your already have the derivative form the only thing missing seems to be a independent theta variable.

POSTED BY: Jack I Houng
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract