@@ -264,7 +264,7 @@ Compute_potential
264264Computing the potential energy of the system is central to the energy minimizer,
265265as the value of the potential is used to decide if the trial is accepted or
266266rejected. Add the following method called *compute_potential() * to the *Utilities *
267- class.
267+ class:
268268
269269.. label :: start_Utilities_class
270270
@@ -289,6 +289,10 @@ class.
289289
290290 .. label :: end_Utilities_class
291291
292+ Measuring the distance is an important step of computing the potential. Let us
293+ do it using a dedicated method. Add the following method to the *Utilities *
294+ class as well:
295+
292296.. label :: start_Utilities_class
293297
294298.. code-block :: python
@@ -308,6 +312,10 @@ class.
308312
309313 .. label :: end_Utilities_class
310314
315+ Finally, the energy minimization requires the computation of the minimum
316+ force in the system. Although not very different from the potential measurement,
317+ let us create a new method that is dedicated solely to measuring forces:
318+
311319.. label :: start_Utilities_class
312320
313321.. code-block :: python
@@ -345,11 +353,10 @@ class.
345353
346354 .. label :: end_Utilities_class
347355
348- Here, the method is a little bit complicated, because three types of outputs can
349- be requested by the user: *force-vector *, *force-matrix *, and *potential *. The last
350- one, *potential *, simply returns the value of the potential energy for the entire system.
351- If *force-vector * or *force-matrix * are selected instead, then the individual forces
352- between atoms are returned.
356+ Here, two types of outputs can
357+ be requested by the user: *force-vector *, and *force-matrix *.
358+ The *force-matrix * option will be useful for pressure calculation, see
359+ :ref: `chapter7-label `.
353360
354361Wrap in box
355362-----------
0 commit comments