How to create 2D Polar (r, theta) mesh?

19 views (last 30 days)
Aman Jaiswal
Aman Jaiswal on 21 Sep 2020
Commented: Adam Danz on 22 Sep 2020
I want to create a 2D polar mesh for finite element analysis of droplet evaporation.
Similar to above image. Please give any suggestion on droplet evaporation also if you know something about it.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 21 Sep 2020
Edited: Bjorn Gustavsson on 22 Sep 2020
What's not good enough with something like this:
n_phi = 15
phi = linspace(0,pi/2,n_phi+1); % should give you 15+1 edges and 15 angular regions
n_r = 12;
r_min = 1;
r_max = 23;
r = linspace(r_min,r_max,n_r+1);
[Phi,R] = meshgrid(phi,r);
X = R.*cos(Phi);
Y = R.*sin(Phi);
That will give you the radial and angular mesh in R and Phi and their Cartesian coordinates in X and Y.
HTH
  4 Comments
Aman Jaiswal
Aman Jaiswal on 22 Sep 2020
So how can I perform finite element analysis using X and Y vectors you have created? Can you suggest any method in matlab or any tutorial.
Adam Danz
Adam Danz on 22 Sep 2020
I'm sure there are tutorials that Google would find if you searched for it.

Sign in to comment.

Categories

Find more on Multibody Modeling in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!