Physics engine / Time step

Implicit step

Each time step is an implicit solve of the whole world's energy with Newton iterations and a line search. A step that stops at its iteration budget is recorded as FORCE-ACCEPTED; the native runs on this site are all in that class.

Laws

This part has no law card of its own; it is the machinery the laws run on.

Where it lives in the code

  • aleph/physics/implicit.py
  • aleph/physics/integrate.py
  • aleph/physics/predict.py
  • aleph/physics/newton_row_merit.py
  • aleph/physics/diagnostics.py

Inputs

InputValueTagSource
sim.fluid_thermal_stress_white0 1example
TSFIX-1015 numerical arm (default OFF), not a material parameter. 1: node-only staggered reciprocal thermal coupling eliminates both proximal alpha… more terms and subtracts the cached previous-anchor velocity; exact white FDT for fixed-geometry overdamped free nodes. Derivation and limits: outputs/lanes_1015/TSFIX/HANDBACK.md; host covariance algebra only, no device verification. Needs fluid_thermal_stress, partitioned coupling, float64, no coupled faces. No amplitude is fitted.
sim.monolithic_pressure_patch0 1example
FLUIDRES 2026-10-16 user-authorized default-OFF arm after 72f9ae9aa two-held-pressure refusal. Exact Dirichlet lifting of the existing pressure_patch… more values: q_bar=dt*dx/eta*p_bar, B_f=-(eta*dx/dt)*K_fluid[0;q_bar]. Both held tags are excluded from corrections; -B dot Y enters gradient and merit; physical pressure restores p_bar. No new pressure law, scale, gate or stop. Host algebra/codegen only until native confirmation.
sim.dt1e-05 sexampleimplicit elastic step: 1e5 x the explicit limit gamma/k ~ 1e-10 s of a solvent-dragged 50 nm actin segment; EXPLICIT stepping needs ~1e-11 s
sim.fast_mode_iters2 1example
iterations m of the fast-mode chain zeta_j = M^-1 (W zeta_(j-1) + xi_K) realised beside the trajectory for observables (energy.fastmodes;… more DESIGN-2026-09-24-c5-fast-modes, PI 20:27 A2): per mode Var zeta = kT/(2D+k) (1 - (1+k/D)^-2m); the worst unfilled share of kT/k is 9.0 / 4.6 / 3.1 % at m = 1 / 2 / 3 (near k = 0.6 / 0.3 / 0.2 D), none for a stiff mode; one linear solve per iteration per recorded sample
sim.fluid_iters20 1exampleouter Uzawa iterations per step; the achieved Stokes residual is recorded every step, never compared
sim.inplane_count_floor_fraction0.05 1example
positivity guard, not physics: no face may fall below this fraction of the count it was built with, because a face whose reference area reaches zero… more has no tension law left. Enforced by scaling each edge's one antisymmetric flux with its donor face's allowance, so the guard cannot create or destroy material the way clipping each face after the update would. One starved face therefore does not freeze the whole sheet. A run that reaches the floor is a run whose redistribution was limited, and the minimum donor allowance is in the record; it is not a failure of the step.
sim.inplane_flow_cg_iters4096 1example
numerical CAP, not physics and not the expected count: the most Jacobi-PCG updates the backward-Euler edge solve of physics.surface_count_flow may… more spend in one step. The solve stops on its own criterion (no face count wrong by one unit of material: ||r||_2 <= 1/(dt sqrt(6) c_max), module docstring 'Convergence'), warm-started from the last flux where that start is nearer; a step that reaches this cap first is recorded as under-solved (report solve_cap_hit = 1, with solve_defect_norm against solve_stop_norm), never rejected. The launches are fixed (no host read inside the step), so a converged solve spends the remainder as device no-ops. 4096 = 2 x the CG Chebyshev bound 0.5 sqrt(kappa) ln(2/eps) at the finest swept spacing (resolution.spacing 0.05 um; kappa <= 1 + 6 dt c g ~ 4.1e4 at dt 1e-2, eps ~ 3e-9 on a 7.5 um GUV) ~ 2.1e3; the host mirror needed 787 cold updates on a 0.07 um GUV icosphere with 1 % count noise. Conservation of the total count does not depend on this number (the unknown is the per-edge flux and every edge hands its two faces the same value with opposite signs); an under-solved step redistributes LESS, never more or from nowhere. The per-step record reports aggregate count/conservation and solve diagnostics; the per-face count and the warm-start flux are declared dynamic provider state, but continuation still requires recorder integration and a verified restore.
sim.reserve_horizon30.0 sexample
the physical run length a build's runtime RESERVES are sized for (PLAN-2026-10-03-inventory-transport-adhesion stage 2: 'derive the reserve size from… more the run length'; runs of 20-30 s there, the upper end taken). A declared protocol number, not a cell property; read by derive.records_per_site (arp23.nucleation_records_per_site). A run longer than this saturates its reserve and the step is counted (physics/chain_birth no_record), never raised — the record's saturation step is what a claim must be read against. NOTE-2026-10-07-chain-birth-admission §3
sim.surface_diffusion_max_crossings32 1example
Numerical triangle-unfolding budget per label and physical step. Exhaustion retains the pending displacement and a sticky diagnostic; no density is… more reduced or path silently discarded. Native timestep/crossing convergence is unmeasured.
sim.fluid_tol_share0.0 1numericalthe v1 Uzawa tolerance stop; 0 = off (the fixed count). Was core.py's in-code fallback when the cell file had no row
sim.fluid_check_every0 1numericalcadence of the tolerance stop; 0 = off. Was core.py's in-code fallback
sim.fluid_tol_dp0.0 1numericalthe sealed bore's pressure stop (PREREG-2026-09-25 amendment 11); 0 = off. Was core.py's in-code fallback
sim.free_gmres_restart40 1numericalGMRES restart length of the free-space fluid step. Was core.py's in-code fallback 40
sim.free_gmres_cycles2 1numericalGMRES restart cycles of the free-space fluid step. Was core.py's in-code fallback 2
sim.conform_minres_iters300 1numericalfixed MINRES budget per solve (S1 term) / per Newton iteration (S2 step); the history is recorded and judges nothing
sim.conform_ale_sweeps20 1numerical
CG iterations per step of the interior vertex displacement on the P1 Laplacian of the build geometry (conform_device.ConformStokes.ale),… more warm-started; was graph-average Jacobi sweeps until 2026-10-08 (that inverted a shell tet in the S1 rotate arm). Host: 20 CG iterations keep min V/V_build >= 0.85 over 0.1 rad at h = 0.25
sim.conform_coarse3 1numerical
the velocity block's preconditioner: 0 block Jacobi only, 1 additive SA-AMG on the P2 nodes, 2 additive P2->P1 two-level, 3 the symmetric… more multiplicative V-cycle P2 -> P1 -> SA aggregates (damped block-Jacobi smoothing, weight 1/(amg.device.omega_factor lambda_max)). S1 card 2026-10-08 (1816933a3, 3090): arms 1 and 2 are NOT mesh-independent (never 1e-8 in 300 at h <= 0.35); 3 (the default from 2026-10-08) is the standard optimal-Stokes velocity block; 1 and 2 stay as parallel arms (PARALLEL-TRACKS)
sim.conform_amg_size= amg.device.size 1numericalaggregate size of the conform coarse term = the device AMG's
sim.conform_amg_nu3 1numerical
smoothing per level of the conform velocity preconditioner (the Chebyshev degree with sim.conform_cheb_lower > 0; the SA aggregates' own sweeps too).… more Host 2026-10-08 (R=2.5, a=0.5, exact P1 coarse, MINRES to 1e-8): Chebyshev deg 2: 56 / 70 / 81 at h = 0.8 / 0.5 / 0.35; deg 3: 49 / 58 / 66 (7 vs 5 operator applies per cycle). Was bound to amg.device.nu (2)
sim.conform_amg_power_iters= amg.device.power_iters 1numericalpower iterations for the smoother weight = the device AMG's
sim.conform_amg_bottom= amg.device.bottom 1numericalcoarse unknowns at which the hierarchy is densified = the device AMG's
sim.conform_cheb_lower0.1 1numerical
the V-cycle smoother (sim.conform_coarse = 3): 0 = damped block Jacobi (weight 1/(amg.device.omega_factor lambda)); > 0 = Chebyshev of degree… more sim.conform_amg_nu on [this x lambda, omega_factor x lambda] (the common smoothing interval, e.g. PETSc's PCMG Chebyshev default 0.1/1.1). Host 2026-10-08 (R=2.5, a=0.5, h=0.8, exact P1 coarse): Jacobi nu=2 78 MINRES its, Chebyshev deg 2 56, deg 3 49
sim.host_sync_every1 1example
NOHOSTSYNC / PI 2026-10-16 speed lanes: numerical observation cadence, not a physical or inference parameter. 1 preserves all existing host poll… more calls. k>1 observes every kth Newton iteration / CG check opportunity (Newton watch every kth CG iteration); device stop predicates and tolerances unchanged. Experimental range up to the existing _Poll.SLOTS=64; no device speed evidence. CoreOptions overrides a non-default cadence; the engine-default option follows an explicit spec override.
sim.cluster_balance0 1example
XLINKCONV user-authorized numerical arm, 2026-10-16. Boolean algorithm selector: 0 incumbent additive B+C; 1 B+(I-BA)C(I-AB), derived from the… more symmetric positive quadratic form v.B.v+((I-AB)v).C.((I-AB)v). Existing cluster blocks required. No measured value selected; no physical law or stop change. Default OFF; host algebra only until device A/B.
sim.partitioned_local_permeation0 1example
C29PERM user-authorized alternative dissipation arm, 2026-10-16; default OFF. Normal gamma=|J|^2/(Lp A) from monolithic.node_rows_np; tangent is the… more projected incumbent grid-friction quadrature. Replaces rank-one volume dissipation on declared permeable surfaces. Reciprocal reaction and matched force-noise factor, no fitted scale. Host constitutive evidence only; native validation pending.
sim.monolithic_smoother_sweeps2 1swept
red-black sweeps of the solvent block's symmetric smoother in the monolithic step's block preconditioner… more (coupled_solve.MacCoupledSolve.precondition): a solver setting, recorded in the ledger
sim.monolithic_block_precond0 1example
MINRESPC PI task 2026-10-16: default-OFF numerical arm, same saddle and FDT. Closed-box A=-dx^2 Laplace, B=dx grad; pressure inverse I or (B.T… more diag(A)^-1 B)^+; membrane nodes keep the existing augmented 3x3 inverse. Static aggregation Galerkin V-cycle: aggregate size from amg.device.factor, bottom cap from amg.device.bottom, paired sweeps from sim.monolithic_smoother_sweeps, Jacobi weight derived from the absolute row-sum bound. No result-selected coefficient. Internal walls and pressure patches explicitly unsupported in this arm. Host algebra only, device validation pending.
sim.monolithic_flux_orthogonalize0 1example
MINRESFLUX PI task 2026-10-16 (direction Lead, work session 6d host finding outputs/diag_1013/minres_flux_1016): default-OFF exact change of… more constraint basis K' = T K T^T, b' = T b, x = T^T x'; T is the identity except the flux rows. c_s = argmin ||b_s - B_p^T c|| from B_p B_p^T c = B_p b_s (closed-box pressure Laplacian, gauge c[0]=0) by AMG-PCG with the static aggregation hierarchy (amg.device.factor, amg.device.bottom, paired sweeps sim.monolithic_smoother_sweeps), warm-started, fixed budget sim.monolithic_minres_iters, scalar guards implicit._TINY; no tolerance, no fitted coefficient. Any invertible T gives the same solution; c_s changes only conditioning. Flux preconditioner scalar = diagonal Schur 1/(r_s P_u r_s^T). Refreshed with SaddleOperator.refresh. Refuses: no closed surface, internal walls, pressure boundaries/patches, tangent slip rows. Host algebra only, device validation pending.
sim.monolithic_minres_iters2000 1swept
MINRES iterations per Newton iteration of the monolithic surface-solvent step (energy.monolithic; DESIGN-2026-09-25-c5-monolithic-stage2 §4, PI M7):… more a fixed budget, the recurrence's residual estimate recorded per iteration, never compared; PREREG-2026-09-25-c5-monolithic-physics Q-a predicts <= 1000 to 1e-8 at L = 64 dx
sim.monolithic_rfd_eps1e-08 1swept
the relative accuracy the monolithic step's solves are declared to reach (PREREG-2026-09-25-c5-monolithic-physics Q-a: 1e-8); it sets the stochastic… more drift's random finite difference delta = eps^(1/3) dx, balancing the O(delta^2) truncation against the eps/delta solve error (DESIGN-2026-09-25-c5-monolithic-stage3-T4-addendum, approved 03:09 under the PI's delegation): a solver setting, recorded in the ledger
sim.partitioned_fluid_saddle0 1example
C29FIX PI 2026-10-16 02:42: default-OFF solver arm. 1 solves the SAME collocated Stokes/Brinkman saddle using MINRES with velocity Jacobi and… more diag(G.T diag(A)^-1 G) pressure scaling. Derived from the actual discrete operator, no regularisation or fitted scale; sim.fluid_iters remains the fixed budget. No device evidence.
sim.local_drag_budget_audit0 1example
C29FIX PI 2026-10-16 02:42: default-OFF record-only endpoint readings. 1 records thermal_displacement with local normal gamma removed from the… more reference variance and athermal dissipation, plus legacy kT/dx. No stopping, arrival or decision change.
sim.loop_guard_enabled0 1example
Process-wide diagnostic arm; 0 OFF, 1 enables finite execution budgets for data-dependent loops. HANGHUNT-1016 user request, not a physical or solver… more stopping rule. Read at import before Warp codegen; set in ALEPH_ENGINE_FILE, not per-case cell overrides.
sim.loop_guard_max_iterations1048576 1example
Execution budget per invocation of a data-dependent loop, used only with sim.loop_guard_enabled=1. 2^20 is an explicit debugging work budget, not an… more event expectation or a fitted measurement; exhaustion is a fatal execution fault, never a truncated physical result. Existing smaller algorithmic budgets and their records stay unchanged. Maximum is the signed device counter range.
sim.loop_guard_max_seconds60.0 sexample
HANGHUNT-1016 host execution watchdog: one minute per loop invocation or pending poll event. Explicit diagnostic work budget, not fitted to any run… more or physical stopping threshold. Default OFF through sim.loop_guard_enabled. Checked between Python iterations/queries; cannot interrupt an in-flight C or driver call.
sim.face_area_penalty_continuation0 1example
HANGHUNT user-authorized solver candidate, 2026-10-16: default OFF. 1 applies rho_j = rho_reference * (1 + j * sim.face_area_penalty_increment)… more inside the existing face-area ALM rounds, j zero based; resets the schedule at each physical step, carries multipliers, keeps targets and stop rules. Exact-inner host algebra only; eca7e19/native seed 1/2 evidence unavailable in this lane, so this is a candidate, not a diagnosed native fix.
sim.face_area_penalty_increment1.0 1example
Numerical continuation increment in units of the reference penalty per ALM round. Unit ramp is an explicit solver example, not fitted to device… more measurements; sweep from constant penalty (0) to adding one reference penalty per round (1). With the existing 10 rounds, scale is 1 through 10, not a new iteration cap. No area tolerance, multiplier convergence test or threshold added. Host algebra: error contraction K/(K+A0*rho_j) for an affine area constraint and SPD quadratic; not a general convergence guarantee for inexact/nonconvex U1 solves.
sim.remesh_keep_locked0 1example
B8STALL method arm: 0 retains incumbent rejection of a short edge incident to a locked node; 1 permits collapse onto exactly one locked endpoint at… more its unchanged position, retaining its identity and geometric ancestry. Both locked endpoints still refuse. Existing link, normal, length and conservation checks remain. Boolean alternatives, not a value fitted to a record; host-written only.

Experiments