MATLAB: How to specify multiple boundary conditions for the same boundary in MATLAB R2012a PDE Toolbox

Partial Differential Equation Toolbox

How do I specify multiple boundary conditions for the same boundary in MATLAB R2012a PDE Toolbox?

Best Answer

The ability to specify Dirichlet and Neumann BC’s on the same boundary for the same equation is not available in MATLAB. If both are specified, one of them will be ignored when formulating the discretized system equations.  A possible work around for this issue is to rewrite the PDE system in terms of more equations and variables until only one boundary condition per variable is needed.