FUNCTION REFERENCE

pde.PDEModel.setInitialConditions

Assign initial value and initial time derivative on a time-dependent pde.PDEModel.

Assign initial value and initial time derivative on a time-dependent pde.PDEModel.

Syntax

setInitialConditions(model, u0)

Syntax

model.setInitialConditions(u0, ut0)

Sets the initial solution u0 (and optional initial velocity ut0 for hyperbolic PDEs) on model.

Example

m = createpde; m.geometryFromEdges(decsg([3;4;0;1;1;0;0;0;1;1])); m.setInitialConditions(0); ~isempty(m.InitialConditions)   % true

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