Follow what the solver must preserve, how each algorithm updates it, and what evidence would establish that the implementation is correct.
A review path, not a certificate. Current equations describe implemented behavior. The selected regular-grid candidate below specifies new work to implement and qualify. This documentation adds no numerical runtime capability or CUDA acceptance result.
Current implementationProposed designUnresolved derivation
Read the idea. Open the equations. Follow the evidence.
Each topic starts with its physical purpose. Expand the derivation, then follow links to the full specification, current implementation or validation protocol. Open decisions remain visible.
PolyCFD advances constant-density, incompressible flow. Pressure enforces continuity; viscosity diffuses momentum; applied forces and boundaries can change total momentum and energy. Pressure is stored at cell centers, and U, V and W at the corresponding faces of a staggered MAC grid.
Equations, units and the conservative form
∂u/∂t + (u · ∇)u = −∇p + ν∇²u + f
∇ · u = 0
p = physical pressure / ρ
Here u is velocity [m/s], ρ is constant density [kg/m³], p is kinematic pressure [m²/s²], ν is kinematic viscosity [m²/s], and f is acceleration [m/s²]. Every term in the momentum equation has acceleration units.
∇ · (u ⊗ u) = (u · ∇)u + u(∇ · u)
The two transport forms agree for a continuously divergence-free field. Discrete interpolation, divergence and flux operators need their own compatibility argument; the continuum identity does not prove that the implemented updates agree.
A cell-centered scalar uses a cell control volume. U momentum uses a control volume around an X face, shifted by half a cell; V and W have their own volumes. On a uniform periodic grid their regular volumes equal the cell volume, but their locations differ. Boundary and cut volumes need explicit definitions.
Boundary conditions are applied between stages. A small pressure residual or final divergence answers a different question from whether advection transported momentum accurately.
Pressure signs, backward-Euler diffusion and the divergence cancellation
D is the implemented divergence, G the effective correction gradient including solid-face masks and correction boundary treatment, L the viscous operator, and φ the pressure increment. These equations abbreviate boundary forcing and imposed face constraints. The pressure operator must match the correction actually applied, including skipped solid-adjacent faces.
D(uⁿ⁺¹) = D(u*) − Δt DGφ
= D(u*) + Δt Aφ ≈ 0
This cancellation requires the same compatible D and G in the solve and correction. Remaining divergence depends on solver error, boundary treatment and geometry. Closed/periodic connected components need a compatible right-hand side and a pressure gauge; a gauge fixes pressure's arbitrary constant, not velocity error.
Backward-Euler diffusion is first order in time. A higher-order transport step alone does not make this complete split method second order. Optional residual projection has its own restricted scope. Moving geometry uses a separate full-pressure formulation and a geometry-dependent continuity target.
Drill further: pressure solvers, diffusion iterations and boundary stencils
The pressure equation uses one shared preconditioned conjugate-gradient loop with Jacobi or geometric multigrid preconditioning. It handles the weighted compatibility and gauge of each unanchored pressure region, including static disconnected domains. Multigrid's coarse correction grids accelerate the linear solve; they are separate from physical AMR levels.
Diffusion solves the backward-Euler equations with Chebyshev semi-iteration on undamped Jacobi and a bounded colored Gauss–Seidel fallback. Their stopping criteria assess the discrete equation residual, including boundary forcing. A converged algebraic solve does not establish that the spatial or temporal discretization is accurate.
Check the equation solved. Then check the velocity kept.
Existing solver · further qualification planned
At revision 5c4984e, SOL-02 has delivered distinct coarse right-hand-side buffers, adjoint restriction and matching Chebyshev smoothing. The multigrid guide gives a whole-cycle symmetry and positivity argument under stated operator assumptions. Those fixes do not need to be proposed again.
True residual, compatibility and final continuity
A = −DG, b = −D(u*) / Δt
r_true = b − Aφ
u_new = u* − Δt Gφ
D(u_new) = −Δt r_true
This identity is for static geometry, homogeneous correction data and consistent operators, with no subsequent velocity changes. It relates an independently evaluated pressure residual to continuity; it does not identify the solver's recursive residual with that value.
PRJ-01 must report the compatibility adjustment separately and measure final stored velocity after all domain and solid constraints. Moving geometry needs its own continuity target. A small adjusted equation residual cannot hide an incompatible physical target or a later change to velocity.
The successful PCG path currently stops on a recursive, compatibility-projected residual. Qualify that behavior against independent checks. Any new production check must finish numerically on the GPU and have its cost measured; this is not a requirement to download fields or audit every iteration on the CPU.
Whole-cycle guarantees and their limits
Check the weighted inner product, pressure subspace, transfer adjointness, coarse solve, unchanged RHS and scratch roles together. The existing construction argument assumes symmetric flux operators on every participating level. Geometry crossing a periodic seam can violate that assumption; sampled convergence does not establish a universal guarantee.
Retain the new SOL-02 tests and recorded regression results. Extend evidence for the declared scope without treating solver convergence as proof of physical accuracy or prescribing a wholesale solver rewrite.
One physical condition. Several numerical responsibilities.
Current contracts reviewed · BC-01 / BC-02 planned
A wall, inlet or outlet describes the physical problem. A pressure stencil, diffusion stencil and transport stage each need a precise numerical rule for that condition and field component. Periodicity instead connects opposite sides of the domain; an interior patch edge and a coarse/fine interface require exchange and coupling.
Current pressure and diffusion: where is the prescribed value?
Pressure is cell-centered. For a prescribed physical-face value p_B, the ghost center lies half a cell outside and the adjacent unknown lies half a cell inside:
(p_I + p_G) / 2 = p_B
p_G = 2 p_B − p_I
zero normal gradient: p_G = p_I
This places p_B on the face. Storing p_B directly at the ghost center would impose a different stencil. In the static incremental formulation, retained physical pressure enters the predictor; a fixed-pressure boundary uses zero pressure increment, φ_B = 0, so its correction ghost is φ_G = −φ_I. Accumulation then restores the physical pressure condition. Physical pressure and homogeneous correction data must remain distinct.
Tangential Dirichlet: u_G = 2 u_B − u_I
Tangential zero gradient: u_G = u_I
Prescribed normal face: u_face = u_B
A normal MAC sample lies on the wall. A tangential sample lies half a cell inside, so diffusion folds its ghost relation into the stencil instead of overwriting that interior unknown. Slip/symmetry fixes normal velocity to zero and uses zero normal derivative for tangential velocity. Current diffusion uses these distinctions without persistent GPU velocity halos.
Current transport gaps and the AMReX-Hydro comparison
Our advection kernels receive periodic flags and otherwise clamp departure samples. Standard domain patches set only the velocity component normal to each face. They therefore do not provide explicit tangential exterior inflow data to the sampler. An oblique inviscid inlet with prescribed tangential velocity is a focused CUDA reproduction case; this code review is not an executed accuracy result.
Velocity ZeroGradient application leaves the boundary face unchanged. There is no explicit inlet/outlet reversal policy. MacCormack applies BCs to the original state, then samples its forward scratch in the reverse pass without a separate boundary application. BC-02 must establish the appropriate rule at each stage and measure boundary-adjacent accuracy.
AMReX-Hydro specifies component-aware exterior and predicted edge states, including direction-dependent inflow and reversal handling for extrapolation outflows. These belong to its Godunov stages. They are not interchangeable with our current clamp sampler, and applying an outflow clamp after pressure projection can alter the divergence that was just corrected.
Keep the physical declaration, per-component operator rule and stage-specific values distinct. Adopt AMReX names where the implemented meaning matches; do not relabel today's ZeroGradient behavior as foextrap and imply equivalent transport.
Planned acceptance: setup consistency, then numerical evidence
BC-01: make scenario and typed setup enforce the same supported periodic and physical boundary combinations, including periodic sample correspondence. AMR-02 then resolves periodicity once as domain topology and derives compatible component/operator descriptors while preserving numerical behavior.
BC-02, coordinated with TRN-01: qualify tangential inflow on each axis and side, wall/symmetry sampling, outward and reversing outlet flow, MacCormack stage behavior and periodic seam continuity. Deliver a filled table of field times, carrying velocity, exterior values and constraints at every stage for each enabled method. Use manufactured or exact references, boundary flux and momentum budgets, and divergence checks after the complete step. Preserve diffusion and pressure regression evidence.
Declare the supported boundary subset before testing it. That scope must pass on one grid before S2 accepts its partitioned transport; S3 adds its own coarse/fine evidence. General position-dependent mixed boundaries, Robin conditions and new features remain deferred.
Use compact device descriptors, inline boundary evaluation and GPU numerical checks. Record payloads and cadence for allowed setup metadata, and measure complete runtime and memory cost. Extra halo allocations need an actual stencil requirement.
Semi-Lagrangian transport finds a departure point and interpolates the old field there. Limited MacCormack adds forward/backward error correction. Both operate on the same MAC velocity state, and both are currently supported.
Follow the RK2 and MacCormack equations into the kernel
x_mid = x − (Δt/2) I[uⁿ](x)
x_dep = x − Δt I[uⁿ](x_mid)
F = S_Δt[uⁿ](qⁿ) = I[qⁿ](x_dep)
B = S_−Δt[uⁿ](F)
q_adv = clamp(F + ½(qⁿ − B), q_min, q_max)
q is one face-velocity component; I interpolates its staggered samples, and S is the backtrace/interpolation operation. Semi-Lagrangian returns F. MacCormack uses the final expression. Both passes use the original carrying velocity uⁿ, including the reverse pass; the reverse transported field is F.
The bounds are the forward interpolation stencil's valid minimum and maximum. Geometry-aware sampling adjusts midpoint and departure locations out of solids and excludes blocked samples. Those modifications and limiting affect accuracy; the regular-grid formula alone does not qualify cut cells.
There is no shared momentum flux subtracted from one volume and added to the next. For an interpolation matrix W, preserving a constant means W1 = 1; preserving a weighted total would also need vᵀW = vᵀ, where v contains control-volume weights. The first condition alone does not imply the second. Limiting makes the overall operation nonlinear as well.
A conservative update evolves an amount inside a control volume. Neighboring volumes use the same interface transfer with opposite signs. This algebra establishes cancellation of internal transfers; it does not establish that their magnitudes are accurate.
Volume A10 → 8
2 units →one shared transfer
Volume B4 → 6
Arithmetic illustration with no external flux or source. These are amounts, not velocities and not simulation results. Total: 14 before and after.
Control-volume balance, flux orientation and dimensions
For this fixed-volume balance, q̄ is a volume average, Q an amount, and S the integrated source. Choose one orientation n_f for each shared face. The incidence sign s is +1 when it points outward from K, and −1 when inward. T includes area and time exactly once.
For scalar advection, F = q u. In three dimensions, T has units [q] m³, matching Vq. For density-normalized momentum q = u_i, Q has units m⁴/s; multiply by constant density for physical momentum [kg m/s]. Pressure and viscous stress are additional transfers, not included in this advective flux.
ΔQ_A = −T_f, ΔQ_B = +T_f
Δ(Q_A + Q_B) = 0
Floating-point accumulation still needs a declared, scale-aware tolerance. At physical boundaries only the interior contribution exists, so the domain total changes by boundary exchange and sources.
An illustrative second-order scalar building block
Example only: a fixed 1D regular grid, constant speed a, periodic boundaries, cell-average scalar q, spacing h. This is not the selected 3D momentum algorithm.
Minmod returns the smaller magnitude with the common sign, or zero when signs differ. Reconstruct fluxes again at q¹. The two-stage SSP Runge–Kutta update uses the average of both stage fluxes for its integrated transfer. A cautious sufficient bound for this specific constant-speed, minmod example is |a|Δt/h ≤ 1/2.
Second-order behavior concerns smooth resolved regions; limiting reduces order near extrema and sharp profiles. Neither this bound nor this reconstruction can be copied unchanged into multidimensional cut-cell MAC momentum. Derive and test that method's own conditions.
Selected design · implementation and qualification pending
Use limited MUSCL reconstruction and two SSP Runge–Kutta transport stages. Both stages use the same accepted, projected velocity to carry momentum. Reconstruct the transported component separately at each stage, then apply forces, old pressure, diffusion and one final pressure projection.
First scope: one regular periodic grid, constant density and viscosity, stationary all-fluid geometry. U, V and W represent numerical averages over their own shifted momentum volumes. The initial 3D prototype has at least four cells per axis. Physical boundaries, cut cells and motion remain separate extensions.
2D slice: one x-momentum volume. Each face carries a separately reconstructed U value. Arrows define positive flux orientation; negative velocity reverses the transfer.1. Construct all four carrying velocities and transported states
For q₀ = u_(i+½,j), let q_W, q_E, q_S and q_N be adjacent U values. Each component uses its own minmod slopes in each direction. In the table, u and v always come from the immutable accepted velocity; q and its slopes come from the current transported stage.
F includes face area once. In 3D, its physical counterpart ρF has force units; integrating it over time gives transferred momentum. The 2D slice uses rates and transfers per unit depth. In 3D add top/bottom W averages; off-diagonal fluxes lie at edge centers. V and W momentum follow by permuting axes.
2. Why the carrier balances without another projection
Substituting the averages cancels the middle U sample and averages the two V differences. Thus zero divergence on the adjacent pressure cells gives zero divergence around this shifted volume. The 3D identity adds the corresponding W differences.
This exact regular-grid identity lets us reuse the accepted projected field as carrier. With a finite pressure residual, its dual divergence is the same average of the remaining native divergences. Cut cells and refinement interfaces need a new construction.
3. Two transported stages, one frozen carrier and the actual transfer
The second stage reconstructs from q¹ but still reads the original U/V/W for its carrier. q¹ need not be divergence-free and must not become the carrier. Both neighbors consume the same I with opposite signs; using only the second-stage flux would not reproduce this update.
4. The selected complete timestep and its periodic boundary stages
One ordinary step; initial-data projection is separate setup
Stage
Action
Boundary / field validity
Prepare
Check accepted continuity, finite values and device CFL.
Canonical periodic endpoints and pressure halo; one independent sample per periodic location.
Transport twice
Use the frozen carrier and minmod states above.
Wrap unique indices at each stage. Finish q¹ before reading it for second-stage fluxes.
Commit transport
Finish all U/V/W outputs before replacing old state.
The old carrier remains read-only through its last consumer; refresh endpoint copies.
Force / pressure
R = U_adv + Δt fⁿ − Δt Gpⁿ.
Prescribed acceleration at tⁿ; retained pressure has a valid periodic halo.
A = −DG; zero initial correction, mean-zero gauge, periodic refresh. Optional residual projection disabled.
Check final state
True residual, final continuity, momentum and energy budgets.
Check after all endpoint refreshes; complete numerical reductions on GPU.
This uses one primary Poisson solve and, when viscous, three component diffusion solves. It follows the existing static integrator ordering; the conservative advection kernels are new work. The boundary plan's stage table records the first periodic scope. Physical inlet/outlet and wall rules are still to qualify.
5. Timestep, GPU storage and what remains to measure
λ_K = Σ_r max(max(a_r+,0), max(−a_r−,0)) / h_r
Δt × max over all component volumes of λ_K ≤ ½
Both side velocities use positive-coordinate signs. This sufficient multidimensional limit makes each forward-Euler transport stage a convex combination of minmod endpoints when the carrier divergence is zero. It preserves constants and global component bounds under those assumptions. Pressure and forces can change the final velocity extrema.
Use an immutable old velocity, a full output velocity, one reusable component-stage buffer and one reusable directional flux buffer. No stored slopes or carriers are necessary. Added float storage is 4(S + M + N) bytes: S stored MAC samples, M the largest component, N unique cells. At 128³ that is 40.25 MiB, before existing solver workspaces and reductions. The stencil reaches two samples per direction.
The unfused schedule has 18 flux constructions and 18 directional divergence accumulations per 3D step. One pressure solve does not imply unchanged runtime. Measure end-to-end cost, device memory, accuracy and energy error to the same physical endpoint. All repeated numerics, CFL and complete reductions stay on GPU.
The small exact-arithmetic checker checks carrier identities, constants, bounds, cancellation and weighted transfers. It reads no simulation fields and is not a CPU solver, CUDA result or accuracy study. TRN-01 next implements the candidate and tests it against frozen accuracy and cost targets; useful existing methods remain available.
The solid cuts the fluid. A patch join only splits storage.
Current cut-cell representationInterface readiness still to qualify
An embedded boundary describes a solid inside the Cartesian grid. Today we store the fluid fraction of a pressure cell, κ, and the open fraction of each Cartesian face, α. The actual solid wall is a different surface from those grid faces. Keeping that distinction explicit matters for wall conditions, conservation and later patch interfaces.
Geometry, not a solved flow. A 2D section illustrates the 3D volume fraction κ and face-area fraction α. The pressure sample stays at the Cartesian cell center; a cut cell's fluid centroid can lie elsewhere.Proposed S2 contract. Each schematic cell belongs to a different patch. Both patches must use the same physical aperture and shared flux, with opposite outward signs. Splitting storage must not create a new solid wall.
What our current embedded-boundary implementation represents
The SDF is positive in fluid. Corner samples determine Cartesian-face apertures; a fitted plane estimates cell volume. κ and α use Half storage. A center-based fallback and solid thickening handle some thin features missed by corners; thresholds can close tiny fluid regions. These measures do not resolve sub-cell geometry or provide conservative redistribution.
Pressure uses aperture-weighted face fluxes and the stored fluid volume. The geometry model does not provide a general set of fluid/face centroids, cut-surface areas or multiple fluid regions within one cell. AMReX alignment needs an explicit mapping of signs, normals, locations and supported topology; renaming types must not silently change those meanings.
BlockedOnly preserves partial-face flux at the constraint stage. NoSlip closes cut faces at that stage, effectively thickening the solid; later pressure correction can affect them, so check the final stored velocity. Resolved-body no-slip treatment also needs the supported immersed-wall shear and geometry-aware advection options: SDF-intercept viscous terms supply wall interaction, while departure-point correction and blocked-sample exclusion support transport. These options are not universal defaults.
What should be ready before a solid crosses an S2 patch interface?
First, qualify the static single-grid foundation. Measure analytic geometry errors, consistency of geometry and pressure operators, final continuity and true-wall normal velocity under grid refinement. Keep declared wall-treatment options and force checks explicit.
Then, qualify the same cut problem under a storage split. Use global coordinates, canonical shared metrics and stage-correct geometry/field halos. Preserve connected pressure regions and gauges across the join. Compare split and unsplit fields, fluxes and measurements.
Keep later numerical extensions separate. TRN-01 still needs cut momentum volumes and a qualified small-cell treatment; the selected regular-grid conservative candidate excludes cuts. Moving solids and coarse/fine geometry each need their own balances and evidence.
A specific source-review item needs reproduction: isolated-cell repair can change apertures after face classes and normals were built. Check the final metadata and its consumers before making it authoritative across patches. This is a potential consistency defect, not a reproduced failure in this review.
Regular-grid S2 work can begin without a wholesale embedded-boundary redesign. Acceptance of an embedded boundary crossing a patch join needs the narrower evidence above. Existing AMReX geometry or redistribution routines are references, not interchangeable implementations of our MAC operators.
Stationary cuts, small-cell stability and moving control volumes
This is a proposed conservative scalar balance, not today's momentum update. κ and α are dimensionless fractions. Tiny fluid volumes can impose a restrictive explicit timestep. Redistribution or merging needs its own conservation, boundedness and wall evidence; solidification thresholds are not a substitute. Cut MAC momentum also needs control volumes around its staggered velocity samples.
d/dt ∫[Ω(t)] q dV
+ ∫[∂Ω(t)] q (u − w) · n dA = ∫[Ω(t)] s dV
The moving-volume identity uses boundary velocity w. Momentum also includes pressure and viscous tractions. Fluid volume change, swept transfers, newly exposed samples and wall work must agree. Keeping previous and current geometry is necessary bookkeeping; it does not by itself establish conservative remapping or geometric conservation.
S2 splits storage at one resolution. S3 introduces different resolutions. Both require coherent transport and coupled pressure; copying neighboring values alone does not establish either.
Same-level cancellation, average-down and the reflux sign
S2: fill the chosen method's stencil at every needed stage, then use one agreed transfer on the shared interface with opposite signs. Interpolation methods instead need valid departure-point sampling across patch boundaries. Demonstrate partition equivalence for each enabled method.
q̄_C = (Σ_fine V_f q̄_f) / V_C
V_C = Σ_fine V_f
This average-down equation applies to compatible nested scalar volumes. Staggered fields need placement-aware restriction. Covered coarse cells are excluded from composite physical totals. Inconsistent cut volumes invalidate the simple identity.
Orientation: uncovered coarse volume → fine region
coarse update used: −T_C
fine update received: +T_F
coarse correction: +(T_C − T_F)
T_F sums fine transfers over the same physical face and time interval. After correction the coarse update is −T_F, so the interface contributions cancel. Averaging covered coarse values and refluxing the adjacent uncovered coarse volume do different jobs.
Synchronized timesteps do not remove the spatial mismatch. Refluxing also does not enforce the incompressibility constraint: compatible transfers, composite projection, diffusion and geometry remain separate S3 work. The equations above illustrate the accounting; MAC momentum interfaces still need their specific construction.
S3-01: work through one solved coarse/fine pressure problem
Begin with one regular coarse domain and one interior aligned 2:1 fine patch, constant density and no solids. Define independent pressure and normal-velocity samples, the fine interface gradient, and how that same correction enters coarse and fine divergence. Covered coarse values are auxiliary storage, not extra physical unknowns.
Derive the composite equation before choosing the multigrid iteration. Check normal and tangential linear fields, weighted symmetry and the pressure gauge. Flux cancellation alone does not prove that PCG is appropriate.
Actually solve a tiny independently assembled reference problem and compare the GPU operator and corrected velocities against it. No invented before/after numbers count as evidence. Record the lifetime and bytes of all levels, halos, interface fluxes and scratch. An offline reference is a validation oracle, not a production CPU path.
Elliptic residual reflux reconciles operator fluxes; it is distinct from the time-integrated transport correction above. A pressure-only pass establishes that bounded projection, not full refined flow, cut-cell or moving-geometry support.
Keep the computation resident. Measure the complete algorithm.
Execution policy · migration pending
Keep working simulation fields and repeated numerical processing on the GPU. Complete reductions and dependent coefficient calculations, convergence evaluation and admissible timestep calculations there. Prohibit bulk field round trips for CPU numerical processing. Host setup and explicitly bounded control/status and layout metadata remain allowed; their synchronization and scheduling cost must be measured.
Follow a reduction through its final consumer
GPU fields → GPU partial reduction → GPU final result
→ GPU coefficient / convergence test → GPU update
Bounded coordination: GPU completion / compact metadata → host scheduling
Requested output: GPU final product → external I/O
A PCG dot product remains on-device through its final double-precision sum and coefficient calculation. A CFL reduction feeds a device-computed admissible timestep. Component labeling, pressure gauges, repeated numerical geometry, diagnostics, future tagging and field remapping follow the same resident numerical path. Small numerical partials are not control metadata: downloading them for CPU completion still needs migration.
Host setup can parse inputs, compute configuration-only constants, construct one-time static mesh acceleration structures and allocate storage. Document each control/status or compact layout transfer's purpose, payload, bound and cadence. Requested final measurements and captures are a separate output boundary, not a way to route simulation fields through CPU computation.
Current gaps:weighted reduction partials, the shared PCG recurrence, diffusion weights and audits, and CFL host arithmetic still involve CPU numerical work. Component mean subtraction now completes on-device, but imbalance reduction and larger topology classification still need migration. A bounded component-count read for allocation is allowed; downloading complete cell arrays for host classification is not an acceptable new path. The current-method formulas describe current numerics; the selected transport formulas remain proposed. Neither establishes GPU-01 acceptance.
Convergence scheduling and adaptive layout management
Evaluate convergence on-device and guard dependent numerical updates there. The host may read a bounded completion/status flag between batches to decide whether to launch more work; it must not reconstruct residuals or coefficients from downloaded partials. A scalar read can stall the stream, while blindly launching through the iteration cap can waste launch time. Compare both costs on representative problems before selecting a cadence.
Entirely device-controlled iteration needs an ILGPU/CUDA feasibility and performance prototype. CUDA provides conditional graph loops, but availability in our execution stack and a performance benefit are not established. This is an optimization candidate, not an AMR-02 prerequisite.
For later adaptation, keep tagging, compaction and numerical field transfers on-device. Bounded compact tag/layout metadata can support host clustering and allocation; record its size, frequency and cost. Fully device-driven regridding is a later optimization, not a requirement of the AMReX data model. AMReX's GPU tag collation itself includes host coordination.
Acceptance audits direct and indirect copies, including mapped host access: no bulk field downloads or CPU reduction completion in new or migrated numerical paths; bounded metadata calls/bytes and synchronization time; launch overhead, peak memory and end-to-end runtime. Count requested output separately. Preserve double weighted reductions and all scientific gates: moving a sum onto the GPU can change accumulation order and requires numerical evidence. Alignment must not sacrifice performance to satisfy a transfer count alone.
AMR-02 preserves numerical behavior while aligning device views and ownership; it does not depend on completing all GPU-01 migration. It must add no bulk field transfers or performance/memory regression, and existing gaps remain tracked. TRN-01, S2 and S3 apply this policy to their own new numerical paths without waiting for unrelated GPU-01 work.
One choice per run. Explicit support and requirements.
TRN-01 design
Retain scientifically useful current methods and introduce one qualified conservative candidate. Select the method when creating the session, record it with the scientific settings, and apply it to every patch and physical level in that run.
Small shared contract
Device field views, geometry and stage inputs; method-owned kernels and scratch; explicit stencil reach, timestep limits and capability checks. Host dispatch selects the configured implementation and schedules work. Repeated numerical processing stays on the GPU, with bounded and measured control/status metadata where needed.
Explicit integration decisions
A predicted carrying velocity or extra pressure solve changes the numerical method. Document those stages and their budgets instead of treating every candidate as an identical update.
Validate geometry, motion and layout support before execution. Reject unsupported combinations and unknown method names; never silently switch methods. Adaptive steps must honor the selected stability limit. For fixed stepping, reject a step that exceeds the current hard limit before transport changes fields; do not silently shrink it. Recheck limits as the state or geometry evolves.
Initially S3 can enable only the conservative method qualified for coarse/fine coupling. Single-level choices do not promise multilevel support. Each retained method carries its own regression and cost obligations; initial scope excludes mid-run switching and per-patch mixtures.
No bulk field transfers for CPU numerics in new paths; measured metadata calls/bytes, synchronization, launch overhead, peak memory and runtime. Requested output counted separately; existing limits preserved.
Six experiments, each with a bounded claim
Periodic regular MAC transport: momentum budget, constants, accuracy and stability.
Oblique inflow and controlled outlet reversal: declared exterior states and stage timing.
Single-grid projection: true residual, compatibility adjustment and final continuity.
The same physical grid under different patch partitions: no numerical boundary introduced by storage.
Fixed two-level pressure only: interface consistency, coupled solve and normal flux.
Complete fixed-refinement flow: required accuracy at an acceptable total cost.
Each row needs a pinned build, exact configuration, independent reference, measured quantities, tolerance rationale, executable CUDA command and result artifact. Record not run, failed or passed for that scope; these proposed experiments have not acquired new results through this documentation update.
Measure time to the same physical endpoint and required accuracy, including all projections, diagnostics and peak live memory. Follow each external reference through pinned source, equations, differences from PolyCFD, proposed adaptation and an independent test.
Maintain the equations and their status in the numerical reference. Its source map links the current implementation and distinguishes existing tests from future evidence. Method selection remains a proposal until its implementation and stated acceptance pass.