How do I get edges for a given boundary segment in PDE Toolbox?

5 ビュー (過去 30 日間)
Paul Constantine
Paul Constantine 2011 年 7 月 1 日
I have created a geometry, set boundary conditions, and generated a mesh with pdetool. I have exported these quantities to the workspace in the variables g, b, p, e, and t.
In boundary mode in pdetool, one can view numeric labels associated with each boundary segment. Is there a way to get all the edges from the array e for a given boundary segment?
Note, the function pdesde will get edges associated with a subdomain, but I only have one subdomain. I need edges associated with a boundary segment.
Thanks in advance, Paul

採用された回答

Paul Constantine
Paul Constantine 2011 年 7 月 1 日
Aha. In the initmesh documentation:
"In the Edge matrix e, the first and second rows contain indices of the starting and ending point, the third and fourth rows contain the starting and ending parameter values, the fifth row contains the edge segment number, and the sixth and seventh row contain the left- and right-hand side subdomain numbers."
Just another case of RTFM.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral PDEs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by