Appearance
Self-gravity
Self-gravity in FLUME solves
- face gravity:
; - cell gravity: the mean of the cell's two faces;
- momentum:
times the cell gravity; - energy:
, from the mass fluxes the continuity equation uses.
Summed over the cells, the energy source is
The cases verify the potential path against the constant-g oracles of external gravity, the Poisson solvers (FFT, isolated by the lattice Green's function, multigrid on AMR grids) against the discrete Laplacian
| Case | Type | What it verifies |
|---|---|---|
| Gravity from a cell potential | P | the potential path reproduces the constant-g oracles of external gravity |
| The FFT Poisson solver | P | the periodic solver is exact for |
| Jeans modes | P+C | the coupling: dispersion relation, growth rate, symmetry, exact |
| The isolated solver | P | zero padding with the lattice Green's function: free-space potential of the mass on the grid |
| The n = 1 polytrope | P | a star in equilibrium and a collapsing one under isolated self-gravity, uniform grid |
| The multigrid solver on AMR grids | P | the mimetic 2:1 coupling (symmetric and consistent), the FCG solver, Dirichlet faces, isolated boundaries by the symmetric James step |
| Jeans modes on a static AMR grid | P | the multigrid coupling, the seam gravity work, the per-stage reflux |
| Self-gravity under runtime AMR | C | the solver and |
| The polytrope on AMR | P+C | the star on a static AMR box; its collapse under runtime AMR with the conservative-state prolongation, a Jeans marker and dual energy; the Jeans-marker contract |
Sink particles build on self-gravity and have their own group.
The figures are regenerated with make_doc_runs.sh <dir> <group> and make_doc_figures.py --only <figure> (src/tests/flume/verification/):
make_doc_runs.sh group | Executables it needs | make_doc_figures.py --only |
|---|---|---|
selfgravity | exe/adam_flume_cpu, exe/test_poisson_fft (mode test-poisson-fft-gnu) | selfgravity-potential selfgravity-poisson |
jeans | exe/adam_flume_cpu_fft (mode flume-cpu-gnu-fft) | selfgravity-jeans |
isolated | exe/test_poisson_fft, exe/adam_flume_cpu_fft | selfgravity-isolated selfgravity-star selfgravity-star-amr |
collapse-regrid | exe/adam_flume_cpu_fft | selfgravity-star-regrid |
amr | exe/test_poisson_mg (mode test-poisson-mg-gnu), exe/adam_flume_cpu_fft | selfgravity-amr selfgravity-amr-jeans selfgravity-amr-regrid |
How it was built
Self-gravity is milestone M8 (#81); isolated self-gravity on AMR is #87, the star under runtime AMR #88 and #91 (M9); sink particles are M12 (#94). The phases of #81 and the cases that verify them:
| Phase | What it adds | Cases |
|---|---|---|
| P1 | the potential path ([gravity] potential = linear) | SV-1 |
| P2 | the FFT Poisson solver, periodic | SV-2 |
| P3 | the coupling, one solve per Runge–Kutta stage ([gravity] self_gravity) | SV-3, SV-4, SV-5 |
| P4 | isolated boundaries (poisson_bc = isolated) | SV-6, SV-7, SV-8 |
| P5a | the multigrid Poisson solver on AMR grids | SV-9 |
| P5b | self-gravity on static AMR grids, the seam gravity work in the reflux | SV-10 |
| P5c | the per-stage reflux, self-gravity under runtime AMR | SV-10 (reflux_cadence = stage), SV-11 |
| P6 | the regression cases selfgravity-jeans, selfgravity-amr-stage, selfgravity-star | — |
| #87 P1 | Dirichlet faces in the multigrid solver, a DST-I coarsest level | SV-12 |
| #87 P2 | isolated boundaries on AMR, the symmetric James step | SV-13 |
| #87 P3 | isolated self-gravity on AMR in FLUME: the refusals lifted, a regrid that refines a boundary block fatal | SV-14 |
| #88, #91 | the star under runtime AMR: the conservative-state prolongation, the Jeans marker, dual energy | SV-15, SV-16, SV-17, rg7 |
| Case | ID | Phase |
|---|---|---|
| Gravity from a cell potential | SV-1 | P1 |
| The FFT Poisson solver | SV-2 | P2 |
| Jeans modes | SV-3 to SV-5 | P3 |
| The isolated solver | SV-6 | P4 |
| The n = 1 polytrope | SV-7, SV-8 | P4 |
| The multigrid solver on AMR grids | SV-9, SV-12, SV-13 | P5a; #87 P1, P2 |
| Jeans modes on a static AMR grid | SV-10 | P5b, P5c |
| Self-gravity under runtime AMR | SV-11 | P5c |
| The polytrope on AMR | SV-14 to SV-17, rg7 | #87 P3, P4; #88; M9 |
The verification catalog places the star on AMR after M8, with #87 and #88.