A Few-Parameter Model That Shows The Critical Points Of A Moving Density
Can a density with a handful of continuous parameters, evaluated in about a microsecond, show the spatial and spacetime critical points, catastrophes and basins that molecular calculations show, which of them can it not show, and can it test an integrator against known answers?
Nothing on this page is a molecular result. Names such as H2+ swing, ring or cage describe an analogy of shape. Sums of functions on several centres solve no Schrödinger equation.
1. The Model
A few centres carry a charge Za, a mass Ma and, if wanted, a prescribed oscillation. The functions are Slater 1s, hydrogenic 2s and 2p, or Gaussian s and p, each with an inverse length (a factor times 1/aa). Coefficients are complex, each belongs to a state energy Ek, and coherent groups are added with weights wg ≥ 0, so that the density need not have exact zeros. A finite-nucleus length b replaces r by (r2 + b2)1/2 in the Slater functions. Value, gradient, Hessian, third derivatives, ∂ρ/∂t, ∂2ρ/∂t2, ∂∇ρ/∂t and the time derivative of the Hessian are analytic. Units have ħ = 1 and Coulomb constant 1.
| Statement | Status |
|---|---|
| One centre, point nucleus, hydrogenic functions with energies En, any superposition | exact solution of the one-centre Schrödinger equation with reduced mass μ |
| The finite-nucleus length b, Gaussian functions, exponent factors other than 1 | model densities, not eigenfunctions |
| Two or more centres | model: not a solution. State energies, the virial theorem, continuity and a conserved particle number are meaningless |
| Prescribed centre motion | model: no electron translation factors, no back reaction |
| Zero-flux surfaces, critical points, L(Ω) = 0, ∫K = ∫G on a basin | exact statements about the given function ρ |
Only dimensionless combinations shape the picture. Take centre 0 as the unit: lengths in a0, energies in μ0q2Z02, time in the inverse of that. Then m, |q|, Z0 and M0 are pure scale and drop out. What remains: the positions Ra/a0 (3N − 6 numbers for three or more non-collinear centres, 1 for two), the inverse length of each function times a0 (its factor times μaZa/(μ0Z0)), b/a0, the complex coefficients (up to a phase per group), the weights, the energy differences, and the motion amplitudes, frequencies and phases.
2. Explorer
Choose a type or a preset, then move the sliders. Everything is computed in the page. Canvases take mouse, touch and arrow keys. The searches are sampled and can miss points.
3. Which Types Occur
A sampled scan of the 15 presets and 150 random models (seed 1; two to four centres, Gaussian or smoothed Slater functions, real or complex coefficients) counted what it found. Counts are of points found at the sampled times, not of distinct families.
| Type | Found | First found in |
|---|---|---|
| (3,−3) smooth maximum | 1909 | h2plus-swing |
| (3,−1) bond point | 1760 | h2plus-swing |
| (3,+1) ring point | 454 | h4-cage |
| (3,+3) cage point, ρ > 0 | 74 | umbilic |
| cusp maximum at a point nucleus | 19 | h2plus-swing |
| non-nuclear maximum | 775 | h2plus-swing |
| isolated zero of ρ, (3,+3) | 10 | node-point |
| degenerate set, rank 0 | 0 | - |
| degenerate set, rank 1 | 4813 | h2plus-swing |
| degenerate set, rank 2 | 6148 | node-point |
| (4,−4) | 540 | h2plus-smooth |
| (4,−2) | 1206 | h2plus-swing |
| (4, 0) | 417 | h3-ring |
| (4,+2) | 119 | h4-cage |
| (4,+4) | 9 | node-event |
| isolated spacetime zero, rank 4 | 2 | node-event |
| spacetime degenerate, rank 1 | 723 | hyd-shells |
| spacetime degenerate, rank 2 | 16462 | h2plus-swing |
| spacetime degenerate, rank 3 | 200 | h2-bond |
| fold: pair (3,−3) and (3,−1) | 520 | h2plus-swing |
| fold: pair (3,−1) and (3,+1) | 382 | h3-ring |
| fold: pair (3,+1) and (3,+3) | 176 | h4-cage |
| cusp or pitchfork (a coefficient of the fold form vanishes) | 28 | umbilic |
| two null directions (umbilic) | 7 | umbilic |
One example of each rank-4 signature, each from a preset. In a model of two energies with real coefficients every spatial critical point at a turning instant, cos ωt = ±1, is a spacetime point, and its 4 × 4 matrix splits into the spatial Hessian and ∂2ρ/∂t2. Spatial signatures ±3 and ±1 with either sign in time give all five.
| Type | Preset | t / T | Position | ρ | Eigenvalues |
|---|---|---|---|---|---|
| (4,−4) | umbilic | 0.00 | −0.523, 0.905, 0.000 | 0.6341 | −1.7145, −1.4973, −1.0824, −0.0505 |
| (4,−2) | umbilic | 0.00 | 0.129, 0.224, 0.000 | 0.4980 | −1.1453, −0.2470, −0.0379, 0.5776 |
| (4, 0) | umbilic | 0.00 | 0.000, 0.000, 0.000 | 0.4953 | −1.1274, −0.0374, 0.2305, 0.2305 |
| (4,+2) | cage-minimum | 0.00 | 0.000, 0.000, 0.000 | 0.0687 | −0.0054, 0.0798, 0.0798, 0.0798 |
| (4,+4) | cage-minimum | 0.50 | 0.000, 0.000, 0.000 | 0.0015 | 0.0054, 0.0173, 0.0173, 0.0173 |
| (4,+4) zero | node-event | 0.00 | −0.000, −0.000, −1.024 | 7.7 × 10−34 | 0.0025, 0.3936, 0.3936, 0.5572 |
Beyond folds: the three-fold preset has an elliptic umbilic at t = 4.488812, where both in-plane curvatures of the centre vanish together (third derivatives fxxx = 0.3966 and fxyy = −0.3966, their sum zero as the symmetry requires; the third direction keeps curvature −0.3823). A swallowtail, f′ to f(4) zero along the axis of three collinear Gaussians with time, the third position and its amplitude as the three controls, was found at z = 1.165341, t = 15.337448, third centre at 0.947763 with amplitude −0.458855 (f(5)/ρ = −1529, transverse curvature/ρ = −4.000, ρ = 2.7 × 10−4). It sits in a region of small density; the fourth derivative in that solution is a central difference of the analytic third derivative. Butterfly and hyperbolic umbilic points were not searched for.
4. What Cannot Occur, And Why
| Cannot occur | Reason |
|---|---|
| A zero of ρ with a negative eigenvalue, in space or in space-time | ρ ≥ 0, so every zero is a minimum: rank equals signature |
| A zero of rank above 2 with a single coherent group, in space or space-time | at ψ = 0 the Hessian is 2 Re(∂ψ* ∂ψ), which has rank at most 2 (at most 1 if ψ is real); n groups allow at most 2n |
| Any spacetime point of rank 4 in a stationary density | the time row of the matrix vanishes |
| Any spacetime point of rank 4 in a rigidly rotating density | the tangent of the helical worldline is annihilated |
| (4,−4) or (4,+4) where the oscillating part of a two-energy density on fixed centres vanishes | there ∂2ρ/∂t2 = −ω2(ρ − mean) = 0, and a symmetric matrix with a zero diagonal entry is not definite |
| A smooth (3,−3) point at the centre of an unsmoothed Slater function where the density has a cusp | the density behaves there as ρ0 + g·d + s|d| with s ≠ 0; a cusp maximum is reported as its own class, without a Hessian |
| A maximum of a sum of squares of positive combinations of unsmoothed 1s Slaters farther than 2/ζi from every nucleus | there ∇2ψ = Σ ci ζi(ζi − 2/ri) e−ζiri > 0, so ψ2 is subharmonic |
| An isolated critical point away from the nucleus in a one-centre density of s functions only | the density is spherical: away from the nucleus its critical sets are whole spheres, of rank 1 where ∂2ρ/∂r2 ≠ 0 and of rank 0 where it vanishes too |
Smooth maxima at a centre do occur with Gaussian functions, and also with Slater functions whose cusp terms cancel, as in ψ = (e−r − e−2r/2)/√π. The searches of this model do not list such a point on a Slater centre.
Rank 0 does occur, although the sampled scan counted none. In the exact superposition (1s + 2s)/√2 on one centre two critical spheres merge at r = 3.859014, t = 3.177763, and there the whole sphere has rank 0. In cage-minimum with the amplitude of the second energy doubled, the Hessian at the centre vanishes at t = 4.978609, an isolated point of rank 0.
5. Basins In Space And In Space-Time
In space the gradient flow of ρ needs only the Euclidean metric: nuclear attractors, non-nuclear attractors, the two-dimensional stable manifolds of (3,−1) points as interatomic surfaces, ring and cage points on their intersections. In space-time a gradient needs a metric on (x, y, z, t), which the density does not supply. Here it is a named choice.
With the Euclidean choice ρ increases along every path, the number of unstable directions at a critical point equals the number of positive eigenvalues of the 4 × 4 matrix for every c, and only (4,−4) points attract; the shapes of the basins still depend on c. With the Lorentzian choice ρ need not increase, a (4,−4) point is a saddle, and eigenvalues can be complex, so that paths can spiral; basins in the sense of QTAIM are not available.
| Spacetime point of the smoothed swing | Unstable directions, Euclidean | Unstable directions, Lorentzian | Complex pair for some c |
|---|---|---|---|
| (4,−4) | 0 | 1 | no |
| (4,−2) | 1 | 0 | no |
| (4,−2) | 1 | 2 | yes |
On the axis (z, t) plane of that model, which both flows leave invariant, the Euclidean ascent from a grid of 2304 points reaches one of the two (4,−4) maxima from every point for c = 0.3, 1 and 3, half to each. The assignment of 40 points differs between c = 0.3 and 1, of 20 between 1 and 3, and of 60 between 0.3 and 3.
6. Molecular Analogues
| Preset | What It Imitates |
|---|---|
h2plus-swing | two point nuclei, one-exponent LCAO of the two lowest states, equal superposition (the H2+ swing) |
h2plus-smooth | the same swing with finite nuclei (smoothing length 0.15), so that the maxima are smooth |
h2-bond | two clamped Gaussian centres, stationary: the plain two-atom graph |
h3-ring | three Gaussian centres in a triangle, two-state superposition: a ring point |
h4-cage | four Gaussian centres in a tetrahedron, two-state superposition: a cage point |
nna-birth | two centres with s and inward p functions: a non-nuclear maximum is born and dies |
path-switch | two fixed centres and a third that swings past them: a bond path changes partner |
umbilic | three-fold symmetric superposition of tight and diffuse functions: both in-plane curvatures vanish together |
node-point | three incoherent real p states on one centre pair: isolated zeros of the density |
hyd-1s2pz | one centre, hydrogenic 1s + 2p0 superposition (an exact solution of the one-centre Schrödinger equation) |
hyd-rotating | one centre, hydrogenic 1s + 2p(+1): a rigidly rotating density (exact solution; a control) |
hyd-shells | one centre, incoherent hydrogenic 1s and 2s shells: spherical zero-flux surfaces (stationary control) |
node-event | the node-point model with the two centres at different state energies: zeros of the density isolated in space and time |
swallowtail | three collinear Gaussian centres at the parameters of a swallowtail point found by toy_scan swallowtail |
cage-minimum | four centres in a tetrahedron, tight minus diffuse functions half a period on: a cage point that is a minimum in space and time |
The swing uses clamped protons 2 bohr apart, a one-exponent LCAO for each of the two states (exponent factors 1.238 and 0.9, chosen by hand) and the exact electronic energies as input. Toward full swing, a non-nuclear maximum and a second bond point are born together in a fold beyond one proton at |cos ωt| = 0.98742, and at |cos ωt| = 0.99734 the bond point between the protons runs into the cusp of that proton, which then is no longer a maximum: three, five and three critical points. Away from full swing the events run in reverse. For the exact solution the page QTAIM in time and its record give 0.9712 and 0.997172. The model reproduces the sequence, not the numbers.
The one-centre superposition of hydrogenic 1s and 2p0 is an exact solution and has a non-nuclear maximum that is born and dies: folds at t = 2.17010, 6.20748, 10.54768, 14.58506 on the axis at |z| = 2.81393. The test suite confirms each one by counting extrema of the closed-form axial density on both sides.
7. Speed
One thread, processor time, minimum of repeated runs, on a machine with 32 logical processors, under a load average of 39.23. The jet columns give microseconds per evaluation with first derivatives, with second derivatives and time derivatives, and with third derivatives. The topology columns give milliseconds for all spatial critical points at one time, for all spacetime points of one period, and for the fold search of one period.
| Preset | Jet 1 (µs) | Jet 2 + t (µs) | Jet 3 + t (µs) | One Time (ms) | Space-Time (ms) | Folds (ms) |
|---|---|---|---|---|---|---|
h2plus-swing | 0.402 | 0.494 | 0.589 | 3.16 | 60.5 | 376.6 |
h2plus-smooth | 0.429 | 0.537 | 0.489 | 3.17 | 57.3 | 344.1 |
h4-cage | 0.671 | 0.817 | 0.896 | 23.15 | 484.5 | 5360.2 |
node-point | 0.956 | 1.200 | 1.372 | 11.00 | 182.4 | stationary |
8. An Integrator Test Bed
The cubature inside the library's basin integrator sees a density only through callbacks, so a test program built with the library sources can supply the model. G and K come from the same amplitudes, so the following hold for every parameter set, solution or not.
This checks quadrature and surface placement, not physics. References used: closed-form whole-space integrals (Gaussians; Slaters on one centre; pairs of 1s Slaters), equal fractions forced by symmetry, the closed-form population of a spherical zero-flux surface of hydrogenic shells (approached through a small 2p admixture, since a sphere of maxima was outside the integrator contract at the commit tested (816973b)), exact scaling in Z, q and m, rigid motions, separated fragments, small basins, a non-nuclear basin that vanishes at a pitchfork, and a weak basin that disappears in a fold, where its population stays finite up to the fold and then drops to zero. A check is flagged when the integrator reports convergence and the true error exceeds its own error estimate.
| Family | Cases | Basins | Not Converged | Largest Closure Error | Largest |L| | Flags Within Tolerance | Flags Beyond Tolerance | L Flags | Rays | Median Time (s) |
|---|---|---|---|---|---|---|---|---|---|---|
| one centre | 1 | 1 | 0 | 2.3 × 10−15 | 6.7 × 10−16 | 0 | 0 | 0 | 1860 | 0.0 |
| symmetry-forced fractions | 18 | 44 | 0 | 4.4 × 10−6 | 9.3 × 10−6 | 0 | 0 | 0 | 306894 | 8.3 |
| rigid motions | 5 | 15 | 0 | 1.2 × 10−7 | 6.4 × 10−7 | 0 | 0 | 0 | 117200 | 46.2 |
| exact scaling | 11 | 22 | 0 | 8.9 × 10−1 | 4.2 × 102 | 2 | 3 | 4 | 236340 | 7.9 |
| separated fragments | 5 | 10 | 0 | 7.7 × 10−10 | 1.4 × 10−9 | 0 | 0 | 0 | 18600 | 2.9 |
| spherical surfaces (perturbed shells) | 10 | 18 | 2 | 2.7 × 10−6 | 2.1 × 10−4 | 3 | 0 | 3 | 47970 | 32.7 |
| small basins and slivers | 5 | 10 | 0 | 5.9 × 10−6 | 4.2 × 10−6 | 4 | 0 | 0 | 22350 | 2.5 |
| non-nuclear basin at a pitchfork | 6 | 18 | 0 | 1.4 × 10−5 | 9.9 × 10−6 | 1 | 0 | 0 | 74670 | 15.7 |
| basin lost in a fold | 5 | 10 | 0 | 1.0 × 10−7 | 8.5 × 10−8 | 0 | 0 | 0 | 23850 | 2.0 |
| random parameter sets | 30 | 85 | 1 | 3.2 × 10−5 | 6.6 × 10−4 | 5 | 0 | 9 | 664039 | 54.4 |
The integrator is that of development commit 816973b of the library, which follows release 1.6.0 and is not itself a release; it was not modified. The test bed called its internal cubature and copied two caller rules of qtaim_integrate_attractor_basin (capture radius and ray origin); the public function takes a wavefunction and was not called. The requested tolerance was 10−5 electrons per basin, and a closure error counts as beyond tolerance only above that figure times the number of basins. Flag columns count cases. A flag means that it reported convergence and the error exceeded its estimate. Parameter sets of the failing cases are kept as reproducer files beside the code.
The large entries of the exact-scaling row come from pairs of nuclei 0.12, 0.044 and 0.012 bohr apart, scaled or muonic separations far below those of ordinary molecules, run with the copied ray-origin rule (the last nucleus within 0.3 bohr). In the case with |L| = 420 hartree the integrator reported convergence of its angular estimates while also counting 900 unconverged radial panels. In the two pitchfork cases nearest the bifurcation the population of the new basin depended on the capture radius (0.03455 and 0.03387 with the copied rule, 0.02598 and 0.01006 with a tenth of the saddle distance), a transfer between basins that closure and the flags of this table do not see.
With rays started on the nearest nucleus the three close pairs closed within 4 × 10−6. At 0.12 and 0.044 bohr the basin populations were within about 2 × 10−5 of the unscaled values; at 0.012 bohr 1.1 × 10−2 electrons were still assigned to the wrong basin. |L| remained up to 3.4 × 10−3, 5.0 × 10−2 and 1.7 hartree.
Times are wall times with three threads on a loaded machine. Closure errors are against closed forms where one exists.
L(Ω) was not part of the convergence decision. At commit 816973b the radial panels were refined on L as well as on N, but the rule over the directions and the converged flag looked at N (and the energy) only. Among random cases that converged and whose attractor list passes the Poincaré–Hopf test, 4 have a basin with |L| beyond its radial estimate plus 10−5: random-1-23-gauss-sp 4.2 × 10−4, random-1-19-gauss-s 6.8 × 10−5, random-1-17-gauss-sp 4.2 × 10−5, random-1-25-gauss-s 1.7 × 10−5 (largest |L| per case, hartree).
In the random scan of 30 parameter sets and 85 basins, 5 closure checks exceed the estimate and 0 exceed the requested tolerance; 17 basins have |L| beyond the radial estimate plus 10−5 (more for compact functions), the largest among converged cases with a confirmed attractor list 4.2 × 10−4 hartree (6.6 × 10−4 in one whose list is not confirmed); 1 case is reported as not converged; in 8 cases the model’s own attractor list could not be confirmed by the Poincaré–Hopf sum. The scan took 53 minutes of integration: the integrator, not the density, sets the pace.
Estimates are not bounds. In 15 of 96 cases a closure or symmetry error exceeded the integrator’s own estimate while staying within the requested tolerance, as the header at that commit allowed for surface positions.
What Passed
Equal fractions of two, three and four equivalent centres with and without mirror planes; rigid motions, including a shift by thousands of bohr (the cubature frame followed the attractors, so this tests equivariance, not accuracy); separated fragments from 8 to 100 bohr. No case was built specifically for grazing rays. The nuclear basin of perturbed shells approaches the closed-form ball as the square of the admixture, while the integrator converged; at the smallest admixture the sphere of maxima is nearly degenerate and it reported no convergence:
| Surface | Admixture ε | Computed N | Closed Form At ε = 0 | Difference | Difference / ε² | Converged |
|---|---|---|---|---|---|---|
| incoherent shells | 0.1 | 0.134841254 | 0.134483998 | 3.6 × 10−4 | 0.036 | yes |
| incoherent shells | 0.03 | 0.134515741 | 0.134483998 | 3.2 × 10−5 | 0.035 | yes |
| incoherent shells | 0.01 | 0.134487505 | 0.134483998 | 3.5 × 10−6 | 0.035 | yes |
| incoherent shells | 0.001 | 0.134484050 | 0.134483998 | 5.2 × 10−8 | 0.052 | no |
| nodal sphere | 0.1 | 0.412823669 | 0.411289090 | 1.5 × 10−3 | 0.153 | yes |
| nodal sphere | 0.03 | 0.411426764 | 0.411289090 | 1.4 × 10−4 | 0.153 | yes |
| nodal sphere | 0.01 | 0.411304383 | 0.411289090 | 1.5 × 10−5 | 0.153 | yes |
| nodal sphere | 0.001 | 0.411293182 | 0.411289090 | 4.1 × 10−6 | 4.091 | no |
A basin that is lost in a fold does not shrink to nothing. For a pair of unequal Gaussians whose weaker maximum disappears at R = 1.4932, its population is 0.4297 at R = 1.9, 0.4154 at R = 1.75, 0.3989 at R = 1.65, 0.3866 at R = 1.6, 0.3768 at R = 1.57. With the smaller capture radius, the basin born in the pitchfork vanishes continuously.
The Critical-Point Search
The critical-point search at the untagged commit 719b6ac, which follows release 1.6.0 and whose version macros already read 1.7.0, also takes a density callback. Over 216 cases it was compared with the model’s own search on a much denser seed set and with counts forced by symmetry. Of 1610 reference points it listed 1383. Of the 227 missing, 221 are cusps at point nuclei, which are not zeros of a gradient and show up as a Poincaré–Hopf mismatch. The other 6 are bond points of density 1.3 × 10−8 to 2.2 × 10−5; in 4 cases the search returned success with a sum of 1 and no flag of an unfinished or truncated search while such a point was missing (two of the four carried the flag for zeros discarded below the density floor, which these points were above). Each of those bond points, handed back to the search as an extra seed, is then listed (6 of 6), so at that commit the search could resolve them and its own seeding did not reach them.
9. Parameters, Limits And Provenance
- Sliders: time within the window; centre separation; charge of centre 1; a common factor on all inverse lengths; amplitude and phase of the second energy; finite-nucleus length; particle mass and charge; a common charge factor; nuclear mass. With positions held in units of 1/(μ|q|Z), mass, charge and charge factor only rescale the axes.
- The explorer uses fewer seeds than the C program. Its formulas are a port of the C code.
- Critical points, folds and spacetime points are found by sampled multistart Newton iterations. None is certified, and completeness is not claimed. A birth and death that both fall between two time samples can be missed.
- Basins in the slice are assigned by a coarse steepest-ascent path.
C program and tests: commit c88edb3 of the local branch toy, which was not published when this page was written; the file TOY_MODEL.md there lists the commands. The C tests report 674 checks with 0 failures. The JavaScript port agrees with the C code on 1350 derivative values to 2.5 × 10−16 relative to the size of the terms, and on 82 critical points of one time slice per preset it misses 0, mislabels 0 and adds 0.
- R. F. W. Bader, Atoms in Molecules: A Quantum Theory, Oxford University Press, 1990. [record]
- R. Thom, Structural Stability and Morphogenesis, Benjamin, 1975, for the names of the elementary catastrophes. [record]
- Spacetime critical points: test cases and QTAIM in time on this site.