Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
pdemagic
pdemagic

First steps

  • First steps
    • pdemagic at a glance
    • Installation
    • A first problem: charges in free space
    • A heated plate: a box and its faces
    • Heat and waves: problems in time
    • What pdemagic decided: plans and accuracy
    • A shape of your own
    • Tones and states: eigenproblems
    • What to read next

Using pdemagic

  • Topics
    • Problems, unknowns and equations
    • Domains
    • Free space and periodic directions
    • Boxes with walls
    • Disks, rings, balls, shells and cylinders
    • Shapes in the plane
    • Boundary conditions
    • Data from arrays
    • Bodies
    • Stationary equations
    • Waves of one frequency
    • Media and potentials: coefficients that vary
    • Nonlinear stationary equations
    • Beams and plates
    • Problems in time
    • Nonlinear equations in time
    • Eigenproblems: bound states
    • Modes of cavities, drums and waveguides
    • Systems of equations
    • Complex unknowns
    • The planner and its plan
    • Accuracy and diagnostics
    • Solutions
    • Plotting
  • How-to guides
    • Give one condition for all faces
    • Give each face its own condition
    • Let waves out through a wall
    • Clamp a plate
    • Draw a shape with holes
    • Name the pieces of a boundary
    • Make one direction periodic
    • Use measured data as a source
    • Start from an array
    • Put a conductor in a field
    • Read what was decided
    • Get more digits
    • Choose the grid yourself
    • Choose the times that are recorded
    • Pick the solution that Newton’s method finds
    • What to do when a plan says NOT resolved
    • Set the number of threads
    • Reuse a plan
    • Evaluate a solution at a point
    • Get the arrays and the grid
    • Integrate a solution
    • Ask for more modes
    • Save and load a solution
    • Plot a section in three dimensions
    • Animate a solution
    • Draw into your own figure
  • Gallery
    • Two charges in the plane
    • Charges inside a disk
    • A charged sphere beside a block of glass
    • A heated plate
    • A plate with a hole
    • A ball with a hot cap
    • A screened charge
    • A lens of glass
    • Ions around a charged rod
    • A source from an array
    • A membrane on an L
    • A crystal that conducts askew
    • Two antennas
    • A waveguide with a ridge
    • Waves through a lens
    • A room with an open window
    • A harbour
    • A clamped plate
    • A cantilever
    • Two states of Bratu’s problem
    • Heat that spreads
    • A rod with a flame
    • Heat in a shape
    • A cooling disk
    • A plucked string
    • A flash of light
    • A struck drum
    • A wave through a slit
    • A damped string
    • A hump that sheds ripples
    • A wave that steepens
    • Solitons that pass
    • A soliton of light
    • A kink and an antikink
    • A kink at a free end
    • Patterns from a reaction
    • A reaction in a dish
    • A pulse between walls
    • A string on a bed that hardens
    • A cloud of ions between two plates
    • A cloud of ions in a dish
    • A front that advances
    • A quantum wave packet
    • States of an oscillator
    • Hydrogen
    • A double well
    • A particle in a stadium
    • A drum
    • A round drum
    • An L-shaped drum
    • The tones of a room
    • A ball that rings
    • A plate that rings
  • Questions that come up

Reference

  • Reference
    • Problems and operators
    • Domains
    • Regions, curves and shapes
    • Data and bodies
    • Planning and solving
    • Solutions
    • Errors
    • What is solved where
    • In free space and on periodic boxes
    • On boxes with walls
    • On round domains
    • On shapes in the plane
    • The methods of a plan
    • Diagnostics
    • How accurate it is
    • Known limits
  • Methods
    • Poisson’s equation by Fourier convolution
    • Linear equations with constant coefficients
    • The Helmholtz equation in free space
    • Boxes with boundary conditions
    • Round domains with boundary conditions
    • Iteration between walls
    • Equations of fourth order on a box
    • The modes of boxes and round domains
    • Modes that are no products
    • Shapes in the plane
    • Shapes with corners
    • Grids and arrays on a shape
    • Systems on a shape
    • Nonlinear equations on a shape
    • Shapes in the plane, in time
    • The modes of a shape
    • Poisson’s equation in disks and balls
    • Poisson’s equation in a finite cylinder
    • Equations whose coefficients vary in space
    • Nonlinear stationary equations
    • Poisson’s equation with conductors and sharp-surfaced bodies
    • Linear equations in time
    • Nonlinear equations in time
    • Systems of linear equations
    • Systems between walls
    • The lowest eigenvalues
  • Glossary
  • Release notes
    • After 0.1.0, not published yet
    • 0.1.0

The project

  • The project
    • Architecture
    • Roadmap
    • Backlog
    • Ideas
    • History
    • Decisions
    • Milestones
      • M30. A backlog, and room for several sessions
      • M31. Checks in less time
      • M32. A comparison of discretizations for general shapes, and the rights settled
      • M33. Shapes in the plane: a first solve
      • M34. Time on shapes in the plane
      • M35. General linear equations on shapes in the plane
      • M36. Nonlinear stationary equations on shapes in the plane
      • M37. The documentation says what the project does
      • M38. Terms that are stepped in time on shapes in the plane
      • M39. A closed project: all rights reserved
      • M40. A mesh that shrinks towards corners
      • M41. A first version: 0.1.0
      • M42. Derivatives in terms that are stepped, on a shape
      • M43. A medium and a potential in time on a shape, propagated exactly
      • M44. A density in time on a shape
      • M45. Drift in the modes of a shape
      • M46. Values of a solution anywhere, on a shape
      • M47. Values of a solution anywhere, on grids
      • M48. Solutions in files
      • M49. Plots in balls and cylinders
      • M50. Solutions for other tools
      • M51. Integrals of a solution
      • M52. Arrays as data on a shape
      • M53. Systems on a shape, in time
      • M54. Stationary systems on a shape
      • M55. The lowest states of an operator
      • M56. Bound states in free space
      • M57. The modes of a shape
      • M58. The lowest modes of a shape, by iteration
      • M59. The modes of a box and of a round domain
      • M60. Many modes at once, and a waveguide
      • M61. Potentials that separate: hydrogen in a ball
      • M62. Spectral elements: a factorization that uses what the matrix is
      • M63. Coefficients that vary, between walls
      • M64. Nonlinear stationary equations, between walls
      • M65. Mixed derivatives, between walls
      • M66. The plate equation, between walls
      • M67. Modes between walls, by iteration
      • M68. The documentation, organized by what a reader needs
      • M69. What the rebuild of the documentation found
      • M70. Reaction and diffusion between walls
      • M71. Dispersion of higher order in free space
      • M72. A review of the architecture, and Newton’s method written once
      • M73. One driver in time over the modes
      • M74. Nonlinear waves between walls
      • M75. One way to a path
      • M76. One reading of an equation
      • M77. More systems in the modes of a domain
      • M78. Why an unknown that does not diffuse loses digits: a correction
      • M79. The checks of CI side by side, and the examples run in less time
      • M80. The tests in less time: what a test need not do
      • M81. Stepping between walls without the loss of order
      • M82. Systems in modes with an equation of second order in time
      • M83. Constraints in systems between walls and on round domains
      • M84. On a region: an unknown that does not diffuse, and a constraint
    • Workflow
    • Benchmarks
    • Discretizations for general shapes
Back to top
View this page

What to read next¶

You have stated problems, solved them, read their plans and judged their results. This page says how the rest of the documentation is organised, so that you find what you need without reading all of it.

Four kinds of pages¶

The documentation has four kinds of pages, and each answers a different question.

You want to

Read

It gives you

learn pdemagic from the start

the tutorial, which you have finished

one step after another

understand a subject

Topics

one concept per page, explained with short examples

get a task done

How-to

recipes: a task, its steps, a complete example

look something up

Reference

every class, function, method and diagnostic, in full

Topics: when you want to understand¶

A topic page explains what something is and how to think about it. Good ones to start with, by what you want to solve:

  • Where the problem lives: Domains compares the families and helps you choose.

  • What holds at the walls: Boundary conditions.

  • An equation at rest: Stationary equations.

  • An equation in time: Problems in time.

  • Tones and states: Eigenproblems.

  • Trusting the result: The planner and its plan and Accuracy and diagnostics.

  • Using the result: Solutions and Plotting.

The list of topics has all of them.

How-to: when you have a task¶

A recipe names a task in its title and takes you through it. Go to the list of recipes when you know what you want to do and not yet how. Questions that come up answers the short ones, and the glossary explains the words.

Reference: when you look something up¶

  • The reference has every class and function of the Python package, with all parameters.

  • What is solved where is the table of equations and domains. Look there first to see whether your problem is covered.

  • Known limits says what does not work today.

Gallery: when you want to see¶

The gallery shows problems with their pictures: charges, heat, waves, light, quantum mechanics, patterns. Each example is a page with the complete code, which you can copy and change. It is the quickest way to find a problem that is close to yours.

Methods: when you want to know how¶

pdemagic chooses the method for you, and you can use it without knowing how the method works. The pages about the methods say how each problem is solved, how accurate the method is, and where its limits are.

A way through¶

If you have a problem of your own and do not know where to begin, take this way:

  1. Find an example near your problem in the gallery, and run it.

  2. Check in What is solved where that your equation is solved on your domain.

  3. Read the topic page of your domain and of your kind of equation.

  4. State your problem, print its plan, and read the notes.

  5. Solve it, and look at the diagnostics before you look at the picture.

Next
Topics
Previous
Tones and states: eigenproblems
Copyright © 2026, Matthias Baer
Made with Sphinx and @pradyunsg's Furo
On this page
  • What to read next
    • Four kinds of pages
    • Topics: when you want to understand
    • How-to: when you have a task
    • Reference: when you look something up
    • Gallery: when you want to see
    • Methods: when you want to know how
    • A way through