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

7 views (last 30 days)
I am starting off with Dirichlet boundaries. How do I generate a sector of a circular mesh ?
  6 Comments
J. Alex Lee
J. Alex Lee on 28 Sep 2020
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
Vignesh Ramakrishnan on 29 Sep 2020
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!