# How can I add an edge to my model?

19 ビュー (過去 30 日間)
Maximilian Schönau 2021 年 3 月 2 日

I started using the Partial Differential Equation Toolbox and after generating a basic geometry, I wanted to add edges to it. Hower, there is only a function for adding a vertex and one for adding faces. Why do those two functions exist, but not one to add an edge?
Below my geometry, I want to have an edge at the bottom and the top between the two rectangles.
model = createpde("thermal","transient-axisymmetric");
Length = 1;
outerThickness = 0.1;
innerThickness = 0.4;
Thickness = outerThickness + innerThickness;
leftEdges = [-innerThickness/2 -innerThickness/2 -Thickness/2 -Thickness/2; ...
0 Length Length 0];
rightEdges = [innerThickness/2 innerThickness/2 Thickness/2 Thickness/2;...
0 Length Length 0];
shape = polyshape({rightEdges(1,:), leftEdges(1,:),}, ...
{rightEdges(2,:), rightEdges(2,:)});
% Convert shape to geometry
tr = triangulation(shape);
tnodes = tr.Points';
telements = tr.ConnectivityList';
geometryFromMesh(model,tnodes,telements);
##### 1 件のコメント-1 件の古いコメントを表示-1 件の古いコメントを非表示
Juan Peña 2021 年 9 月 11 日
Same here,
Trying to split a 3D cell with addFace, so I would have to generate a Face based on edges.
cheers!

サインインしてコメントする。

### 回答 (2 件)

SaiDileep Kola 2021 年 3 月 26 日
Check the discussion here if might be of any help
##### 0 件のコメント-2 件の古いコメントを表示-2 件の古いコメントを非表示

サインインしてコメントする。

Hafsa Nouhi 2022 年 3 月 28 日
Hello,
Did you found a solution? I have the same problem...
I want to add an edge in my geometry but I could not find how to implement it.
Thank you !

サインインしてコメントする。

### カテゴリ

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

### Community Treasure Hunt

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

Start Hunting!

Translated by