You can use Partial Differential Equation Toolbox™ to solve linear and nonlinear second-order PDEs for stationary, time-dependent, and eigenvalue problems that occur in common applications in engineering and science.
A typical workflow for solving a general PDE or a system of PDEs includes the following steps:
Convert PDEs to the form required by Partial Differential Equation Toolbox.
Create a PDE model container specifying the number of equations in your model.
Defining 2-D or 3-D geometry and mesh it using triangular and tetrahedral elements with linear or quadratic basis functions.
Specify the coefficients, boundary and initial conditions. Use function handles to specify non-constant values.
Solve and plot the results at nodal locations or interpolate them to custom locations.
PDE Model Setup
|Add boundary condition to |
|Specify coefficients in a PDE model|
|Give initial conditions or initial solution|
|Assemble finite element matrices|
|Solve PDE specified in a PDEModel|
|Solve PDE eigenvalue problem specified in a PDEModel|
Solutions at Nodal and Custom Locations
PDE Model Properties
|BoundaryCondition Properties||Boundary condition for PDE model|
|CoefficientAssignment Properties||Coefficient assignments|
|GeometricInitialConditions Properties||Initial conditions over a region or region boundary|
|NodalInitialConditions Properties||Initial conditions at mesh nodes|
|PDESolverOptions Properties||Algorithm options for solvers|
|PDEVisualization Properties||PDE visualization of mesh and nodal results|
PDE Problem Setup
Workflow describing how to set up and solve PDE problems using Partial Differential Equation Toolbox.
Set Dirichlet and Neumann conditions for scalar PDEs and systems of PDEs. Use functions when you cannot express your boundary conditions by constant input arguments.
- Solve PDEs with Constant Boundary Conditions
- Solve PDEs with Nonconstant Boundary Conditions
- No Boundary Conditions Between Subdomains
- View, Edit, and Delete Boundary Conditions
- Identify Boundary Labels
Specify the coefficient f in the equation.
- c Coefficient for specifyCoefficients
- m, d, or a Coefficient for specifyCoefficients
- View, Edit, and Delete PDE Coefficients
Set initial conditions for time-dependent problems or initial guess for nonlinear stationary problems.
Solutions and Their Gradients
Plot 2-D and 3-D PDE solutions and their gradients using
Plot 2-D PDE solutions and their gradients using
quiver, and other MATLAB® functions.
Plot 3-D PDE solutions, their gradients, and streamlines using
quiver, and other MATLAB functions.
Dimensions of stationary, time-dependent, and eigenvalue results at mesh nodes and arbitrary locations.
Eigenvalue and Wave Problems
Find the eigenvalues and eigenmodes of a square domain.
Use command-line functions to find the eigenvalues and the corresponding eigenmodes of an L-shaped membrane.
Solve a standard second-order wave equation.
Compute reflected waves from an object illuminated by incident waves.
Finite Element Method and Partial Differential Equations
Types of scalar PDEs and systems of PDEs that you can solve using Partial Differential Equation Toolbox.
Transform PDEs to the form required by Partial Differential Equation Toolbox.
Description of the use of the finite element method to approximate a PDE solution using a piecewise linear function.