How to solve 2D heat equation for a sector of a circular disc using finite difference method?

7 次查看(过去 30 天)
I am starting off with Dirichlet boundaries. How do I generate a sector of a circular mesh ?
  6 个评论
J. Alex Lee
J. Alex Lee 2020-9-28
It's hard to read this code, but are you formulating finite differences in cartesian space, or in cylindrical space?
My suggestion was to formulate the heat equation in cylindrical coordinates and just use a "cartesian" meshgrid in rho-theta space. This may not be so great, because you'll get tiny mesh near center of circle.
Vignesh Ramakrishnan
I have used circular coordinates(for cylindrical, we have a height term, which I have not considered).
I don't have an issue with the mesh circle, but there is an unnecessary groove along theta=0.
The cartesian conversion is done, just prior to plotting.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometry and Mesh 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by