FUNCTION REFERENCE

pde.PDEModel.specifyCoefficients

Assign PDE equation coefficients to a pde.PDEModel.

Assign PDE equation coefficients to a pde.PDEModel.

Syntax

specifyCoefficients(model, 'm', m, 'd', d, 'c', c, 'a', a, 'f', f)

Syntax

assignment = model.specifyCoefficients('m', m, 'd', d, 'c', c, 'a', a, 'f', f, 'Face', faceIDs)

Sets the coefficients of the general second-order PDE m*u_tt + d*u_t - div(c*grad(u)) + a*u = f on all faces by default. Use 'Face' to assign coefficients to selected faces. Later assignments override earlier ones on the same face.

Example

m = createpde; a = m.specifyCoefficients('m', 0, 'd', 0, 'c', 1, 'a', 0, 'f', 2, 'Face', 1); a.RegionID   % 1

Differences from MATLAB: 3-D 'Cell' regions are unsupported.

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