[]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

fn init(&mut self, system: &mut System)

Initialize the velocities of the system.

fn seed(&mut self, seed: u64)

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

Loading content...


impl InitVelocities for BoltzmannVelocities

impl InitVelocities for UniformVelocities

Loading content...