This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

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.

Initial Conditions

Specify initial conditions

Set initial conditions using the setInitialConditions function. A PDE model stores initial conditions as a vector of GeometricInitialConditions objects in its InitialConditions property. After you set initial conditions, you can adjust or delete them anytime before solving the PDE. For details, see Set Initial Conditions and View, Edit, and Delete Initial Conditions.


findInitialConditionsLocate active initial conditions
setInitialConditionsGive initial conditions or initial solution


GeometricInitialConditions PropertiesInitial conditions over a region or region boundary
NodalInitialConditions PropertiesInitial conditions at mesh nodes


Programmatic Workflow

Set Initial Conditions

Set initial conditions for time-dependent problems or initial guess for nonlinear stationary problems.

View, Edit, and Delete Initial Conditions

Access and modify boundary condition assignments stored in the InitialConditions property of PDEModel by using the findInitialConditions function.