Create Boundary Condition Matrix from PDEModel geometry

I am trying to solve a PDE using the PDE toolbox. It is complex and nonlinear, and due to a possible bug
I need to use the legacy function adaptmesh().
However, adaptmesh() appears to require boundary conditions in the form of a Boundary Condition Matrix, which is not compatible with the current methods (<http://www.mathworks.com/help/pde/ug/steps-to-specify-a-boundary-conditions-object.html)>.
Is there a way to automatically translate the boundary conditions from applyBoundaryCondition() to a Boundary Condition Matrix?

Antworten (1)

Alan Weiss
Alan Weiss am 21 Jul. 2016

0 Stimmen

The easiest way to create a boundary matrix is to export it from the PDE app. As far as I know, there is no easy way to transfer a boundary condition from the recommended workflow to the legacy workflow.
You can also write a function to represent boundary conditions, though it is not nearly as nice a syntax as the recommended workflow.
Good luck, and I apologize for the bug.
Alan Weiss
MATLAB mathematical toolbox documentation

Gefragt:

am 21 Jul. 2016

Beantwortet:

am 21 Jul. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by