lgca.interactions.persistent_walk¶
- lgca.interactions.persistent_walk(lgca)¶
Rearrange nodes to implement persistent motion. Vectorized implementation. See also: alignment. This is a special case of alignment where the interaction radius is 0.
- Parameters:
lgca (LGCA) – Lattice gas cellular automaton instance.
beta (float) – Strength of alignment with the previous velocity direction.
- Returns:
Notes
The
lgcaobject is modified in place.