simulate
#
Run OpenMM simulations.
Functions:
-
simulate_state–Simulate a system following the specified
stages, at a given 'state' (i.e. -
simulate_states–Simulate the system at each 'state' using
simulate_state.
simulate_state
#
simulate_state(
system: System,
topology: Structure,
state: dict[str, float],
stages: list[SimulationStage],
platform: OpenMMPlatform,
reporter: OpenMMStateReporter | None = None,
) -> State
Simulate a system following the specified stages, at a given 'state' (i.e.
a set of context parameters, such as free energy lambda values)
Parameters:
-
system(System) –The system to simulate.
-
topology(Structure) –The topology to simulate.
-
state(dict[str, float]) –The state to simulate at.
-
stages(list[SimulationStage]) –The stages to run.
-
platform(OpenMMPlatform) –The accelerator to use.
-
reporter(OpenMMStateReporter | None, default:None) –The reporter to use to record system statistics such as volume and energy.
Returns:
-
State–The final coordinates and box vectors.
Source code in femto/md/simulate.py
simulate_states
#
simulate_states(
system: System,
topology: Structure,
states: list[dict[str, float]],
stages: list[SimulationStage],
platform: OpenMMPlatform,
reporter: OpenMMStateReporter | None = None,
) -> list[State]
Simulate the system at each 'state' using simulate_state.
If running using MPI, each process will be responsible for simulating at a subset of the states.
Parameters:
-
system(System) –The system to simulate.
-
topology(Structure) –The topology of the system to simulate.
-
states(list[dict[str, float]]) –The states of the system to simulate.
-
stages(list[SimulationStage]) –The stages to run.
-
platform(OpenMMPlatform) –The accelerator to use.
-
reporter(OpenMMStateReporter | None, default:None) –The reporter to use to record system statistics such as volume and energy.
Returns:
-
list[State]–The final coordinates at each state.