How to create 2D Polar (r, theta) mesh?
19 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
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
Adam Danz
on 22 Sep 2020
I'm sure there are tutorials that Google would find if you searched for it.
See Also
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!