RegulatedNHLIntegrator¶
- class ufedmm.RegulatedNHLIntegrator(temperature, time_constant, friction_coefficient, step_size, regulation_parameter, semi_regulated=True, split_ornstein_uhlenbeck=True, **kwargs)[source]¶
A regulated version of the massive Nose-Hoover-Langevin [7, 8] method. Regulation means that the system Hamiltonian is modified so that velocities remain below a temperature-dependent limit. This is closely related to the SIN(R) method [9] and allows multiple time-scale integration with very large outer time steps, without resonance.
The following SDE system is solved for every degree of freedom in the system:
\[\begin{split}& dr_i = v_i dt \\ & dp_i = F_i dt - v_{\eta_i} m_i v_i dt \\ & dv_{\eta_i} = \frac{1}{Q}\left(\frac{n+1}{n} m_i v_i^2 - k_B T\right) dt - \gamma v_{\eta_i} dt + \sqrt{\frac{2\gamma k_B T}{Q}} dW_i,\end{split}\]where:
\[v_i = c_i \tanh\left(\frac{p_i}{m_i c_i}\right).\]Here, \(n\) is the regulation parameter and \(c_i\) is the maximum speed for degree of freedom i, given by \(c_i = \sqrt{\frac{n k T}{m_i}}\). The inertial parameter \(Q\) is defined as \(Q = n k_B T \tau^2\), with \(\tau\) being a relaxation time [10]. An approximate solution is obtained by applying the Trotter-Suzuki splitting formula:
\[e^{\Delta t\mathcal{L}} = e^{\frac{\Delta t}{2}\mathcal{L}^1_p} \left[e^{\frac{\delta t}{2}\mathcal{L}^0_p} e^{\frac{\delta t}{2}\mathcal{L}_r} e^{\delta t \mathcal{L}_\mathrm{bath}} e^{\frac{\delta t}{2}\mathcal{L}_r} e^{\frac{\delta t}{2}\mathcal{L}^0_p}\right]^m e^{\frac{\Delta t}{2}\mathcal{L}^1_p}\]where \(\delta t = \frac{\Delta t}{m}\). Each exponential operator above is the solution of a differential equation.
The exact solution for the physical-system part is:
\[r_i(t) = r_i^0 + c_i \mathrm{tanh}\left(\frac{p_i}{m c_i}\right) t\]\[p_i(t) = p_i^0 + F_i t\]The bath propagator is further split as:
\[e^{\delta t \mathcal{L}_\mathrm{bath}} = e^{\frac{\delta t}{2m}\mathcal{L}_B} e^{\frac{\delta t}{2m}\mathcal{L}_S} e^{\frac{\delta t}{m}\mathcal{L}_O} e^{\frac{\delta t}{2m}\mathcal{L}_S} e^{\frac{\delta t}{2m}\mathcal{L}_B}\]Part ‘B’ is a boost, whose solution is:
\[v_{\eta_i}(t) = v_{\eta_i}^0 + \frac{1}{Q}\left(\frac{n+1}{n} m_i v_i^2 - k_B T\right) t\]Part ‘S’ is a scaling, whose solution is:
\[p_i(t) = m_i c_i \mathrm{arcsinh}\left[ \sinh\left(\frac{p_i^0}{m_i c_i}\right) e^{- v_{\eta_i} t} \right]\]Part ‘O’ is an Ornstein–Uhlenbeck process, whose solution is:
\[v_{\eta_i}(t) = v_{\eta_i}^0 e^{-\gamma t} + \sqrt{\frac{k_B T}{Q}(1-e^{-2\gamma t})} R_N\]where \(R_N\) is a normally distributed random number.
- Parameters:
step_size (float or unit.Quantity) – The outer step size with which to integrate the equations of motion.
loops (int) – The number of internal substeps at each time step.
temperature (unit.Quantity) – The temperature of the heat bath.
time_scale (unit.Quantity (time)) – The relaxation time (\(\tau\)) of the Nose-Hoover thermostat.
friction_coefficient (unit.Quantity (1/time)) – The friction coefficient (\(\gamma\)) of the Langevin thermostat.
regulation_parameter (int or float) – The regulation parameter n.
- Keyword Arguments:
semi_regulated (bool, default=True) – Whether to use the semi-regulated NHL version of the method instead of its fully-regulated version.
split_ornstein_uhlenbeck (bool, default=True) – Whether to split the drifted Ornstein-Uhlenbeck operator.
**kwargs – All keyword arguments in
AbstractMiddleRespaIntegrator, exceptnum_rattles.
Methods