Main Content

Equations You Can Solve Using PDE Toolbox

Partial Differential Equation Toolbox™ solves scalar equations of the form

m 2 u t 2 + d u t · ( c u ) + a u = f

and eigenvalue equations of the form

· ( c u ) + a u = λ d u or · ( c u ) + a u = λ 2 m u

For scalar PDEs, there are two choices of boundary conditions for each edge or face:

  • Dirichlet — On the edge or face, the solutionusatisfies the equation

    hu=r

    wherehandrcan be functions of space (xy,and, in 3-D case,z), the solutionu,and time. Often, you takeh= 1, and setrto the appropriate value.

  • Generalized Neumann boundary conditions — On the edge or face the solutionusatisfies the equation

    n · ( c u ) + q u = g

    n is the outward unit normal.qandgare functions defined on ∂Ω, and can be functions ofxy,and, in 3-D case,z,the solutionu,and, for time-dependent equations, time.

The toolbox also solves systems of equations of the form

m 2 u t 2 + d u t · ( c u ) + a u = f

and eigenvalue systems of the form

· ( c u ) + a u = λ d u or · ( c u ) + a u = λ 2 m u

A system of PDEs withNcomponents isNcoupled PDEs with coupled boundary conditions. Scalar PDEs are those withN= 1,meaning just one PDE. Systems of PDEs generally meansN> 1. The documentation sometimes refers to systems as multidimensional PDEs or as PDEs with a vector solutionu. In all cases, PDE systems have a single geometry and mesh. It is onlyN,the number of equations, that can vary.

The coefficientsmdca,andfcan be functions of location (xy,and, in 3-D,z), and, except for eigenvalue problems, they also can be functions of the solutionuor its gradient. For eigenvalue problems, the coefficients cannot depend on the solutionuor its gradient.

For scalar equations, all the coefficients exceptcare scalar. The coefficientcrepresents a 2-by-2 matrix in 2-D geometry, or a 3-by-3 matrix in 3-D geometry. For systems ofNequations, the coefficientsmd,andaareN-by-Nmatrices,fis anN-by-1 vector, andcis a 2N-by-2Ntensor (2-D geometry) or a 3N-by-3Ntensor (3-D geometry). For the meaning of c u ,seec Coefficient for specifyCoefficients.

When bothmanddare0,the PDE is stationary. When eithermordare nonzero, the problem is time-dependent. When any coefficient depends on the solutionuor its gradient, the problem is called nonlinear.

For systems of PDEs, there are generalized versions of the Dirichlet and Neumann boundary conditions:

  • hu=rrepresents a matrixhmultiplying the solution vectoru,and equaling the vectorr.

  • n · ( c u ) + q u = g . For 2-D systems, the notation n · ( c u ) means theN1矩阵(i,1)-component

    j = 1 N ( cos ( α ) c i j 1 1 x + cos ( α ) c i j 1 2 y + sin ( α ) c i j 2 1 x + sin ( α ) c i j 2 2 y ) u j

    where the outward normal vector of the boundary n = ( cos ( α ) sin ( α ) ) .

    For 3-D systems, the notation n · ( c u ) means theN-by-1 vector with (i,1)-component

    j = 1 N ( sin ( φ ) cos ( θ ) c i j 1 1 x + sin ( φ ) cos ( θ ) c i j 1 2 y + sin ( φ ) cos ( θ ) c i j 1 3 z ) u j + j = 1 N ( sin ( φ ) sin ( θ ) c i j 2 1 x + sin ( φ ) sin ( θ ) c i j 2 2 y + sin ( φ ) sin ( θ ) c i j 2 3 z ) u j + j = 1 N ( cos ( θ ) c i j 3 1 x + cos ( θ ) c i j 3 2 y + cos ( θ ) c i j 3 3 z ) u j

    where the outward normal vector of the boundary n = ( sin ( φ ) cos ( θ ) sin ( φ ) sin ( θ ) cos ( φ ) ) .

    For each edge or face segment, there are a total ofNboundary conditions.

Related Topics