How to create 2D Polar (r, theta) mesh?
19 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Bjorn Gustavsson
2020-9-21
编辑:Bjorn Gustavsson
2020-9-22
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multibody Modeling 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!