Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Give initial conditions or initial solution

`setInitialConditions(model,u0)`

`setInitialConditions(model,u0,ut0)`

`setInitialConditions(___,RegionType,RegionID)`

`setInitialConditions(model,results)`

`setInitialConditions(model,results,iT)`

`ic = setInitialConditions(___)`

`setInitialConditions(___,`

sets initial conditions on a geometry region using any of the arguments in the
previous syntaxes.`RegionType`

,`RegionID`

)

returns a handle to the initial conditions object.`ic`

= setInitialConditions(___)

To ensure that the model has the correct

`TimeDependent`

property setting, if possible specify coefficients before setting initial conditions.To avoid assigning initial conditions to a wrong region, ensure that you are using the correct geometric region IDs by plotting and visually inspecting the geometry.