Function local_mechanics_update
pub fn local_mechanics_update<C, A, Pos, Vel, For, Float, const N: usize>(
cell: &mut C,
aux_storage: &mut A,
dt: Float,
rng: &mut ChaCha8Rng,
) -> Result<(), SimulationError>
Available on crate feature
chili
only.Expand description
We assume that cells implement the Mechanics and Interaction traits. In this last step, all ForceInformation are gathered and used to update the cells positions and velocities.
For the future, we hope to provide an abstracted method to use any of our implemented solvers. The solver currently limits the number of saved previous increments in the UpdateMechanics trait.
Currently, we employ the mechanics_adams_bashforth_3 solver.