PageRenderTime 28ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/towhee-7.0.1/Manual/projects/towhee/utils/analyse_histogram.html

#
HTML | 263 lines | 252 code | 11 blank | 0 comment | 0 complexity | 9c62882bd29d2fcd043cbc9223337801 MD5 | raw file
Possible License(s): GPL-2.0
  1. <html>
  2. <head>
  3. <title>MCCCS Towhee (analyse_histogram)</title>
  4. </head>
  5. <body bgcolor="#FFFFFF" text="#000000">
  6. <table width="675" border="0" cellspacing="0" cellpadding="0" height="590">
  7. <tr>
  8. <td colspan="2" height="29">
  9. <div align="center"> <font size="5"> <b><font face="Arial, Helvetica, sans-serif"><a name="top"></a>MCCCS Towhee (analyse_histogram)</font></b>
  10. </font>
  11. </div>
  12. </td>
  13. </tr>
  14. <A href="http://sourceforge.net">
  15. <IMG src="http://sourceforge.net/sflogo.php?group_id=87039&amp;type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" align="right"/>
  16. </A>
  17. <tr>
  18. <td width="18" height="371" valign="top">
  19. <p>&nbsp; </p>
  20. <p>&nbsp;</p>
  21. </td>
  22. <td width="697" valign="top">
  23. <dt><b>Overview</b>
  24. <ul>
  25. This section explains the analyse_histogram utility program. This program is designed for use in conjunction with the towhee_histogram files and is
  26. used to analyze the histogram data generated by the grand canonical ensemble.
  27. </ul>
  28. </dt>
  29. <dt><b>Compiling</b>
  30. <ul>
  31. analyse_histogram.F is a stand alone utility program that may be compiled using the Utility Makefile
  32. <ul>
  33. <dt>cd /towheebase/Utils</dt>
  34. <dt>make analyse_histogram
  35. </ul>
  36. This will create the analyse_histogram executable which can then be run from the command line. In order to successfully run analyse_histogram,
  37. two sources of input are required. The first is an input file named 'input_analyse_histogram', which contains parameters that define what analysis
  38. you would like to perform. These parameters will be defined in the following section. The second input is the histogram files which are generated
  39. by performing simulations of the grand canonical ensemble in towhee (towhee_histogram).
  40. </ul>
  41. </dt>
  42. <dt><b>Features</b>
  43. <ul>
  44. Run the analyse_histogram utility routine by calling the routine from a directory that contains towhee_histogram output files from a MCCCS Towhee
  45. simulation run and a copy of the input_analyse_histogram which is setup so that your desired calculations will be performed. Below is a list of
  46. the calculations that analyse_histogram can perform and the representative file names that will contain the results.
  47. <ul>
  48. <li>histogram reweighting (lweight is .true.): this computes the weights for the histograms using the
  49. method of <a href="../references.html#ferrenberg_swendsen_1989">Ferrenberg and Swendsen 1989</a>
  50. The weights are output into a file called towhee_weights, which can be used as input in the lold option.
  51. Also, converge.dat, which contains the number of iterations and the deviation, is outputted during these
  52. calculations so that you can see how well the algorithm is converging.
  53. </li>
  54. <li>phase coexistence calculations (lphase is .true.): this computes the phase coexistence for binary
  55. mixtures using Newton's method. The phase coexistence data is output in 'phase_coex.dat.' The distribution
  56. of the number of each component <i>n</i> at each temperature <i>t</i> is output in a file called
  57. 'phasecomp<i>n</i>temp<i>t</i>.dat.'
  58. </li>
  59. <li>pvt calculations (lpvt is .true.): calculates ln <i>Z</i> vs. <i>n</i> (number of molecules) data so
  60. that the constant in 'pv/T = ln xi + constant' may be found. The ln<i>Z</i> and <i>n</i> data is
  61. output in a file called 'pvt.dat'. Also, the distribution of each component <i>n</i> at each temperature
  62. <i>t</i> is output in a file called 'pvtcomp<i>n</i>temp<i>t</i>.dat.'
  63. </li>
  64. </ul>
  65. </ul>
  66. </dt>
  67. <dt><b>Parameter explanations for input_analyse_histogram</b>
  68. <ul>
  69. <dt><a name="ncomp"><b>ncomp (integer)</b></a>
  70. <ul>
  71. <li> The number of components in the system (Note: only the weight calculation feature of this code has been tested for systems with more than
  72. 3 components)
  73. </li>
  74. </ul>
  75. </dt>
  76. <dt><a name="volume"><b> volume (double precision)</b></a>
  77. <ul>
  78. <li> The volume of the box in nm^3. (Note: these are the units it is output in the standard Towhee output at the end of a simulation.)</li>
  79. </ul>
  80. </dt>
  81. <dt><a name="lweight"><b> lweight (logical)</b></a>
  82. <ul>
  83. <li> .true. :weights for the histograms are computed and the following variable is read from this file.
  84. <ul>
  85. <dt><b> ndump (integer)</b>
  86. <ul>
  87. <li> The frequency that the iteration and weights are outputted during the iteration process </li>
  88. </ul>
  89. </dt>
  90. </ul>
  91. </li>
  92. <li> .false. if weights have alread been calculated for the histograms and do not want to recompute them </li>
  93. </ul>
  94. </dt>
  95. <dt> <a name="lphase"><b>lphase (logical)</b></a>
  96. <ul>
  97. <li> .true. : the phase coexistence is calculated and the following variables are read from a file named 'file_phase'. In this case you
  98. also need the following variables.
  99. <ul>
  100. <dt><a name="chempot1"><b>chempot1 (double precision)</b></a>
  101. <ul>
  102. <li> An initial guess for the chemical potential for component 1 </li>
  103. </ul>
  104. </dt>
  105. <dt><b>Number Entries (integer)</b>
  106. <ul>
  107. <li> The number of temperatures at which phase coexistence is to be calculated.</li>
  108. </ul>
  109. </dt>
  110. <hr></hr>
  111. <dt><font color="red">The following section is repeated once for each value of <b>Number Entries</b>.
  112. [Note: If <b> ncomp </b> = 1, then only entries for <b> Temperature </b>, <b> midpt </b> and <b> slope </b> are required.]</font>
  113. </dt>
  114. <dt><b>Temperature (double precision)</b>
  115. <ul>
  116. <li>The temperature in Kelvin.</li>
  117. </ul>
  118. </dt>
  119. <dt><b>midpt (double precision)</b>
  120. <ul>
  121. <li> A variable used to split the integratation used for the Newton's Method. </li>
  122. </ul>
  123. </dt>
  124. <dt><b>slope (double precision)</b>
  125. <ul>
  126. <li> The slope is used to split the peaks of the coexistence behavior correctly.
  127. An initial guess of 0.0 is okay, and if the phase data looks okay then it should be fine.
  128. </li>
  129. </ul>
  130. </dt>
  131. <dt><font color="red"> <i> If ncomp = 1 </i>, then this is the end of the section repeated once for each value of <b>Number of Entries</b>.
  132. <i>If ncomp = 2</i>, then each of the following values will also need to be included.</font>
  133. </dt>
  134. <dt><b>chempot2min (double precision)</b>
  135. <ul>
  136. <li> The minimum that the chemical potential of component 2 would be. </li>
  137. </ul>
  138. </dt>
  139. <dt><b>chempot2max (double precision)</b>
  140. <ul>
  141. <li> The maximum that the chemical potential of component 2 would be. </li>
  142. </ul>
  143. </dt>
  144. <dt><b>chempot2incr (double precision)</b>
  145. <ul>
  146. <li> The increment at which to investigate the range of chempot2min to chempot2max </li>
  147. </ul>
  148. </dt>
  149. <dt><font color="red"><i> If ncomp = 2 </i>, this is the end of the section repeated once for each value of <b>Number Entries</b></font></dt>
  150. <hr></hr>
  151. </ul>
  152. </li>
  153. <li> .false. : phase coexistence is not calculated </li>
  154. </ul>
  155. </dt>
  156. <dt> <a name="lpvt"><b> lpvt (logical) </b> </a>
  157. <ul>
  158. <li> .true. :pvt calculations are performed and the following variables are read from a file named 'file_pvt'. In this case you also need the
  159. following variables.
  160. <ul>
  161. <dt><b>Number of entries</b>
  162. <ul>
  163. <li> The number of entries at which pvt calculations are to be conducted, </li>
  164. </ul>
  165. </dt>
  166. <hr></hr>
  167. <dt><font color="red">The following section is repeated once for each value of <b>Number of entries</b></font></dt>
  168. <dt><b>Temperature (double precision)</b>
  169. <ul>
  170. <li> The temperature in Kelvin. </li>
  171. </ul>
  172. </dt>
  173. <dt><b>Chemical potential (double precision)</b>
  174. <ul>
  175. <li> The chemical potential of each component of the system is given one after another. </li>
  176. </ul>
  177. </dt>
  178. <dt><font color="red">End of the section that is repeated once for each value of <b>Number of entries</b></font></dt>
  179. <hr></hr>
  180. </ul>
  181. </li>
  182. <li> .false. if pvt calculations are not to be performed </li>
  183. </ul>
  184. </dt>
  185. <dt><a name="lold"><b>lold (logical)</b></a>
  186. <ul>
  187. <li> .true. if you are including histograms which have already had their weights determined once before. In that case the following variables
  188. must be listed in this file
  189. <ul>
  190. <dt><b> noldfiles (integer) </b>
  191. <ul>
  192. <li> The number of histograms that are included for which the weights have already been included. </li>
  193. </ul>
  194. </dt>
  195. <dt><b>file_old (character)</b>
  196. <ul>
  197. <li> The name of the data file of the old runs weights and other needed information. This is the same as the towhee_weights file which is
  198. ouputted during the weight calculation. So can just copy this file into a new file and use it. (<b> Note: </b> You must list the filename of
  199. the histogram for the low density reference state first.)
  200. </li>
  201. </ul>
  202. </dt>
  203. </ul>
  204. </li>
  205. <li> .false. if you have no histograms which already have had their weights determined </li>
  206. </ul>
  207. </dt>
  208. <dt><a name="lnew"><b>lnew (logical)</b></a>
  209. <ul>
  210. <li> .true. if you are including histograms which still need to have their weights determined. In that case the following variables must be listed
  211. in this file.
  212. <ul>
  213. <dt><b>nfiles (integer)</b>
  214. <ul>
  215. <li> The number of histograms that still need their weights to be determined. </li>
  216. </ul>
  217. </dt>
  218. <hr></hr>
  219. <dt><font color="red">The following section is repeated once for each value of <b>nfiles</b></font></dt>
  220. <dt><b>filename (character)</b>
  221. <ul>
  222. <li> The name of the file containing the histogram data (towhee_histogram) which is output by Towhee. (<b> Note: </b> If you do not have old
  223. histograms, you must list the filename of the histogram for the low density reference state first.)
  224. </li>
  225. </ul>
  226. </dt>
  227. <dt><b>number of entries (integer)</b>
  228. <ul>
  229. <li> The number of entries in the histogram data file. </li>
  230. </ul>
  231. </dt>
  232. <dt><font color="red">End of the section that is repeated once for each value of <b>nfiles</b></font></dt>
  233. <hr></hr>
  234. </ul>
  235. </li>
  236. <li> .false. if you are not including any histograms which still need to have their weights determined </li>
  237. </ul>
  238. </dt>
  239. </ul>
  240. </dt>
  241. <a href="utility_summary.html">Return to the Utility Summary page</a>
  242. <p>&nbsp;</p>
  243. </td>
  244. </tr>
  245. </table>
  246. <hr width="715" align="left">
  247. <i><font size="2">Send comments to:</font></i> <font size="2">
  248. <a href="mailto:marcus_martin@users.sourceforge.net">Marcus G. Martin</a><br><i>Last updated:</i>
  249. <!-- #BeginDate format:Am1 -->June 11, 2009<!-- #EndDate -->
  250. </font> <br>
  251. </body>
  252. </html>