mc_lj_potential.accept_or_reject¶
-
mc_lj_potential.accept_or_reject(delta_e, beta)¶ Accepts or rejects a move based on the energy difference between initial and updated state along with system temperature.
- Parameters
delta_e (float) – Energy difference between initial and updated state of the system.
beta (float) – Inverse reduced temperature, a general constant in canonical ensemble.
- Returns
accept – If true, trial move is accepted, else it is rejected.
- Return type
boolean