M83. Constraints in systems between walls and on round domains¶
Package: a part of A23. A system in time between walls and on a round domain may hold an unknown that a constraint fixes: an equation without a derivative in time, as Poisson’s equation for the potential of charges that drift in it. Such a system was refused. The milestone was claimed for regions as well, and for an unknown that does not diffuse there: both are left, and the reason is below.
Decisions¶
D83.1. A constraint is read as the state at rest of a problem in time¶
Developer, 2026-11-26.
An equation of a system without a derivative in time is a constraint.
It fixes the one unknown in it that has no derivative in time in any
equation. For that unknown, in_modes::read_system writes the problem
\(\partial_t\varphi = \text{lhs} - \text{rhs}\), whose state at rest the
constraint is, and reads it as the problem of every other unknown is
read. So everything that a single equation on the domain takes, a
constraint takes, and nothing is written twice: its operator with
constant coefficients, a condition of its own on every face, values on
the faces that depend on time, a round domain, and an unknown without
a derivative in space, for which the constraint is a formula at every
point. Joined::fixed says which unknowns are of this kind.
A constraint holds one unknown without an equation in time, and holds it alone in its terms: a product with another unknown would make the operator depend on the state. An initial value for such an unknown is refused.
D83.2. It is solved in its modes at every evaluation¶
Developer, 2026-11-26.
The unknown of a constraint is no part of the state. The terms of a
system are compiled with it as what the constraints fix
(exponential::Spec), as the periodic systems do, and at every
evaluation of the terms the right-hand side of the constraint is
evaluated at the points, with what the faces are given turned into the
modes of that unknown, divided by the eigenvalue of each mode, and
turned back: Term::constrained_where with the callback of the
domain. That is two transforms, where the stationary solver of the
domain would factorize. The driver in time is untouched: it steps the
unknowns that have equations in time, of first and of second order.
An operator with a mode that it maps to zero does not fix its unknown, as a Laplacian with no flux through any wall. It is refused when the modes are at hand, by the smallest eigenvalue against the largest.
D83.3. On a region a constraint waits¶
Developer, 2026-11-26.
On a region the planner judges each mesh that it tries by the terms that are stepped at the start. With a constraint these need the unknown that it fixes, and so its modes on that mesh, which come from a dense eigenproblem, or a stationary solve in their place. That is a change to how a system on a region is planned, and a piece of work of its own. Until then a constraint on a region is refused, with the reason. An unknown that does not diffuse on a region needs the reading of a region to take an unknown without an operator, and is left with it: the two are what is left of A23.
What was built¶
in_modes::read_systemreads constraints, andJoined::fixed.exponential::Term::constrained_where, which solves the constraints of a term at points through a callback.bounded_system: the unknowns of the state and those that are fixed,Joint::at_rest, the check of the smallest eigenvalue, the note of the plan, and the values of a fixed unknown at the recorded times.Tests: a potential beside a substance that drifts in it, held at zero and at values that decay, with its order in time. The same on a disk, a constraint without a derivative, what a constraint must be, and the potential from Python.
Pages: the topic of systems, what is solved on boxes and on round domains, the method page, the limits, the release notes, and the gallery page of a cloud of ions between two plates.
What was measured¶
A substance that drifts in a potential which it makes itself, \(u_t = \tfrac{1}{10}u_{xx} + u\,v - v_x + f\) and \(v_{xx} = u + g\) on \([0, 1]\), with the planner’s tolerance:
Problem |
\(u\) |
\(v\) |
Steps |
|---|---|---|---|
both held at zero, \(u = e^{-t}\sin\pi x\) |
\(9\cdot10^{-13}\) |
\(4\cdot10^{-15}\) |
20 |
no flux of \(u\), \(v = e^{-t}(1 + x^2)\) held |
\(2\cdot10^{-12}\) |
\(2\cdot10^{-13}\) |
20 |
With steps of equal length, half the step leaves a 14th to a 16th of the error in the first row, where the term with \(v_x\) is not zero at the walls that hold \(u\), and a 31st in the second.
The cloud of ions of the gallery, whose drift holds a derivative of the density, takes 309 steps on 96 points, in 1.2 s.
What was left¶
A constraint on a region, and an unknown that does not diffuse on a region (A23).
Several constraints that couple the unknowns they fix, as the periodic systems solve them, are refused: each constraint holds one such unknown.
A constraint whose operator has a mode at zero, with the mean left open as on a periodic domain.