M77. More systems in the modes of a domain¶
Package: A23, two of its four parts: in a system in time between walls and on a round domain, an unknown that has no derivative in space, and what is given as arrays.
What was built¶
An unknown that does not diffuse. In the model of FitzHugh and Nagumo the voltage spreads and the recovery does not: its equation, \(w_t = \varepsilon\,(u - \gamma w)\), has no derivative in space. Such an unknown was refused, because the equation of every unknown was read as a problem on the domain with a condition on each face. It is now read as what it is, and stepped with the others.
Arrays in systems between walls. An initial state, a source, what is given on a face and a coefficient in a term that couples may be arrays, on one grid, which is then the grid of the solve. They were refused between walls and taken on a region.
The pages for users. The reference for boxes and round domains, the limits, the method page with the errors below, a sentence of the topic page on systems, and a pulse between walls in the gallery.
Decisions¶
D77.1. The points of the grid are the modes of an unknown without a derivative in space¶
Developer, 2026-11-25.
The driver of milestone 73 steps each unknown in the modes of its own operator: it asks for the eigenvalues, for the way from values to coefficients and back, and for what the boundary adds. An unknown without a derivative in space has an operator that is a number, the same at every point. Every point is then a mode with the eigenvalue zero, to which the driver adds that number as it adds the constant of any operator. The way to the coefficients and back is the identity, and the boundary adds nothing.
So collocation::Modes has a fifth kind, Points, beside the box, the
round domains, the cylinder and the shape, and the driver did not
change. The unknown is solved for at every point of the grid, also on
the faces, where the others have what their conditions give.
It is read by bounded::classify_still, which answers only for an
equation of first order in time whose linear terms hold no derivative
in space. A condition on a face for such an unknown is refused, and so
is a system in which no unknown has a derivative in space: its
equations are ordinary ones at every point, and the grid of a domain
with walls would mean nothing.
D77.2. A system keeps the fields that it reads, and each unknown its own¶
Developer, 2026-11-25.
The problem of each unknown names the data fields that it reads, in the
order in which it is given their values. The terms that couple may read
fields too. BoxedSystem holds the union, which is the order of the
terms that are stepped, and hands each unknown its share. With data the
planner takes the grid of the data and makes no trial on coarser ones:
it has the names of the fields and not their values.
D77.3. On a region the unknown that does not diffuse waits¶
Developer, 2026-11-25.
The kind of modes and the driver are written once and serve a region as
they serve a box. The reading does not: on a region the problem of an
unknown carries the symmetric operator of its weak form, its density
and what each piece of the boundary is given, and an unknown without an
operator needs a place in each of them. That is work in shaped and
shaped_evolution alone, and it stays in A23.
What was measured¶
Against a manufactured solution, the model of FitzHugh and Nagumo with sources on \([0, 1]\) with no flux through the ends, to the time 1:
Points |
Error of \(u\) |
Error of \(w\) |
|---|---|---|
6 |
\(6.9\cdot10^{-4}\) |
\(1.9\cdot10^{-4}\) |
9 |
\(2.9\cdot10^{-6}\) |
\(7.9\cdot10^{-7}\) |
12 |
\(2.3\cdot10^{-10}\) |
\(6.4\cdot10^{-11}\) |
16 |
\(1.6\cdot10^{-11}\) |
\(7.6\cdot10^{-12}\) |
With the planner’s choices, 32 points and 40 steps: \(1.6\cdot10^{-11}\) and \(7.6\cdot10^{-12}\). The tests assert that the error falls by a factor of 20 from 6 points to 9 and from 9 to 12.
A pulse of the model without sources on a fibre of the length 40, followed for 40 units of time: 2 100 steps at the planner’s tolerance, 320 at \(10^{-6}\), with a difference of \(7\cdot10^{-7}\) between the two.
Two unknowns that turn into each other, with the start of one and the rate at which they turn as arrays on 24 points: the exact solution to \(10^{-9}\), as with formulas.
What was found¶
Milestone 78 measured this again and found another cause: the scheme loses order where what is stepped does not fit the walls (package C18). The paragraph below is kept as it was written, and is wrong in what it puts the loss down to.
The tolerance of a step is shared, and not shared evenly. The control of the step measures the error over the coefficients of all unknowns together, relative to their size. On a disk the coefficients of an unknown that diffuses are larger than the values of one that does not. The second is then stepped less closely than the plan says: in the same model on the unit disk, with the fast unknown held at zero on the rim, the fast unknown is right to \(2\cdot10^{-11}\) and the slow one to \(2\cdot10^{-8}\) at the tolerance \(10^{-10}\), and to \(4\cdot10^{-7}\) and \(10^{-9}\) at \(10^{-8}\) and \(10^{-12}\). It follows the tolerance, a hundred times above it. On an interval the two are of one size, and both are right to \(10^{-11}\). This holds for every system between walls since milestone 70, and shows here because the two kinds of coefficients differ most. An error that is measured for each unknown by itself would change the steps of every system, so it is no part of this milestone: it is a line of the limits, and stays with A23.
What was left¶
A23 keeps:
Equations of second order in time in a system. One equation is stepped with a matrix for each mode since milestone 74. A system needs that matrix for each unknown of second order beside the numbers of the others, in one state: the scheme of
methods::blockedfor groups of components of different sizes.Constraints. An unknown without a derivative in time, which the stationary solve of the domain fixes at every evaluation.
An unknown that does not diffuse, on a region (decision D77.3).
An unknown that diffuses along some directions and not along others is refused, as for one equation (A7).