waxmorph.simulator.chem_step#
- waxmorph.simulator.chem_step(A, I, X, R, lapA, lapI, chi, gamma, D_inhib, dt, particle_count, A_next, I_next, device='cuda', grad_consist=True, grid=None, *, CT=None, reaction_cell_type=None)[source]#
Run contact diffusion followed by masked or unmasked reaction.
reaction_cell_typerestricts nonlinear reaction while retaining diffusion for every cell and requiresCT.grad_consistemits replay markers.lapAandlapImust be zeroed by the caller because pair fluxes accumulate atomically.