Main Content

createpde

Create a PDE model

Description

model = createpde(N) returns a PDE model object for a system of N equations. A complete PDE model object contains a description of the problem you want to solve, including the geometry, mesh, and boundary conditions.

example

model = createpde returns a PDE model object for one equation (a scalar PDE). This syntax is equivalent to model = createpde(1) and model = createpde().

example

Examples

collapse all

Create a model for a general linear or nonlinear single (scalar) PDE.

model = createpde
model = 
  PDEModel with properties:

           PDESystemSize: 1
         IsTimeDependent: 0
                Geometry: []
    EquationCoefficients: []
      BoundaryConditions: []
       InitialConditions: []
                    Mesh: []
           SolverOptions: [1×1 pde.PDESolverOptions]

Create a PDE model for a system of three equations.

model = createpde(3)
model = 
  PDEModel with properties:

           PDESystemSize: 3
         IsTimeDependent: 0
                Geometry: []
    EquationCoefficients: []
      BoundaryConditions: []
       InitialConditions: []
                    Mesh: []
           SolverOptions: [1×1 pde.PDESolverOptions]

Input Arguments

collapse all

Number of equations, specified as a positive integer. You do not need to specify N for a model where N = 1.

Example: model = createpde

Example: model = createpde(3);

Data Types: double

Output Arguments

collapse all

PDE model, returned as a PDEModel object.

Example: model = createpde(2)

Version History

Introduced in R2015a

expand all