<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://micro.stanford.edu/mediawiki/index.php?action=history&amp;feed=atom&amp;title=DDD_Energy_Manual</id>
	<title>DDD Energy Manual - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://micro.stanford.edu/mediawiki/index.php?action=history&amp;feed=atom&amp;title=DDD_Energy_Manual"/>
	<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;action=history"/>
	<updated>2026-07-05T20:16:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;diff=6755&amp;oldid=prev</id>
		<title>Nbertin at 00:03, 15 June 2018</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;diff=6755&amp;oldid=prev"/>
		<updated>2018-06-15T00:03:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:03, 15 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  make&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  make&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Make sure that the compilation mode is set to &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; in the global makefile.setup file before compiling. Use flag &amp;lt;tt&amp;gt;-D_ENERGY_GPU&amp;lt;/tt&amp;gt; to enable GPU computations. Successful compilation will create executable &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt; in the global &amp;lt;tt&amp;gt;bin/&amp;lt;/tt&amp;gt; folder.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Make sure that the compilation mode is set to &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; in the global makefile.setup file before compiling. Use flag &amp;lt;tt&amp;gt;-D_ENERGY_GPU&amp;lt;/tt&amp;gt; to enable GPU computations&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Use flag &amp;lt;tt&amp;gt;-D_SPECTRAL&amp;lt;/tt&amp;gt; to enable calculations using the spectral method (see Bertin, arXiv, 2018 [https://arxiv.org/pdf/1804.00803.pdf PDF]). The spectral method requires the FFTW library to be installed (see instructions to install FFTW [[Install_FFTW3 | here]]). Compile without flag &amp;lt;tt&amp;gt;-D_SPECTRAL&amp;lt;/tt&amp;gt; if FFTW is not installed&lt;/ins&gt;. Successful compilation will create executable &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt; in the global &amp;lt;tt&amp;gt;bin/&amp;lt;/tt&amp;gt; folder.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;: value for the second large core radius used in the regularization procedure&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;: value for the second large core radius used in the regularization procedure&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;GPU&amp;lt;/tt&amp;gt;: toogle to enable GPU-accelerated calculations&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;GPU&amp;lt;/tt&amp;gt;: toogle to enable GPU-accelerated calculations&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;spectral&amp;lt;/tt&amp;gt;: toogle to use the spectral approach (see Bertin, arXiv, 2018) to evaluate the volume-based energy (very efficient). When the spectral method is used, the number of periodic images (&amp;lt;tt&amp;gt;numPBCimg&amp;lt;/tt&amp;gt;) is ignored, and the values of the large core radius (&amp;lt;tt&amp;gt;rclarge1&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;) are automatically re-calculated based on the grid resolution &amp;lt;tt&amp;gt;numGrid&amp;lt;/tt&amp;gt;. The spectral method is not compatible with GPU calculation as of now.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;spectral&amp;lt;/tt&amp;gt;: toogle to use the spectral approach (see Bertin, arXiv, 2018&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; [https://arxiv.org/pdf/1804.00803.pdf PDF]&lt;/ins&gt;) to evaluate the volume-based energy (very efficient). When the spectral method is used, the number of periodic images (&amp;lt;tt&amp;gt;numPBCimg&amp;lt;/tt&amp;gt;) is ignored, and the values of the large core radius (&amp;lt;tt&amp;gt;rclarge1&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;) are automatically re-calculated based on the grid resolution &amp;lt;tt&amp;gt;numGrid&amp;lt;/tt&amp;gt;. The spectral method is not compatible with GPU calculation as of now.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an example, the following lines can be added at the end of any existing control file in order to use it with tool &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt;:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an example, the following lines can be added at the end of any existing control file in order to use it with tool &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt;:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nbertin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;diff=6746&amp;oldid=prev</id>
		<title>Nbertin at 19:54, 24 May 2018</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;diff=6746&amp;oldid=prev"/>
		<updated>2018-05-24T19:54:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:54, 24 May 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;P ALIGN=&quot;CENTER&quot;&amp;gt;DDD Energy calculation&amp;lt;/P&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;P ALIGN=&quot;CENTER&quot;&amp;gt;DDD Energy calculation&amp;lt;/P&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;P ALIGN=&quot;CENTER&quot;&amp;gt;&amp;lt;FONT SIZE=&quot;+2&quot; color=&quot;darkred&quot;&amp;gt;&amp;lt;STRONG&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;P ALIGN=&quot;CENTER&quot;&amp;gt;&amp;lt;FONT SIZE=&quot;+2&quot; color=&quot;darkred&quot;&amp;gt;&amp;lt;STRONG&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DDD Energy &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Manuals&lt;/del&gt;&amp;lt;/STRONG&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/P&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DDD Energy &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Manual&lt;/ins&gt;&amp;lt;/STRONG&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/P&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;DIV&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;DIV&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;P ALIGN=&quot;CENTER&quot;&amp;gt;&amp;lt;STRONG&amp;gt;Nicolas Bertin&amp;lt;/STRONG&amp;gt;&amp;lt;/P&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;P ALIGN=&quot;CENTER&quot;&amp;gt;&amp;lt;STRONG&amp;gt;Nicolas Bertin&amp;lt;/STRONG&amp;gt;&amp;lt;/P&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;: value for the second large core radius used in the regularization procedure&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;: value for the second large core radius used in the regularization procedure&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;GPU&amp;lt;/tt&amp;gt;: toogle to enable GPU-accelerated calculations&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;GPU&amp;lt;/tt&amp;gt;: toogle to enable GPU-accelerated calculations&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;spectral&amp;lt;/tt&amp;gt;: toogle to use the spectral approach (see Bertin, 2018) to evaluate the volume-based energy (very efficient). When the spectral method is used, the number of periodic images (&amp;lt;tt&amp;gt;numPBCimg&amp;lt;/tt&amp;gt;) is ignored, and the values of the large core radius (&amp;lt;tt&amp;gt;rclarge1&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;) are automatically re-calculated based on the grid resolution &amp;lt;tt&amp;gt;numGrid&amp;lt;/tt&amp;gt;. The spectral method is not compatible with GPU calculation as of now.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;spectral&amp;lt;/tt&amp;gt;: toogle to use the spectral approach (see Bertin&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, arXiv&lt;/ins&gt;, 2018) to evaluate the volume-based energy (very efficient). When the spectral method is used, the number of periodic images (&amp;lt;tt&amp;gt;numPBCimg&amp;lt;/tt&amp;gt;) is ignored, and the values of the large core radius (&amp;lt;tt&amp;gt;rclarge1&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;) are automatically re-calculated based on the grid resolution &amp;lt;tt&amp;gt;numGrid&amp;lt;/tt&amp;gt;. The spectral method is not compatible with GPU calculation as of now.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an example, the following lines can be added at the end of any existing control file in order to use it with tool &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt;:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an example, the following lines can be added at the end of any existing control file in order to use it with tool &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt;:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ../../../bin/paradiseng -d rs0001.data rs0001.ctrl&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ../../../bin/paradiseng -d rs0001.data rs0001.ctrl&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The value of the stored energy is outputted in the console and in file &amp;lt;tt&amp;gt;energy.dat&amp;lt;/tt&amp;gt;. File &amp;lt;tt&amp;gt;energy.dat&amp;lt;/tt&amp;gt; is created in the output directory of the simulation (specified with control parameter &amp;lt;tt&amp;gt;dirname&amp;lt;/tt&amp;gt;). The first column is the dislocation density (&amp;lt;math&amp;gt;m^{-2}&amp;lt;/math&amp;gt;), and the second the value of the stored energy (&amp;lt;math&amp;gt;J/b^3&amp;lt;/math&amp;gt;).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The value of the stored energy is outputted in the console and in file &amp;lt;tt&amp;gt;energy.dat&amp;lt;/tt&amp;gt;. File &amp;lt;tt&amp;gt;energy.dat&amp;lt;/tt&amp;gt; is created in the output directory of the simulation (specified with control parameter &amp;lt;tt&amp;gt;dirname&amp;lt;/tt&amp;gt;). The first column is the dislocation density (&amp;lt;math&amp;gt;m^{-2}&amp;lt;/math&amp;gt;), and the second&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; column is&lt;/ins&gt; the value of the stored energy (&amp;lt;math&amp;gt;J/b^3&amp;lt;/math&amp;gt;).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nbertin</name></author>
	</entry>
	<entry>
		<id>http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;diff=6745&amp;oldid=prev</id>
		<title>Nbertin: Created page with &quot;&lt;P ALIGN=&quot;CENTER&quot;&gt;DDD Energy calculation&lt;/P&gt; &lt;P ALIGN=&quot;CENTER&quot;&gt;&lt;FONT SIZE=&quot;+2&quot; color=&quot;darkred&quot;&gt;&lt;STRONG&gt; DDD Energy Manuals&lt;/STRONG&gt;&lt;/font&gt;&lt;/P&gt; &lt;DIV&gt; &lt;P ALIGN=&quot;CENTER&quot;&gt;&lt;STRONG&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://micro.stanford.edu/mediawiki/index.php?title=DDD_Energy_Manual&amp;diff=6745&amp;oldid=prev"/>
		<updated>2018-05-24T19:46:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;DDD Energy calculation&amp;lt;/P&amp;gt; &amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;&amp;lt;FONT SIZE=&amp;quot;+2&amp;quot; color=&amp;quot;darkred&amp;quot;&amp;gt;&amp;lt;STRONG&amp;gt; DDD Energy Manuals&amp;lt;/STRONG&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/P&amp;gt; &amp;lt;DIV&amp;gt; &amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;&amp;lt;STRONG&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;DDD Energy calculation&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;&amp;lt;FONT SIZE=&amp;quot;+2&amp;quot; color=&amp;quot;darkred&amp;quot;&amp;gt;&amp;lt;STRONG&amp;gt;&lt;br /&gt;
DDD Energy Manuals&amp;lt;/STRONG&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;DIV&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;&amp;lt;STRONG&amp;gt;Nicolas Bertin&amp;lt;/STRONG&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/DIV&amp;gt;&lt;br /&gt;
&amp;lt;DIV&amp;gt;&lt;br /&gt;
&amp;lt;P ALIGN=&amp;quot;CENTER&amp;quot;&amp;gt;May 2018&amp;lt;/P&amp;gt;&lt;br /&gt;
&amp;lt;/DIV&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page details how to use the DDD energy calculation tool (see Bertin and Cai, JMPS, 2018) to compute the stored energy associated with periodic, discrete dislocation structures generated from ParaDiS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
&lt;br /&gt;
The DDD energy calculation tool is located in directory &amp;lt;tt&amp;gt;utilities/energy&amp;lt;/tt&amp;gt; of the ParaDiS code. The compilation of the code is performed with&lt;br /&gt;
&lt;br /&gt;
  cd utilities/energy&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
Make sure that the compilation mode is set to &amp;lt;tt&amp;gt;SERIAL&amp;lt;/tt&amp;gt; in the global makefile.setup file before compiling. Use flag &amp;lt;tt&amp;gt;-D_ENERGY_GPU&amp;lt;/tt&amp;gt; to enable GPU computations. Successful compilation will create executable &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt; in the global &amp;lt;tt&amp;gt;bin/&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Input files ===&lt;br /&gt;
&lt;br /&gt;
The DDD energy tool requires the same input files as the ParaDiS code, i.e. a control file and a data file. The calculation of the energy is performed using the following command:&lt;br /&gt;
&lt;br /&gt;
  ./paradiseng -d file.data file.ctrl&lt;br /&gt;
&lt;br /&gt;
The control file for the energy tool &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt; requires some additional parameters compared to the original control files used for ParaDiS simulations. There are 6 additional parameters that are specific to the energy calculation and that must be specified in the control file:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;numPBCimg&amp;lt;/tt&amp;gt;: number of periodic images (in each direction) to be considered in the calculation&lt;br /&gt;
* &amp;lt;tt&amp;gt;numGrid&amp;lt;/tt&amp;gt;: resolution of the grid (in each direction) used to calculate the volume-based energy&lt;br /&gt;
* &amp;lt;tt&amp;gt;rclarge1&amp;lt;/tt&amp;gt;: value for the first large core radius used in the regularization procedure&lt;br /&gt;
* &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;: value for the second large core radius used in the regularization procedure&lt;br /&gt;
* &amp;lt;tt&amp;gt;GPU&amp;lt;/tt&amp;gt;: toogle to enable GPU-accelerated calculations&lt;br /&gt;
* &amp;lt;tt&amp;gt;spectral&amp;lt;/tt&amp;gt;: toogle to use the spectral approach (see Bertin, 2018) to evaluate the volume-based energy (very efficient). When the spectral method is used, the number of periodic images (&amp;lt;tt&amp;gt;numPBCimg&amp;lt;/tt&amp;gt;) is ignored, and the values of the large core radius (&amp;lt;tt&amp;gt;rclarge1&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;rclarge2&amp;lt;/tt&amp;gt;) are automatically re-calculated based on the grid resolution &amp;lt;tt&amp;gt;numGrid&amp;lt;/tt&amp;gt;. The spectral method is not compatible with GPU calculation as of now.&lt;br /&gt;
&lt;br /&gt;
As an example, the following lines can be added at the end of any existing control file in order to use it with tool &amp;lt;tt&amp;gt;paradiseng&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
  ##----------------------------------&lt;br /&gt;
  ## ENERGY&lt;br /&gt;
  ##----------------------------------&lt;br /&gt;
  numPBCimg = 3&lt;br /&gt;
  numGrid = 64&lt;br /&gt;
  rclarge1 = 1000.0&lt;br /&gt;
  rclarge2 = 1500.0&lt;br /&gt;
  GPU = 1&lt;br /&gt;
  spectral = 0&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Examples of input files to compute the energy of DDD configurations are provided in&lt;br /&gt;
&lt;br /&gt;
  utilities/energy/examples&lt;br /&gt;
&lt;br /&gt;
The examples can be run using the following commands:&lt;br /&gt;
&lt;br /&gt;
  cd utilities/energy/examples&lt;br /&gt;
  ../../../bin/paradiseng -d taylor_edge_20.data taylor_edge_20.ctrl &lt;br /&gt;
  ../../../bin/paradiseng -d rs0001.data rs0001.ctrl&lt;br /&gt;
&lt;br /&gt;
The value of the stored energy is outputted in the console and in file &amp;lt;tt&amp;gt;energy.dat&amp;lt;/tt&amp;gt;. File &amp;lt;tt&amp;gt;energy.dat&amp;lt;/tt&amp;gt; is created in the output directory of the simulation (specified with control parameter &amp;lt;tt&amp;gt;dirname&amp;lt;/tt&amp;gt;). The first column is the dislocation density (&amp;lt;math&amp;gt;m^{-2}&amp;lt;/math&amp;gt;), and the second the value of the stored energy (&amp;lt;math&amp;gt;J/b^3&amp;lt;/math&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Nbertin</name></author>
	</entry>
</feed>