How to solve diffusion equation in spherical coordinate using Matlab?
이전 댓글 표시
PDE toolbox in Matlab expects the equations in Cartesian coordinate. In this page it says what the general shape of the equations should be: https://nl.mathworks.com/help/pde/pde-coefficients.html
that is:

I want to solve the diffusion equations:

Thus, in my case m, a, and f are zero. If we are in Cartesian coordinate then d is one and c, the diffusion constant, is for example 0.001. However, I want to solve the equations in spherical coordinates. Here is a link to Laplacian in spherical coordinate:
How can I solve the diffusion equation in the spherical coordinates in Matlab? or How can I determine the matrix of coefficienct "c" in spherical coordinates?
댓글 수: 5
Torsten
2019년 2월 20일
You want to solve the equation only in r-direction (1-d) ?
MM2019
2019년 2월 20일
I want to solve it in 3d for r, phi, and theta.
Torsten
2019년 2월 20일
If you create the 3d-geometry as a sphere and solve the equation in Cartesian coordinates, it will work. Why do you want to solve the equation on a 3d block and solve the equation in spherical coordinates ?
Yashar
2019년 2월 20일
Rohit Jain
2023년 10월 3일
Hello,
Did you find a solution to your problem? I am working with a similar problem, could you please share something if that's possible?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Boundary Conditions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
