[]Trait lumol::sim::md::Control

pub trait Control {
    fn control(&mut self, system: &mut System);

    fn setup(&mut self, &System) { ... }
fn finish(&mut self, &System) { ... } }

Trait for controlling some parameters in a system during a simulation.

Required methods

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

This will be called once at every step of the simulation, after the integration step.

Loading content...

Provided methods

fn setup(&mut self, &System)

Function called once at the beginning of the simulation, which allow for some setup of the control algorithm if needed.

fn finish(&mut self, &System)

Function called once at the end of the simulation.

Loading content...

Implementors

impl Control for RemoveRotation

impl Control for RemoveTranslation

impl Control for Rewrap

Loading content...