M82. Systems in modes with an equation of second order in time¶
Package: a part of A23. A system in time between walls, on a round domain and on a region may hold an equation of second order in time beside equations of first order, or such equations alone: a wave that is coupled to a diffusion, two strings that pull at each other. Such a system was refused.
Decisions¶
D82.1. A group of components for each unknown, in one scheme¶
Developer, 2026-11-26.
One equation of second order in time is stepped with a matrix of two
by two for each mode (decision D74.1), and a system of equations of
first order with a number for each mode of each unknown. A system with
both needs both in one state. methods::blocked therefore steps
groups of components: a group has a basis and a matrix for each member
of it, and the groups of a state may differ in their size and in the
number of their members. The driver in modes, in_modes::step_mixed,
makes a group of two for an unknown of second order in time, its
coefficients and those of its rate of change, and a group of one for
an unknown of first order. Each group is in the modes of its own
unknown, as before, and the terms drive the rate of change of an
unknown of second order.
The other way, to make the matrices of the modes diagonal and to step numbers as before, fails where it is needed most: the mode of a wave that no wall holds has the matrix \([[0, 1], [0, 0]]\), which has no two eigenvectors.
D82.2. A mixed system is stepped by the scheme for stiff operators¶
Developer, 2026-11-26.
methods::blocked has the weights of the scheme of Hochbruck and
Ostermann beside those of Cox and Matthews (decision D81.1), as
functions of the matrices. A system in modes with an equation of
second order is stepped by the first: it may hold a diffusion, whose
term does not obey the conditions on the walls. What the walls are
given is integrated for all groups (decision D81.2).
One group stepped by the scheme of Cox and Matthews gives the same
bits as before the groups: a nonlinear wave between walls, one whose
walls are shaken, and a periodic system were hashed before and after.
A system of equations of first order alone keeps in_modes::step,
with numbers in the place of matrices.
D82.3. The notes of a plan name the orders¶
Developer, 2026-11-26.
The first note of the plan of a system says “of first order in time”,
“of second order in time”, or “in time, of second order for u and of
first order for the others” (in_modes::orders_in_words). An unknown
without a derivative in space still has an equation of first order:
its points are its modes, and a second order there would be an
ordinary equation at every point, which is refused as before.
What was built¶
methods::blocked:Group,Blocks::grouped,Blocks::stiff, and the weights of both schemes by their name.in_modes::step_mixed, used bybounded_systemandshaped_systemwhere an equation is of second order.in_modes::read_systemno longer refuses such an equation, andMembersays the damping.Tests: a string that is coupled to heat between walls, with its order in time and with a damping, two strings that pull at each other, a drum on a disk that is coupled to heat, a membrane on a region that is coupled to a substance, and the string from Python.
Pages: the topic of systems, what is solved on boxes, on round domains and on regions, the method pages of systems between walls and of elements in time, the limits, the release notes, and the gallery page of a string on a bed that hardens.
What was measured¶
A string whose stiffness heat changes, and heat that the motion feeds, on \([0, 1]\) with sources: \(u_{tt} = u_{xx} - u\,v + f\) and \(v_t = \tfrac14 v_{xx} + u^2 + g\).
Problem |
Factor of the error for half the step |
With the planner’s tolerance |
|---|---|---|
\(u\) held at zero, no flux of \(v\) |
35 to 44 for \(u\) |
\(10^{-12}\) and \(2\cdot10^{-13}\), 40 steps |
the same with the damping \(\tfrac12\) |
34 to 42 for \(u\) |
\(8\cdot10^{-13}\) and \(2\cdot10^{-13}\), 40 steps |
walls that are shaken and that cool |
9 to 24 for \(u\), 18 to 22 for \(v\) |
\(6\cdot10^{-12}\) and \(7\cdot10^{-13}\), 103 steps |
On the unit disk as a region, a membrane with \(u = \cos t\,\sin x\cos y\) given on the rim and a substance with its slope given there are right to \(2\cdot10^{-11}\) after 20 steps.
What was left¶
A constraint in a system in modes, and an unknown that does not diffuse on a region: what is left of A23.
An unknown without a derivative in space and of second order in time, an oscillator at every point, is refused.
A case of the benchmark suite for a mixed system.