MATLAB: How to label faces and edges of the model using dsg in pde toolbox

pde

I have constructed a two-dimensional model with multiple subdomains, each subdomain has different coefficients for the underlying PDE. Sometimes there are four faces, and sometimes there are five, with the one extra subdomain having its own set of coefficients again. How do I make sure that the face and edge labels refer to the same subdomain with or without the extra subdomains, so that specifyCoefficients() and applyBoundaryConditions() can assign the correct set to the corresponding region using the face and edge labels respectively?

Best Answer

The only way that I know to make the labels refer to things reproducibly is to construct your geometry using a parametrized geometry function.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
Related Question