The Nose-Hoover Thermostat
The Nose-Hoover Thermostat
Citation: The Journal of Chemical Physics 83, 4069 (1985); doi: 10.1063/1.449071
View online: http://dx.doi.org/10.1063/1.449071
View Table of Contents: http://scitation.aip.org/content/aip/journal/jcp/83/8?ver=pdfcov
Published by the AIP Publishing
Decomposition-order effects of time integrator on ensemble averages for the Nosé-Hoover thermostat
J. Chem. Phys. 139, 064103 (2013); 10.1063/1.4817194
This article is copyrighted as indicated in the article. Reuse of AIP content is subject to the terms at: http://scitation.aip.org/termsconditions. Downloaded to IP:
132.204.37.217 On: Mon, 01 Dec 2014 17:53:18
The Nose-Hoover thermostat
Denis J. Evans and Brad Lee Holian 8 )
Research Schoolo/Chemistry, Australian National University, G.P. O. Box 4, Canbe"o, ACT. 2601, Australia
(Received 4 June 1985; accepted 10 July 1985)
We derive equilibrium fluctuation expressions for the linear response of many body systems
thermostated by the Nose-Hoover thermostat. We show that in the thermodynamic limit this
response is the same as that of the corresponding Gaussian isothermal system. Numerical
comparisons for shear flow show that the calculated shear viscosity coefficient is remarkably
independent of thermostatting method.
I. INTRODUCTION analyze theoretically, and they work equally well for equilib-
Recently there have been revolutionary developments rium and nonequilibrium systems. These methods are often
in molecular dynamics methodology. In its 30 year history called Gaussian methods since Gauss' Principle of Least
the molecular dynamics technique has remained almost un- Constraint can often be used to generate the equations of
changed. Newton's equations of motion are solved for a sys- motion.
tem of particles subject to periodic boundary conditions. Recently a number of alternative methods have been
Time averages for such a system represent fairly closely mi- proposed. The "momentum scaling" technique proposed by
crocanonical ensemble averages. The microcanonical en- Haile and Gupta cannot thermostat nonequilibrium systems
semble is however very inconvenient both for theoretical and even for equilibrium systems it contains a number of
analysis and also for comparisons of computed results with difficulties. s,6 The recent algorithm proposed by Berendsen7
experimental data. By comparison it was appreciated fairly is difficult to analyze theoretically since the Berendsen equa-
early that Monte Carlo simulations could be performed in a tions of motion are not time reversible.
wide variety of more useful ensembles. At the time it was In this paper we analyze some of the properties of a
generally thought that if one was interested in the equilibri- dynamics originally proposed by Nose. 8 ,9 In their original
um properties of a system where the pressure, enthalpy, or form these equations were very cumbersome to implement in
temperature (rather than the energy) were the preferred state actual molecular dynamics computer programs. Hoover 1o
variables, then one had no choice but to use Monte Carlo has recently cast Nose's equations in a form which is closely
techniques. related to the Gaussian schemes mentioned earlier.
Of course people had been cheating for some time. The principle differences between Nose-Hoover (NH)
Many people rescaled the second moment of the atomic ve- dynamics and the earlier Gaussian schemes is that NH dy-
locities to control the temperature of their molecular dynam- namics allows fluctuations in the state variables whereas the
ic simulations. 1,2 Moreover the results of these ad hoc rescal- Gaussian schemes rigidly clamp these variables. To date all
ing algorithms produced reliable results provided the analysis of the NH equations has been confined to their equi-
timesteps used were sufficiently short. In 1981 Anderson librium properties. In this paper we will consider the dyna-
developed a hybrid Monte Carlo molecular dynamics algo- mical implications of the NH equations.
rithm3 which was capable of generating both the canonical
and isothermal/isobaric ensembles. The stochastic nature of II. NOSE-HOOVER DYNAMICS
the Andersen algorithms made them difficult to analyze
We will present a short outline of the Nose equations of
theoretically-particularly for dynamical properties.
motion and their transformation to the more useful noncan-
In the meantime a number of workers had been using
onical Nose-Hoover form. We believe that some of the cru-
molecular dynamics to simulate nonequilibrium systems in-
cial points of this derivation have not been very explicit in
cluding nonequilibrium steady states. For these problems,
previous discussions.
standard molecular dynamics was more than merely incon-
Consider the Nose Hamiltonian H N ,
~en~ent, it was incapable of creating homogeneous nonequi-
bbnum steady states. The solution to this far more difficult HN = Ho{q,p/s) +gkTlns + (p~/2Q), (1)
problem was found simultaneously and independently by where Ho is the usual Hamiltonian for a classical many body
~oover and ~vans. 2,4 Their solution was to rewrite the equa- system except that everywhere one would normally expect to
tions of classical mechanics so that thermodynamic varia- see a momentum p appearing, it is replaced by pis. Thus
bles other than the energy, were constants of the motion.
These methods are deterministic, simple to implement and Ho(q,p/s) = L (p;ls)2/2m + <I>(q). (2)
J. Chern. Phys. 83 (8), 15 October 1985 0021-9606/85/204069-06$02.10 @ 1985 American Institute of Physics 4069
This article is copyrighted as indicated in the article. Reuse of AIP content is subject to the terms at: http://scitation.aip.org/termsconditions. Downloaded to IP:
132.204.37.217 On: Mon, 01 Dec 2014 17:53:18
4070 D. J. Evans and B. L. Holian: The Nose-Hoover thermostat
with the subsidiary equation of motion for s (if needed) which Using Eq. (6) this becomes
is
( dtA (t')/s
dsldt' = ss. (9) (A )' = _J_oo--=_ __ (17)
Equation (9) is subsidiary to (8) since it is not needed to com- iT dt Is
pute the trajectories of the N interacting particles. We shall
refer to Eqs. (8) as the Nose-Hoover (NH) equations of mo-
tion. However since the propagators are identical [Eq. (14)], we
We must emphasize that the introduction of "scaled find that
time" t " has important and unusual implications for the sta- (A )' = (A Is)/(1/s) . (18)
tistical mechanical relationships of the Nose and NH sys- Equation (18) shows that the partition function in scaled
tems. The meaning of scaled time can be better understood time Z' must be
by considering the transformation of propagators in the two
dynamical systems. The propagator of phase variables in
NH dynamics is
Z'= f dqdp'dPsdsS3N-ltJ(HN-E). (19)
. .. =exPR ItiL' Integrating the irrelevant variable s using the fact that
elL t -dt, (10)
o s tJ[F(s)] = .5(s - so) (20)
where eXPR is the time ordered exponential with latest times F'(s) ,
to the right [see the discussion in Ref. lOla)]. From Eqs. (8) where F(so) = 0, we find that
o -3 -2 -1
t 0 3
generated by the Nose Hamiltonian. That P; is not a constant
of the motion can be seen from the equivalent NH equations
of motion. FIG. 1. This figure shows a comparison of predicted and observed distribu-
In what follows we shall refer only to the NH form of the t.
tions for The system studied was an equilibrium soft disk fluid.
equations of motion. Henceforth, we will refer to P; as Pi'
The NH equations of motion can be written in momentum
One of the results which is central to the proof is the
conserving form as
following. Consider a set of phase variables {Ua } whose
qi = (Pi - po)lm , equilibrium averages vanish
Pi = Fi - S(Pi - Po), (22) (26)
(23) (27)
namics [Fe = 0 in Eq. (8)]. We will drop the use of primes It is convenient to define the dissipation functional J
when describing NH momentum Pi and rescaled NH time t '. from the adiabatic derivative of the internal energy Ho:
For such correlation functions to be of interest the phase
H~ = J(r)Fe , (38)
variables A, B can be taken to be extensive but with zero
mean. In most problems of interest they will also be local
variables. Thus C(tN) and C(tNH ) are both extensive
J= L(: oD; -F; oc;).
[= o (N)]. We assume that at t = 0 a Nose-Hoover ensemble char-
The difference between the two correlation functions acterized by the N-particle distribution
IiC (t) can be computed using the Dyson decomposition 11,12 2
of propagators as 1= exp -P(Ho +! Qs ) (39)
(A) = (B') = (s) = 0), local extensive variables. Employ- Substituting this propagator transformation into Eq. (40)
ing our lemma (30) concerning such products we see that and using the fact that
IiC(t)/C(tN) = o (1IN) . (35) iL [Ho +! Qs 2 ] =JFe - 3NkTs (43)
we find
B.Responsetheory
We will now consider the response of an NH system to (44)
an external field Fe. For simplicity we will assume that the
external field is time independent. The equations of motion This is the Kawasaki form 13 of the nonlinear response of
are the N-particle distribution function. Equation (44) for the
Nose-Hoover response is the same formal expression as that
qi = pJm + Ci Fe , for both the adiabatic and the Gaussian isothermal response.
p=Fi +DiFe -SPi' (36) The only difference between the three cases is due to differ-
t= (KIKo-I)/r. ences in the propagator used to generate J ( - s). In the pres-
ent case it is the field dependent Nose-Hoover propagator.
This is the external field form of the Nose-Hoover equations
Linearizing Eq. (44) and taking the average of an arbi-
ofmotionforl:Pi = O. The equation of motion fors has been
trary zero mean phase variable B yields the usual Kubo
obtained by substituting Eq. (24) into Eq. (22). The preset
form l4 [Eq. (14)] for the linear response
value of K is Ko = It = 3NkT 12. The variables C,D are
phase variables which describe the coupling of the external
field to the system. As usual we assume the adiabatic incom-
(B (t) = l' ds X(s)F, (45)
(23). This result is ergodically consistent because in an ergo- A practical difficulty with the Berendsen equations is
dic system time averaging of a single-phase trajectory will that they are very difficult to employ in nonequilibrium sim-
generate the entire equilibrium ensemble average. ulations at a specified state point. In the steady state the
Furthermore we know from Sec. III A and Eq. (35) in dissipation JFe [Eq. (38)] must balance the energy removed
particular, that in the thermodynamic limit there is no dif- by the thermostat 2KssSss, thus
ference between the susceptibility generated by NH dynam-
ics and the corresponding ensemble of Newtonian trajector-
ies. This means that in the thermodynamic limit the
(J)ssFe = (! Kss (~: - 1)) . (49)
adiabatic (Newtonian), isothermal (Gaussian isothermal) Thus only at eqUilibrium when Fe = 0 does To actually
and the Nose-Hoover linear responses are all equivalent. equal the temperature. In spite of these obvious difficulties
This is of course not true in the nonlinear regime. we thought that a comparison with the Berendsen scheme
might be useful in a practical demonstration of the essential
IV. NUMERICAL COMPARISONS OF NON-NEWTONIAN independence of the computed properties to the details of the
MOLECULAR DYNAMICS ALGORITHMS thermostating mechanism.
The system studied was the same as that employed in
In Secs. II and III we have seen that NH dynamics
our earlier analysis of the S distribution at equilibrium. The
yields correct predictions of the thermodynamic and linear
32 soft spheres were sheared using the now standard SHod
transport properties of many-body systems. We decided to
algorithm. IS We have recently proved that under adiabatic
employ the NH thermostat to nonequilibrium molecular dy-
conditions this algorithm correctly describes both the linear
namics simulations of planar Couette flow. This would test
and nonlinear properties of Couette flow arbitrarily far from
the usefulness of the method in calculating the nonlinear
equilibrium. IS
transport properties of systems.
If we assume that a linear velocity profile is stable then
The method was tested by comparing it with the Gaus-
thermostating is achieved in any of the various schemes by
sian isothermal, Gaussian isoenergetic and Berendsen
recognizing that
schemes. The Gaussian schemes are well known from pre-
vious work and will not be further described here. The Ber-
(50)
endsen method is very new and so we will give a very brief
description. provides a convenient definition of the temperature. In Eq.
It is basically a first order version of the NH scheme. (50) Y is the shear rate au)Jay. The incorporation of Gaus-
The equations of motion are sian thermostats into the Sllod equations for shear flow have
q=p;/m, been described many times before. 12
(47) Table I shows a comparison ofthe thermodynamic and
Pi =Fi -SPi'
transport properties for 32 soft spheres at a state point kT I
s=( K1Ko-l)/r. (48) € = 1.0, pcf3 = 0.7, yoiml€) I 12 = 1.0. It is important to rea-
The preset temperature To is obtained from Ko = 3NkT012. lize that this state point is well into the Non-Newtonian re-
The first thing to note about the Berendsen equations is that gime with a shear viscosity which is only 71 % of its Newto-
in contrast to all the Gaussian schemes and to NH dynamics, nian (y-+O) value. The hydrostatic pressure is approximately
it is irreversible. This leads to profound theoretical difficul- 5% greater than at equilibrium. Consequently the linear
ties when one tries to analyze either the equilibrium or non- analysis of Sec. III is not useful in the theoretical interpreta-
eqUilibrium properties of Berendsen dynamics. As far as is tion of these results.
known to the authors the form of its equilibrium distribution Table I shows results for NH simulations using three
function is unknown as is the form of its linear response different values for r ranging from approximately ten Max-
susceptibility. It is easily shown however that in contrast to well relaxation ("collision") times (re) down to rJ3. For
all the Gaussian schemes and NH dynamics, that the canoni- r < re the equations of motion become stiff, requiring very
cal distribution function is not a solution of the Berendsen short integration time steps. NH dynamics becomes very
equations of motion. inefficient for smallr. From the table we see that for the run
TABLE I. This Table shows the comparative abilities of a number of different thermostats in maintaining shearing steady states. All units are reduced by the
standard molecular parameters. The columns from left to right are: temperature, internal energy, shear viscosity, second moments of the internal energy and
kinetic energy, the run length in 1000's oftime steps and the integration time step. Note the greater efficiency of the two Gaussian methods. The reader can
find a relative comparison of thermostats as applied to equilibrium systems in the review by Evans and Hoover (Ref. 16).
Gaussian isothermal 1.0 147.6 ± 0.1 1.524 ± 0.007 49.3 ± 10 0.0 50 0.003
Gaussian isoenergetic 0.996 ± .002 147.38 1.537 ± 0.008 0.0 27.6 ± 2 40 0.003
NH *lmif)I/2 =1 1.0001 + ± 0.0002 147.4 ± 0.2 1.55 ± 0.02 108.9 ± 2 60± 3 50 0.003
NH =0.09622 0.998 ± 0.001 147.2 ± 0.2 1.56 ± 0.02 110 ± 4 52 ± 1 40 0.003
=0.0333 0.998 ± 0.001 147.7 ± 0.4 1.56 ± 0.04 83 ± 3 43 ± 1 73 0.001
Berendsen Ts = 0.78 1.006 ± 0.003 148.4 ±0.05 1.56 ± 0.03 62±30 30± 10 60 0.003