Topics¶
Each of these pages explains one concept: what it is, how to think about it, and how it looks in a few short examples. They can be read in any order, and each stands on its own. For a task and its steps, see the recipes. To look something up, see the reference.
Stating a problem¶
Problems, unknowns and equations: how a problem is written with sympy, and what may stand in an equation.
Domains: the families of domains, and how to choose among them.
Free space and periodic directions: domains without walls, in any number of dimensions.
Boxes with walls: an interval, a rectangle, a box, with a condition on each face.
Disks, rings, balls, shells and cylinders: round domains, with vacuum outside or with a condition on the surface.
Shapes in the plane: a domain that you draw from lines and arcs, with holes and corners.
Boundary conditions: the value, the slope, or a mix of both, on a face or a piece of a boundary.
Data from arrays: a source, a coefficient or an initial state as an array instead of a formula.
Bodies: conductors and dielectrics with sharp surfaces.
Kinds of problems¶
Stationary equations: Poisson’s equation and its relatives, which have no time.
Waves of one frequency: the Helmholtz equation, in free space, in a medium and between walls.
Media and potentials: coefficients that vary from place to place.
Nonlinear stationary equations: Newton’s method, and which solution it finds.
Beams and plates: equations of fourth order, with two conditions on each face.
Problems in time: heat, waves and the Schrödinger equation, which are propagated exactly.
Nonlinear equations in time: terms that are stepped, their tolerance and their diagnostics.
Eigenproblems: bound states: the lowest eigenvalues of an operator, in free space and on periodic domains.
Modes of cavities, drums and waveguides: eigenproblems with boundary conditions.
Systems of equations: several unknowns at once.
Complex unknowns: what changes when a solution is complex, and where that works.
The solve and its result¶
The planner and its plan: what pdemagic decides for you, and how to read, change and keep it.
Accuracy and diagnostics: how a solution reports how far it can be trusted.
Solutions: the arrays, the grid, values at any point, and files.
Plotting: pictures and films of a solution.