# Ideas Features that could be worth having, large and small, that are not packages yet. Nothing here is planned or promised. The page exists so that a thought is not lost, and so that the owner can pick from it. An idea becomes a package of the [backlog](backlog.md) when the owner wants it, or when a session finds that it is the right next step: then it gets an identifier, a size and a lane, and leaves this page. Anyone may add an idea. One line of what, and one of why. "Close" says how far the idea is from what exists. ## Small, and close | Idea | Why | Close | |---|---|---| | Fractional powers of the Laplacian, $(-\nabla^2)^{s} u$ | Anomalous diffusion, fractional Schrödinger equations. In a Fourier method it is one more symbol | On periodic boxes nearly free. In free space the kernel is new | | Convolution terms: $\int K(\mathbf{x}-\mathbf{y})\,u(\mathbf{y})\,d\mathbf{y}$ in an equation | Nonlocal diffusion, the Hartree term, neural fields | A product in Fourier space. Needs a way to write it | | The classified equation shown as a formula in the plan | A user sees what pdemagic understood, before it solves | The classification holds it | | `pm.explain(problem)`: why a problem is refused, and the nearest ones that are solved | A refusal becomes a hint | Builds on L4 | | Output at chosen times, and a stop when a condition holds | "Until the temperature at the centre falls below 1" | The propagators can stop anywhere | | Snapshots written to disk during a long solve, and a solve that resumes | Long runs survive an interruption | Builds on K7 | | A callback for progress, and a way to cancel | Notebooks, and the GUI later | | | Noise as a source in time | Stochastic heat and reaction equations | Stepped terms take any field. Needs a seed in the plan, and care with what convergence means | | A steady state found by running in time until nothing changes | A user without a good starting value for Newton's method | Everything exists. It is a loop and a criterion | | Ground states by propagation in imaginary time | The simplest eigen solver, and a check for F1 | It is a heat equation with a potential, which milestone 25 solves. Missing: the normalisation along the way | | Symmetry that is used: a problem that depends on the radius only is solved in one dimension | A ball in the time of a line | The planner would have to see it | | A scheme in time of stiff order five, or a correction of what is stepped at a wall that holds the unknown | Between walls the unknown that is held keeps an order between the third and the fourth where what is stepped is not zero at the wall (milestone 81). Its error stays at the tolerance, with more steps than a smooth problem needs | The scheme is one table of weights in `methods/exponential.rs`. A scheme of Luan and Ostermann takes eight evaluations of the term where this one takes five | | An estimate of the error of a step without a second pass | A step is taken three times, whole and in two halves: fifteen evaluations of the term, of which an embedded pair would save half | `exponential::controlled` | | Arrays in single precision on request | Half the memory, and the way to GPUs | The core computes in double precision throughout | | More shapes for bodies: torus, capsule, shapes joined and cut | Bodies without a mesh from elsewhere | `shapes.py` | | Named problems: `pm.examples.hydrogen()`, `pm.examples.gray_scott()` | A start for a newcomer, and cases for tests | The gallery holds them as text | | Units: quantities with dimensions in the problem, checked and scaled away | Catches mistakes before a solve, and numbers come back in units | sympy has units. The core would stay without | | A page that compares pdemagic with FEniCS, Dedalus, py-pde and Chebfun on shared problems | Honest placing, and a source of test cases | Documentation only | ## Medium | Idea | Why | Close | |---|---|---| | Integral equations on the boundary as a method for stationary equations with constant coefficients on smooth shapes, which the planner picks | Where they apply they need the fewest unknowns by far: 81 for twelve digits in the [comparison](shapes.md) of milestone 32 | The Fourier method for the source exists. Missing: a way to continue a source beyond the domain, and values close to the boundary | | Far fields and cross sections of scattering | What a scattering experiment measures | The outgoing solution of milestone 16 holds it. Builds on H11 | | Green's functions as a result: the response to a point source, for any solved operator | Teaching, and a building block for users | The kernels are there. Needs a way to ask | | Equations in the frequency domain from equations in time: the steady response to a periodic drive | Acoustics, optics | A Helmholtz problem per frequency | | The adjoint of a solve: gradients of a result with respect to coefficients and sources | Design and inverse problems, and coupling to machine learning | Linear solves are self-adjoint or nearly. Nonlinear and in time: a campaign | | Sweeps over parameters, in parallel, with the plan made once | The daily work of a physicist | Builds on K4 | | Incompressible flow on periodic boxes as a named problem, with pressure eliminated | Turbulence in two dimensions is a classic of spectral methods | Systems with constraints exist (milestone 15). Needs G1 to be written well | | Magnetostatics and eddy currents | The other half of electromagnetism | A vector potential: G1, then systems on bounded domains | | Linear elasticity | The standard problem of engineering | Vectors (G1), then systems on shapes (the rest of A4) | | Coupled problems on a body and around it: heat in a solid and in the fluid outside | Conjugate problems | H7 and A5 | | Layered media: a region whose pieces have different coefficients, with the right jump across the lines between them | Composite walls, optical fibres, a step in a potential | Spectral elements are there (milestone 33). Missing: a mesh that keeps the lines between the pieces, and a coefficient for each piece | | Coordinates the user defines: a mapping from a box to the domain | Curved channels with one method, on a grid that follows them. Ellipses and annular sectors are regions of the plane already (milestone 33) | The collocation of milestone 17 with a metric: coefficients that vary (A8) | | The core in the browser, compiled to WebAssembly: examples of the website that run where they are read | A visitor tries pdemagic without installing it | The dependencies are Rust. Threads and packaging are the work | | A plan that is tuned by trying: the fastest grid and method for a tolerance, found by measurement | Speed without knowledge | The benchmarks do the measuring | | Detection of stiffness and of blow-up in time, reported as such | A solve that fails says why | The stepper knows its rejected steps | ## Large | Idea | Why | Close | |---|---|---| | Shocks: conservation laws by methods that capture discontinuities | Gas dynamics, traffic, shallow water. Spectral methods cannot do them | A family of methods of its own: finite volumes, WENO, or discontinuous Galerkin | | Free and moving boundaries: melting, a drop that deforms | Stefan problems, fluid surfaces | Shapes in the plane are there (milestone 33). Needs a boundary that is an unknown | | Distributed memory and GPUs | Grids that one machine cannot hold | After C4: generated kernels can target both | | Many particles in quantum mechanics beyond Kohn–Sham: time-dependent density functional theory | Follows F3 | F3 and the propagators | | Kinetic equations in phase space: Vlasov–Poisson | Plasmas, in up to six dimensions | The Fourier methods work in any dimension. Memory is the limit | | Integral equations as problems in their own right | The user states a boundary integral equation and gets it solved | The machinery of bodies, opened up | | Optimal control and design: a shape or a coefficient that minimises a result | The step from simulation to design | The adjoint above | | Uncertainty: a solve with coefficients that are distributions | Engineering asks for it | Sweeps, then smarter sampling | | A problem stated in words or as a formula in LaTeX | The vision's "non-programmers" | A frontend. E4 and E5 first | ## For the project | Idea | Why | |---|---| | A suite of textbook problems with known answers, run nightly | Regression across methods, beyond what each milestone tests | | Tests that generate problems at random and compare two methods where both apply | Finds the corners that nobody thought of | | Timings tracked over the history of `main`, with a figure on the website | A slowdown is seen when it happens. Decision D24 keeps benchmarks out of CI: this would be a scheduled job | | A page for each refusal that a message can link to | The message stays short, and the page explains | | The examples of the website as notebooks to download | The first thing a visitor wants to do with an example |