[]Trait lumol::sim::InitVelocities

pub trait InitVelocities {
    fn init(&mut self, system: &mut System);
fn seed(&mut self, seed: u64); }

A method to initialize the velocities of a system.

Required Methods

Initialize the velocities of the system.

Set the seed of the random number generator. The default seed is 42.

Implementors

impl InitVelocities for BoltzmannVelocities

impl InitVelocities for UniformVelocities