Create tetrahedral mesh out of figure

2 ビュー (過去 30 日間)
Ilja Verspohl
Ilja Verspohl 2018 年 7 月 11 日
回答済み: Ravi Kumar 2018 年 7 月 11 日
Hi, have a cylinder plot as a surface in a figure. I'd like to create a tetrahedral mesh for the cylinder. I used the cylinder function
if true
[X,Y,Z]=cylinder(R,N)
surf(X,Y,Z)
end
Thanks a lot!

採用された回答

Ravi Kumar
Ravi Kumar 2018 年 7 月 11 日
Assuming you are trying to use PDE Toolbox, you can use the multicylinder function to create cylinder geometry and mesh as shown below.
R = 0.1;
H = 0.5;
gm = multicylinder(R,H);
% Assign it to a generic PDE model and plot the geometry.
model = createpde;
model.Geometry = gm;
figure
pdegplot(model,'FaceLabels','on')
%Generate mesh and plot the mesh.
generateMesh(model)
figure
pdemesh(model);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by