# After 0.1.0, not published yet What the next version will bring. None of it is in a published package yet. ## Equations - **Beams and plates.** The plate equation $a\,\nabla^4 u + b\,\nabla^2 u + c\,u = f$ is solved on a box, with two conditions on each face: a side that is clamped, simply supported or sliding, and the free end of a beam. `boundary=` takes a list of two equations for a face. The plan names the method `collocation_split`. See [Beams and plates](../topics/plates.md). - **Dispersion of higher order in free space.** A linear equation in time with free directions may hold derivatives above the second order and mixed ones: the linear Korteweg–de Vries equation $u_t + u_{xxx} = 0$, a beam $u_{tt} = -u_{xxxx}$, a plate $u_{tt} = -\nabla^4 u$. They were solved on periodic domains only. How far the solution travels is bounded from the waves that the initial state contains, and the transform holds what leaves the box. See [Problems in time](../topics/time.md). - **Nonlinear waves between walls.** An equation of second order in time may hold terms that are nonlinear or have coefficients that vary, on a box with walls, on a round domain and on a region of the plane: the sine-Gordon equation between walls, a membrane whose spring hardens. They were solved on periodic domains only. The wave equation with its damping stays exact, and the rest is stepped. See [Nonlinear equations in time](../topics/nonlinear-time.md). - **A wave and a diffusion in one system.** A system in time on a box with walls, on a round domain and on a region of the plane may hold equations of second order in time beside those of first order, or alone: a string whose bed hardens where it has moved, a membrane that is coupled to a substance. Such a system was refused. See [Systems of equations](../topics/systems.md) and [a string on a bed that hardens](../gallery/string-on-a-bed-that-hardens.md). - **Constraints between walls and on regions.** In a system in time on a box with walls, on a round domain or on a region of the plane, an equation without a derivative in time fixes one unknown at every time, as Poisson's equation fixes the potential of charges that drift in it. That unknown has its own conditions on the boundary and no initial value. On a periodic domain this was solved already. See [Systems of equations](../topics/systems.md), [a cloud of ions between two plates](../gallery/cloud-of-ions.md) and [a cloud of ions in a dish](../gallery/cloud-of-ions-in-a-dish.md). - **An unknown that does not diffuse, on a region.** In a system in time on a region of the plane, an unknown may have no derivative in space, as between walls. - **An unknown that does not diffuse, and arrays in systems between walls.** In a system in time on a box with walls or on a round domain, an unknown may have no derivative in space, as the slow one of the model of FitzHugh and Nagumo: it takes no condition on a face. And what such a system is given may be an array: an initial state, a source, a coefficient of a term that couples. See [Systems of equations](../topics/systems.md). - **Reaction and diffusion between walls.** A system in time is solved on a box with walls and on a disk, a ring, a ball, a shell and a cylinder: an equation of first order in time for each unknown, as for substances that diffuse and react. Each unknown has its own condition on every face, and `boundary=` takes them as a list. The plan names the method `exponential_runge_kutta`. See [Systems of equations](../topics/systems.md). - **A mixed derivative between walls.** A stationary equation on a box with boundary conditions may hold a mixed derivative, as $u_{xx} + b\,u_{xy} + u_{yy} = f$, with a coefficient that is constant or varies. The equation must be elliptic, and one that is not is refused with that reason. - **Nonlinear equations between walls.** A stationary equation on a box or a round domain with boundary conditions may hold a term that is nonlinear in the unknown, as $\nabla^2 u - u^3 = f$ or the problem of Bratu. It is solved by Newton's method, from zero or from `guess=`. The plan names the method `collocation_newton`. See [Nonlinear stationary equations](../topics/nonlinear.md). - **A medium between walls.** A stationary equation on a box with boundary conditions may have coefficients that vary: a medium $\nabla\cdot(\varepsilon(\mathbf{x})\nabla u)$, a potential, a coefficient in front of any derivative up to the second order. On a round domain the term without derivatives may vary. The plan names the method `collocation_iterative`. See [Media and potentials](../topics/varying.md). ## Domains and boundaries - **The normal of a face.** `pm.normal_derivative(u)` in a condition on a face of a box or of a round domain is the derivative along the coordinate of the face, pointing out of the domain, so that one condition can stand for all faces. ## Eigenproblems - **An eigenvalue is an unknown.** A problem may name an eigenvalue: `pm.Problem(sp.Eq(-psi.diff(x, 2) / 2 + V * psi, E * psi), domain=…, eigenvalue=(E, 4))` asks for the four lowest eigenvalues. The solution holds `eigenvalues`, and the eigenfunctions along the first axis of its values. - **Bound states.** The lowest eigenvalues of a Schrödinger operator are found on a periodic domain and in free space, where the bound states are found on a box that the planner chooses. See [Eigenproblems: bound states](../topics/eigen.md). - **The modes of a shape.** On a region of the plane an eigenproblem gives the modes of the shape, the tones of a drum, also with a medium, a potential and a density. The shape may have holes, and the mesh shrinks towards corners at which a mode has a singularity: the lowest mode of the L-shape is right to nine digits. A condition may be one through which the boundary feeds the modes. - **The modes of a cavity.** Between walls and on disks, rings, balls, shells and cylinders an eigenproblem gives the modes of the domain, for an operator with constant coefficients: the tones of a string, of a room, of a ball, and the waves of a waveguide. See [Modes of cavities, drums and waveguides](../topics/modes.md). - **Potentials that separate.** A potential may stand beside that operator where the modes stay products: a potential of the radius in a disk or a ball, which solves hydrogen, and a sum of potentials along the axes of a box. - **Modes that are no products.** Between walls an eigenproblem may hold a medium, a potential of any form, a density and a mixed derivative, and on a round domain a potential of any form. A plate has its tones: $\nabla^4 u = E\,u$ with two conditions on each face. The modes are found by an iteration on the stationary solve, and the plan names the method `collocation_inverse_modes`. See [Modes of cavities, drums and waveguides](../topics/modes.md). ## Shapes in the plane - **Systems on a shape.** On a region of the plane a problem may have several unknowns. Stationary: an elliptic equation of second order for each, coupled through values, first derivatives and nonlinear terms, which also solves equations of fourth order such as a plate's. In time: an equation of first order for each, substances that diffuse and react on a dish of any shape. Each unknown has its own condition on the boundary, given as a list of equations. - **Arrays on a shape.** The source, a coefficient, boundary values, an initial state and a starting value may be arrays, as on every other domain. `region.axes(shape)` gives the points of their grid. A solution on a region can be the data of the next problem: `pm.GridData(solution[u])`. - **In time, a density, a medium and a potential are exact.** Heat, waves and the Schrödinger equation with a divergence $\nabla\cdot(\varepsilon\nabla u)$ whose medium varies in space, with a density in front of the derivative in time, and with a potential that varies in space, are propagated exactly in time: a membrane whose density or tension varies, a wave function in a well. - **In time, drift is exact.** A drift with constant coefficients, $u_t = a\nabla^2 u + \mathbf{b}\cdot\nabla u$, is propagated exactly in time, for heat and for waves, unless it is very strong against the diffusion. - **In time, a flow that varies, and Burgers.** A term that is stepped may hold first derivatives of the unknown: a drift whose coefficients vary, and nonlinear terms such as $u\,u_x$. ## Python interface - **Values anywhere.** `solution(x, y)` gives the values of a solution at any points, not only on its grid, by the expansion that the method solved with: on a region of the plane, also on its boundary, on a domain that is periodic in every direction, and on boxes, disks, rings and cylinders with boundary conditions, also on their walls. - **Integrals.** `solution.integral()` gives the integral of an unknown over the domain, by the quadrature that the method solved with. - **Solutions in files.** `solution.save(path)` writes a solution with its plan and its diagnostics, and `pm.load(path)` reads it back, to be indexed, called and plotted as before. - **For other tools.** `solution.to_xarray()` returns an xarray dataset, and `solution.to_vtk(path)` writes VTK files for ParaView. - **Plots in balls and cylinders.** `plot` and `animate` draw a section of a solution in a ball or a cylinder: through the axis, across it, or along a sphere or a tube. - **A film of a solution on a region can be saved.** `animate()` of a solution on a shape in the plane drew its frames on the screen, and failed when the film was written to a file. ## Performance - **Fewer steps in time between walls, with the full accuracy.** On a box with walls, a round domain and a region of the plane, a term that is stepped and does not vanish at a wall, and values or fluxes on a face that depend on time, cost the stepping its order: it took 1 280 or 2 560 steps where 80 would do, and an unknown without diffusion was right to $2\cdot10^{-8}$ at a tolerance of $10^{-10}$. The scheme between walls now keeps its order, and integrates what a wall is given exactly: the same problems take 80 steps and are right to $2\cdot10^{-11}$. A wave between walls that are shaken takes 215 steps where it took 1 243. A plan need not change. Where the scheme had its order before, as for a reaction between walls that let nothing through, a step now costs a quarter more. See [Nonlinear equations in time](../methods/exponential.md#between-walls). - **Regions: a third of the time and of the memory.** A real problem on a region is solved in real numbers, and one whose matrix is symmetric and of one sign, as Poisson's equation and a diffusion with a loss, by Cholesky's method. A plan may hold twice the points for a real problem, 160 000 on the sides of elements, and the planner tries twice as many. ## Changed - **A mixed derivative no longer drives the planner to its finest grid.** On a box the planner judged the grid by the second derivatives of the solution as well, which fall slowly at the corners that a mixed derivative leaves singular. It now judges the solution, and stops where finer grids gain little. - **A system on a region with an equation too few is refused.** A system in time on a region with fewer equations than unknowns ended in a panic of the core. It is refused now, with the message that the same system gets between walls. - **A plan says which of its entries you set.** The notes of a plan describe what the planner chose, and stayed as they were when an entry was changed. A last note now names the entries that were set after planning, as in "Changed after planning: grid.shape". - **A plan refuses what a solve would refuse.** For a term that is stepped and takes a derivative of the unknown, on a round domain, `pm.plan` returned a plan that `pm.solve` then refused. - **Newton's method between walls arrives within reach of its tolerance.** Where no step reduces the residual any further and it is within ten times the tolerance, the solution is returned with the residual that it has. Beside a mixed derivative the solve ended with an error at $2.8\cdot10^{-10}$ against $10^{-10}$. - **A potential along a periodic axis** in an eigenproblem between walls is solved, by the iteration for modes that are no products. It was refused. - **Refusals in the right words**: an eigenproblem on a region is no longer refused as a problem "in time", and a drift that is too strong beside a second derivative in time on a region is named as that, with the bound. - **The note of a grid that is not resolved** reads "It leaves the spectrum of … NOT resolved: it only falls to …". - **A potential that varies in space alone is no longer stepped** on a shape. `pm.plan` now answers with the method `element_propagator` for such a problem, where 0.1.0 answered with `element_stepping`. A plan of 0.1.0 that holds `element_stepping` is still taken, and gives the same solution within its tolerance. Nothing has to be written differently.