Coordinates, Grids, and Domain Mappings
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal additional columns.
Scrollable figure. Use Left and Right arrow keys to inspect hidden content.
Coordinates locate geometric fields; grids sample their coordinate representation; domain maps move, stretch, or compactify those samples. Confusing these layers creates subtle errors: a correct tensor can be differentiated with a wrong map Jacobian, a moving grid can violate conservation, and a coordinate singularity can be mistaken for physical under-resolution. A reliable mapping implementation supplies forward and inverse maps, Jacobians and time derivatives, regularity domains, and tests that constant or analytic fields remain correct under motion.
Helpful background. Formulations of General Relativity supplies geometric variables and gauge, Ordinary Differential Equations supplies evolution and interpolation concepts, Computational Relativity supplies common evidence standards, and Probability and Statistical Inference supplies uncertainty and sampling concepts used in mesh studies.
Three coordinate layers
Section titled “Three coordinate layers”Let grid coordinates map to computational-frame coordinates and then to inertial coordinates ,
The code needs , its inverse, the Jacobian , inverse Jacobian, determinant, and mesh velocity . Chain rules must specify which coordinates are held fixed. Tensor components may live in one frame while points are advanced in another; metadata should name both.
Simple maps include logarithmic radial stretching, compactification, cubed spheres, fisheye maps, and surface-fitted shells. A valid map has nonzero Jacobian determinant throughout its declared domain and enough differentiability for the discretization order. Coordinate axes and block corners need specialized regularity or overlapping domains, not merely smaller cells.
Moving and dual frames
Section titled “Moving and dual frames”For binaries, a comoving grid can keep compact objects centered while an inertial frame describes asymptotic radiation. Rotation, scaling, translation, and shape maps are composed and controlled from measured horizon positions. Scheel et al. 2006, §§II–V and Figures 1–13 develops this dual-frame strategy and follows several binary orbits with a feedback controller; the paper does not evolve through merger.
Every composition must be tested in forward and inverse directions. Sample points throughout each domain, verify to the precision expected from the nonlinear inverse, and compare analytic with finite-difference Jacobians. Track the minimum determinant and the distance of each object from its grid center. A controller that lags can stretch cells or invert a map before field variables visibly fail.
For conservation laws on a moving mesh, include the grid velocity in numerical fluxes and satisfy the geometric conservation law. A uniform state should remain uniform under arbitrary prescribed mesh motion—the free-stream preservation test. Failure indicates inconsistent metric factors or time integration, not physical dynamics.
In one dimension, the required correction follows directly from the chain rule. Let , , , and . Physical advection becomes
The conservative form uses , the one-dimensional geometric conservation law. Insert constant: its residual is exactly . This calculation gives a test independent of the evolved wave and shows why grid velocity has a minus sign in the transport speed. Discretizing the map and flux separately must preserve the same cancellation to the intended accuracy.
Benchmarks and convergence
Section titled “Benchmarks and convergence”Use the following mapped-wave record as a minimum reproducible test. Evolve
on the inertial cube with periodic boundaries and initial data . Use the time-dependent grid map
split into four blocks at . Its exact inverse may be found by a bracketed scalar solve, and its Jacobian satisfies . Discretize with fourth-order centered differences and RK4 at CFL , run grids with to , and compare with the analytic inertial solution. The comparison norm and phase error are
where is the inertial cell volume and is the independently evaluated fundamental Fourier coefficient. Accept the finest run only if , , the maximum drift of an additional free stream is at most , the sampled inverse error is at most , and the sampled Jacobian stays above . These thresholds and the expected fourth-order error ratio are acceptance criteria, not reported measurements.
Tie performance to the same accuracy test. For strong scaling, hold the mapped cube fixed and use resources. For weak scaling, tile identical unit-periodic mapped cubes along , assign one tile per resources, and retain the same local wavelength and CFL factor. Record median wall time over seven measured repetitions after one warm-up, but count a layout only if its own and meet the thresholds above. First qualify one tile; if its mapped-wave error exceeds the target, refine the tile consistently in the entire scaling study.
Observed discrepancy: not available—specification only.
For spectral subdomains, smooth analytic fields should show exponential coefficient decay until roundoff; align non-smooth surfaces with interfaces. Grandclément and Novak 2009, §2.4.4, §§2.6.1–2.6.6 and §§3.1.1–3.1.3 explains domain maps, multidomain approximation, and numerical-relativity applications. For finite-volume meshes, verify conserved integrals and interface flux cancellation under motion.
A later strong-field benchmark tracks two black-hole centers in a rotating dual frame while measuring horizon invariants and an inertial waveform. Repeat with altered controller gains and map update cadence. Coordinate centering can improve resolution, but it is not physical evidence; mass, spin, constraints, and radiation must converge independently.
Environment and failure criteria
Section titled “Environment and failure criteria”Pin map formulas and composition order, frame definitions, inverse tolerance, controller, interpolation, grid topology, derivative operators, time integrator, precision, and code revision. A clean interface could be map-test --config rotating-shells.toml --output run/, emitting pointwise inverse errors, Jacobians, determinant minima, free-stream errors, refinement data, and environment metadata. This specifies the rerun without claiming that an executable is supplied.
Reject a map with determinant approaching zero, inverse errors lacking a tolerance plateau, free-stream drift, loss of convergence at an unhandled block edge, or horizon centers leaving their safe domains. Other failure modes include composing maps in the wrong order, treating tensor components as scalars during interpolation, compactifying oscillatory waves without adequate resolution, and reporting improved coordinate centering while invariant errors worsen.
Map diagnostics must be sampled between evolution nodes as well as at them. A high-order polynomial map can have a positive determinant at every collocation point yet fold between points; denser independent sampling or an analytic bound is needed to exclude that breakdown.
Diagnostic
Section titled “Diagnostic”A moving-grid evolution keeps both punctures exactly centered, but a uniform-density test develops a spatial pattern that converges only first order although the finite-volume scheme is nominally fifth order. Is the map successful?
Solution
No. Centering tests the controller, whereas the uniform-state drift exposes a failure of free-stream preservation, likely in grid-velocity fluxes or Jacobian time updates. Fix the geometric conservation law, verify forward and inverse maps and metric identities, then repeat the manufactured wave and strong-field invariants across resolution.