waxmorph.simulator#
Prescribed Warp mechanics, chemistry, growth, and division in model units.
Division grows the active prefix up to caller-owned capacity. Mechanics stores a
potential gradient and applies X_next = X - lr * f_net; the differentiable
emulator stores a physical force and adds it. The paths share abstractions and
provide purpose-built kernels and cell-type behavior. CT encodes
mesenchymal as 0 and epithelial as 1.
Functions
|
Run contact diffusion followed by masked or unmasked reaction. |
|
Atomically accumulate into caller-zeroed neighbor counters. |
|
Initialize one deterministic RNG key per array index. |
|
Apply bounded growth in model units. |
|
Advance prescribed mechanics using explicit pair derivatives. |
|
Advance mechanics with local autodiff for polarity and thickness potentials. |