anneal
#
Perform annealing of the temperature and/or global context parameters.
Modules:
-
femto
–A comprehensive toolkit for predicting free energies
Functions:
-
anneal_temperature
–Gradually ramp the system temperature from a starting value to the final value.
-
anneal_state
–Gradually anneal from an initial state (i.e. set of global context parameters)
anneal_temperature
#
anneal_temperature(
simulation: Simulation,
temperature_initial: Quantity,
temperature_final: Quantity,
n_steps: int,
frequency: int,
)
Gradually ramp the system temperature from a starting value to the final value.
Parameters:
-
simulation
(Simulation
) –The current simulation.
-
temperature_initial
(Quantity
) –The initial temperature.
-
temperature_final
(Quantity
) –The final temperature.
-
n_steps
(int
) –The number of steps to anneal over.
-
frequency
(int
) –The frequency at which to increment the temperature.
Source code in femto/md/anneal.py
anneal_state
#
anneal_state(
simulation: Simulation,
state_initial: dict[str, float],
state_final: dict[str, float],
n_steps: int,
frequency: int,
)
Gradually anneal from an initial state (i.e. set of global context parameters) to a final one.
Parameters:
-
simulation
(Simulation
) –The current simulation.
-
state_initial
(dict[str, float]
) –The initial state.
-
state_final
(dict[str, float]
) –The final state.
-
n_steps
(int
) –The number of steps to anneal over.
-
frequency
(int
) –The frequency at which to update the state.