waxmorph.simulator

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

chem_step(A, I, X, R, lapA, lapI, chi, ...)

Run contact diffusion followed by masked or unmasked reaction.

count_neighbors_step(X, R, CT, ...[, ...])

Atomically accumulate into caller-zeroed neighbor counters.

gen_key_array(size[, device])

Initialize one deterministic RNG key per array index.

growth_step(R, R_eq, A, CT, keys, ...[, ...])

Apply bounded growth in model units.

mech_step_sticky(X, R, P, CT, ...[, device, ...])

Advance prescribed mechanics using explicit pair derivatives.

mech_step_sticky_implicit(X, R, P, CT, ...)

Advance mechanics with local autodiff for polarity and thickness potentials.