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.

createpde

Syntax

model = createpde(N)
thermalmodel = createpde('thermal',ThermalAnalysisType)
structuralmodel = createpde('structural',StructuralAnalysisType)

Description

example

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

thermalmodel = createpde('thermal',ThermalAnalysisType) returns a thermal analysis model for the specified analysis type.

example

structuralmodel = createpde('structural',StructuralAnalysisType) returns a structural analysis model for the specified analysis type. This model lets you solve small-strain linear elasticity problems.

Examples

collapse all

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: [1x1 PDESolverOptions]

Create a model for a single (scalar) PDE.

model = createpde
model = 
  PDEModel with properties:

           PDESystemSize: 1
         IsTimeDependent: 0
                Geometry: []
    EquationCoefficients: []
      BoundaryConditions: []
       InitialConditions: []
                    Mesh: []
           SolverOptions: [1x1 PDESolverOptions]

Create a model for a steady-state thermal problem.

thermalmodel = createpde('thermal','steadystate')
thermalmodel = 
  ThermalModel with properties:

               AnalysisType: 'steadystate'
                   Geometry: []
         MaterialProperties: []
                HeatSources: []
    StefanBoltzmannConstant: []
         BoundaryConditions: []
          InitialConditions: []
                       Mesh: []
              SolverOptions: [1x1 PDESolverOptions]

Create a model for a transient thermal problem.

thermalmodel = createpde('thermal','transient')
thermalmodel = 
  ThermalModel with properties:

               AnalysisType: 'transient'
                   Geometry: []
         MaterialProperties: []
                HeatSources: []
    StefanBoltzmannConstant: []
         BoundaryConditions: []
          InitialConditions: []
                       Mesh: []
              SolverOptions: [1x1 PDESolverOptions]

Create a static structural model for solving a solid (3-D) problem.

staticStructural = createpde('structural','static-solid')
staticStructural = 
  StructuralModel with properties:

            AnalysisType: 'static-solid'
                Geometry: []
      MaterialProperties: []
               BodyLoads: []
      BoundaryConditions: []
    ReferenceTemperature: []
                    Mesh: []

Create a transient structural model for solving a plane-stress (2-D) problem.

transientStructural = createpde('structural','transient-planestress')
transientStructural = 
  StructuralModel with properties:

          AnalysisType: 'transient-planestress'
              Geometry: []
    MaterialProperties: []
             BodyLoads: []
    BoundaryConditions: []
         DampingModels: []
     InitialConditions: []
                  Mesh: []
         SolverOptions: [1x1 PDESolverOptions]

Create a modal analysis structural model for solving a plane-strain (2-D) problem.

modalStructural = createpde('structural','modal-planestrain')
modalStructural = 
  StructuralModel with properties:

          AnalysisType: 'modal-planestrain'
              Geometry: []
    MaterialProperties: []
    BoundaryConditions: []
                  Mesh: []

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

Type of thermal analysis, specified as 'steadystate' or 'transient':

  • 'steadystate' creates a steady-state thermal model. If you do not specify AnalysisType for a thermal model, createpde creates a steady-state model.

  • 'transient' creates a transient thermal model.

Example: model = createpde('thermal','transient')

Data Types: char | string

Type of analysis, specified as one of the following values.

For static analysis, use these values:

  • 'static-solid' to create a structural model for static analysis of a solid (3-D) problem.

  • 'static-planestress' to create a structural model for static analysis of a plane-stress problem.

  • 'static-planestrain' to create a structural model for static analysis of a plane-strain problem.

For transient analysis, use these values:

  • 'transient-solid' to create a structural model for transient analysis of a solid (3-D) problem.

  • 'transient-planestress' to create a structural model for transient analysis of a plane-stress problem.

  • 'transient-planestrain' to create a structural model for transient analysis of a plane-strain problem.

For modal analysis, use these values:

  • 'modal-solid' to create a structural model for modal analysis of a solid (3-D) problem.

  • 'modal-planestress' to create a structural model for modal analysis of a plane-stress problem.

  • 'modal-planestrain' to create a structural model for modal analysis of a plane-strain problem.

Example: model = createpde('structural','static-solid')

Data Types: char | string

Output Arguments

collapse all

PDE model , returned as a PDEModel object.

Example: model = createpde(2)

Thermal model, returned as a ThermalModel object.

Example: thermalmodel = createpde('thermal')

Structural model, returned as a StructuralModel object.

Example: structuralmodel = createpde('structural','static-solid')

Introduced in R2015a