pub struct MolecularSimulator { /* private fields */ }Expand description
Molecular simulator for molecular dynamics simulations
Implementations§
Source§impl MolecularSimulator
impl MolecularSimulator
pub fn new() -> Self
pub fn attach_dependencies( &mut self, linear_algebra: Option<Arc<Mutex<LinearAlgebraLibrary>>>, statistical_computing: Option<Arc<Mutex<StatisticalComputingLibrary>>>, )
pub fn store_molecule(&mut self, molecule: Molecule)
pub fn initialize(&mut self) -> Result<(), ChemistryError>
pub fn validate_config( &self, config: &SimulationConfig, ) -> Result<(), ChemistryError>
pub fn run_simulation( &mut self, config: &SimulationConfig, molecule: &Molecule, ) -> Result<SimulationTrajectory, ChemistryError>
pub fn list_force_fields(&self) -> Vec<String>
pub fn get_molecule(&self, molecule_id: &str) -> Option<Molecule>
Sourcepub fn boundary_conditions(&self) -> &BoundaryConditions
pub fn boundary_conditions(&self) -> &BoundaryConditions
Borrow the boundary-conditions configuration.
Sourcepub fn boundary_conditions_mut(&mut self) -> &mut BoundaryConditions
pub fn boundary_conditions_mut(&mut self) -> &mut BoundaryConditions
Mutably borrow the boundary-conditions configuration.
Sourcepub fn simulation_engine(&self) -> &SimulationEngine
pub fn simulation_engine(&self) -> &SimulationEngine
Borrow the simulation engine.
Sourcepub fn simulation_engine_mut(&mut self) -> &mut SimulationEngine
pub fn simulation_engine_mut(&mut self) -> &mut SimulationEngine
Mutably borrow the simulation engine.
Sourcepub fn force_field_calculator(&self) -> &ForceFieldCalculator
pub fn force_field_calculator(&self) -> &ForceFieldCalculator
Borrow the force-field calculator.
Sourcepub fn force_field_calculator_mut(&mut self) -> &mut ForceFieldCalculator
pub fn force_field_calculator_mut(&mut self) -> &mut ForceFieldCalculator
Mutably borrow the force-field calculator.
Sourcepub fn integrator(&self) -> &MolecularIntegrator
pub fn integrator(&self) -> &MolecularIntegrator
Borrow the molecular integrator.
Sourcepub fn integrator_mut(&mut self) -> &mut MolecularIntegrator
pub fn integrator_mut(&mut self) -> &mut MolecularIntegrator
Mutably borrow the molecular integrator.
Auto Trait Implementations§
impl Freeze for MolecularSimulator
impl RefUnwindSafe for MolecularSimulator
impl Send for MolecularSimulator
impl Sync for MolecularSimulator
impl Unpin for MolecularSimulator
impl UnsafeUnpin for MolecularSimulator
impl UnwindSafe for MolecularSimulator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more