Physics engine / Surfaces

Volume and pressure

A closed surface encloses a volume; a pressure that depends on that volume pushes on every face.

Checked against theory in a code test

Laws

Enclosed volume and pressure

Checked against theory in a code test

a closed surface encloses a volume

\[\mathbf f_a=\tfrac{pA}{3}\hat{\mathbf n},\quad p=p_0+K_V\tfrac{V_0-V}{V_0},\quad V=\tfrac16\sum_f\mathbf x_a\cdot(\mathbf x_b\times\mathbf x_c)\]
Built as
Volume by the divergence theorem. The recorded runs used a linearised van 't Hoff pressure on each face; since 7 October that pressure law is a declared comparison arm.
Inputs
4 rows, EXAMPLE (HeLa proxy pressure)
Evidence
CUDA tests on a card (sign, Hessian vs central difference); constant-pressure balance as in rung 5.

Volume law since 7 October (PI decision): explicit solute osmosis. Water crosses each permeable surface down the osmotic difference of Na+, K+, Cl- and large impermeant anions, and the ions themselves are transported. The osmotic law has not yet run in a device record (its unit worlds are still to run).

Where it lives in the code

  • aleph/physics/operators.py
  • aleph/physics/volume_consistent.py

Inputs

InputValueTagSource
membrane.volume_modulusderived (van_t_hoff_modulus) pN/um^2example
PI decision 2026-09-16 18:57: KEEP. The enclosed-volume law p = p0 + K_V (V0 - V)/V0 (Surfaces.k_volume, 2026-09-16, RESULT-2026-09-15 s10.4): the… more linearised van 't Hoff law of an enclosed ideal solution, K_V = pi_internal = 300 mM x 2577 pN/um^2/mM (a ~300 mOsm internal solution x osmotic.pressure_per_mM; d pi / d ln V = -pi at fixed solute; water crosses on the osmotic time scale, which is far longer than these steps). DERIVED since param-ledger-1013 (PI 2026-10-13 16:30, audit #16): osmotic.external is now a row, so the product is derived instead of typed (300.0 x 2577.0 = 773100.0 exactly, bit-identical to the former typed value; the internal solution is taken isotonic with the medium, as the source above states). It was SWEPT 77310-7731000 (factor 10, 'nothing better'); that range is retired with the typed value: sweep osmotic.external (260-340 mM) or osmotic.pressure_per_mM. An internal osmolarity different from the medium's is a new row, not a number typed here. Since PI 2026-10-07 21:03 (Q5) the K_V/V0 COMPARISON ARM only: with solute.ion_transport = 1 (shipped) the core releases it on every transporting surface and records the replaced value (cell/solute_build.osmotic_term); it acts again only with osmotic.water_permeation = 0.
envelope.volume_modulusderived (van_t_hoff_modulus) pN/um^2example
DERIVED (R-D3, realism audit 2026-10-03, PI 2026-10-06 19:09; aleph/cell/derive.van_t_hoff_modulus): K_V = nucleus.impermeant_conc x… more osmotic.pressure_per_mM, the linearised van 't Hoff law of the solute the envelope does NOT pass. The nuclear pores pass water and ions, so only the macromolecular colloid holds the nuclear volume. Until 2026-10-06 this was the typed VALUE 773100 = 300 mM x 2577 (PI 2026-09-16 18:57 KEEP, 2026-09-29 decision 12 kept valued): the ~300 mOsm ION basis, which the pores equilibrate — a K_V ~150x stiffer than the colloid's. Without any volume law the envelope deflated 29 % in 3 ms at dt 1e-4 (P8m, 2026-09-16); the derived value has NOT been run.

Experiments