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

5 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Paul Constantine
Paul Constantine am 1 Jul. 2011
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.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by