API Reference
This page provides the API documentation for the core components of synth-dynamics.
System
ForceField
Integrator
- class synth_dynamics.LangevinIntegrator(dt: float = 0.1, temperature: float = 300.0, friction: float = 1.0)[source]
Bases:
object- step(positions: ndarray, forces: ndarray) ndarray[source]
Performs a single integration step.
x(t+dt) = x(t) + (dt/gamma) * F + sqrt(2 * kb * T * dt / gamma) * R
- Parameters:
positions – (N, 3) array of current positions.
forces – (N, 3) array of current forces.
- Returns:
(N, 3) array of updated positions.
- Return type:
new_positions
Simulation
- class synth_dynamics.Simulation(system: System, forcefield: ANMForceField, integrator: LangevinIntegrator)[source]
Bases:
object