Create Boundary Condition Matrix from PDEModel geometry
Show older comments
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?
Answers (1)
Alan Weiss
on 21 Jul 2016
0 votes
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
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!