FUNCTION REFERENCE

pde.PDEModel.applyBoundaryCondition

Assign Dirichlet, Neumann or mixed boundary conditions to edges of a pde.PDEModel.

Assign Dirichlet, Neumann or mixed boundary conditions to edges of a pde.PDEModel.

Syntax

applyBoundaryCondition(model, 'dirichlet', 'Edge', edges, 'u', u)

Syntax

model.applyBoundaryCondition('neumann', 'Edge', edges, 'g', g, 'q', q)

In a mixed condition, 'u' and 'EquationIndex' constrain selected equations and 'g' and 'q' specify the Neumann condition on the remaining equations.

Example

m = createpde(2); bc = m.applyBoundaryCondition('mixed', 'Edge', 1, 'u', 0, 'EquationIndex', 1, 'g', [0; 1]); bc.EquationIndex   % 1

Differences from MATLAB: Only 2-D 'Edge' regions are supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.