What is solved where

Which equation pdemagic solves depends on the domain. This page gives the overview. Four pages, one for each family of domains, state the exact forms that are taken.

The families of domains

Family

Classes

What bounds the domain

Page

Free space and periodic boxes

pm.FreeSpace, pm.Space

Nothing: a condition at infinity along free directions, repetition along periodic ones. Both can be mixed: a slab, a wire.

In free space and on periodic boxes

Boxes with walls

pm.Box

Two faces along each coordinate that is not periodic, with a condition on each.

On boxes with walls

Round domains

pm.Disk, pm.Ball, pm.Cylinder

The surface, with a condition on it, or with vacuum outside. Disks, rings, balls, shells, and cylinders that are solid or hollow.

On round domains

Shapes in the plane

pm.Region

Closed curves of lines and arcs, with a condition on each piece. Holes and corners are taken.

On shapes in the plane

The kinds of equations

“Partly” means that the family takes some forms of the kind, or takes it on some of its domains. The page of the family says which.

Kind of equation

Free and periodic

Boxes

Round domains

Regions

Stationary, one unknown

Poisson and Laplace: \(\nabla^2 u = f\)

yes

yes

yes

yes

Screened Poisson: \(\nabla^2 u - \kappa^2 u = f\)

yes

yes

yes

yes

Helmholtz: \(\nabla^2 u + k^2 u = f\)

yes

yes

yes

yes

First derivatives: diffusion with drift

partly

yes

no

yes

A mixed derivative

partly

yes

no

yes

Coefficients that vary: a medium \(\nabla\cdot(\varepsilon\nabla u)\), a potential

yes

yes

partly

yes

The plate equation: \(a\,\nabla^4 u + b\,\nabla^2 u + c\,u = f\)

partly

yes

no

partly

Other equations above the second order

partly

no

no

no

A nonlinear term in the unknown

yes

yes

yes

yes

Poisson around conductors and dielectrics

partly

no

no

no

In time, one unknown

Heat, drift, decay: \(u_t = a\,\nabla^2 u + \mathbf{b}\cdot\nabla u + c\,u + f\)

yes

yes

partly

yes

Schrödinger: \(i\,u_t = -\tfrac12\nabla^2 u\)

yes

yes

yes

yes

Waves: \(u_{tt} + \gamma\,u_t = c^2\nabla^2 u - m^2 u + f\)

yes

yes

yes

yes

Other linear equations with constant coefficients

yes

no

no

no

Coefficients that vary, first order in time

partly

yes

partly

partly

Nonlinear terms, first order in time

partly

yes

partly

partly

Nonlinear terms, second order in time

partly

yes

partly

partly

Systems

Stationary systems

partly

no

no

yes

Systems in time

partly

partly

partly

partly

Eigenproblems

The lowest eigenvalues and eigenfunctions

yes

partly

partly

yes

Equations of third and higher order in time are solved nowhere, nor are equations with a derivative in time of a derivative in space.

How to read the pages

Each page of a family has the same sections: stationary equations, equations in time, systems, eigenproblems, conditions. A table in each names the form that is taken, what it covers, and the method that the plan names for it.

  • The form is exact. An equation is taken if it can be brought to the form by moving terms from one side to the other. How you arrange it is up to you. \(f\) stands for everything that holds no unknown: the source.

  • Constants and functions. A letter without an argument, as \(a\), is a number. One with an argument, as \(c(\mathbf{x})\), may vary in space.

  • Formulas or arrays. Sources, coefficients, initial states and boundary values are sympy expressions in the coordinates, or arrays given as pm.GridData, unless a page says otherwise. Every other symbol must be replaced by a number first.

  • Real or complex. Unknowns may be real or complex. Where coefficients must be real, the page says so.

  • The method is the value of plan.method.kind. The page of the methods of a plan describes each, with its parameters.

  • Everything else is refused. A problem outside these forms raises UnsupportedProblemError, with a message that names what was found. The page of known limits lists what is refused, and what is solved with less than full accuracy.

How accurate the methods are is on the page How accurate it is.

See also: Domains: the families, and how to choose and Problems, unknowns and equations.