<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.styled-by-prettify
        {mso-style-name:styled-by-prettify;}
span.E-MailFormatvorlage21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-CH" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Dear Zuoheng<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-fareast-language:EN-US">md_ener%epot contains the potential energy of all particles including the shell particles.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-fareast-language:EN-US">Matthias<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="DE">Von:</span></b><span lang="DE"> cp...@googlegroups.com <...@googlegroups.com>
<b>Im Auftrag von </b>zuohen...@gmail.com<br>
<b>Gesendet:</b> Mittwoch, 19. September 2018 17:15<br>
<b>An:</b> cp2k <...@googlegroups.com><br>
<b>Betreff:</b> [CP2K:10755] Why doesn't the Cons Qty include the potential energy of shell (shell model) in NVE ensemble?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><code><span style="font-size:10.0pt">Dear CP2K developers,</span></code><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<code>I am sorry to disturb you. I have some questions.</code><br>
<code>Recently I want to analyze whether the total energy is converged with core-shell model in NVE ensemble. I didn't use extra thermostat for shell.</code><br>
<code>I don't know why the Cons Qty energy = md_ener%ekin+md_ener%epot+md_ener%ekin_shell but not including the potential of shell? Is the Cons Qty the total energy? In NVE ensemble, which energy should be constant? ekin+epot+ekin_shell+epot_shell or ekin+epot+ekin_shell?</code><br>
<br>
<code>Thank you very much~</code><br>
<br>
<code>Best wishes,</code><br>
<code>Zuoheng</code><br>
<br>
<code>PS:The whole code of get_econs_nve function is following:<o:p></o:p></code></span></p>
<div style="border:solid #BBBBBB 1.0pt;padding:0cm 0cm 0cm 0cm;overflow-wrap: break-word">
<div>
<p class="MsoNormal" style="background:#FAFAFA"><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">SUBROUTINE get_econs_nve</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> para_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">)</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">      TYPE</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_environment_type</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">),</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 POINTER                 </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">::</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 md_env</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">      TYPE</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_ener_type</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">),</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 INTENT</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">inout</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">)</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
                  </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">::</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> md_ener</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">      TYPE</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cp_para_env_type</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">),</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 POINTER                    </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">::</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 para_env</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<span class="styled-by-prettify">      CHARACTER</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">LEN</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=*),</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 PARAMETER </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">::</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> routineN
</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#008800">'get_econs_nve'</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 routineP </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> moduleN</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#880000">//':'//routineN</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<span class="styled-by-prettify">      TYPE</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">force_env_type</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">),</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 POINTER                      </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">::</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 force_env</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">      TYPE</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_type</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">),</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 POINTER                     </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">::</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 thermostat_coeff</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> thermostat_shell</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<span class="styled-by-prettify">      NULLIFY </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">force_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 thermostat_coeff</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> thermostat_shell</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">)</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<span class="styled-by-prettify">      CALL get_md_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 force_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">force_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 thermostat_coeff</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_coeff</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">&</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">                      thermostat_shell</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_shell</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">)</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">      md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">constant
</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">ekin</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">+</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">epot</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">+</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">ekin_shell</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<span class="styled-by-prettify">      CALL get_thermostat_energies</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">(</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_shell</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_shell_pot</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">&</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">                                   md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_shell_kin</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">,</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 para_env</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">)</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<span class="styled-by-prettify">      md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">constant
</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">=</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">constant</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">+</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_shell_kin</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">+</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">md_ener</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">%</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">thermostat_shell_pot</span></span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><br>
<br>
<span class="styled-by-prettify">   </span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:#000088">END</span></span><span class="styled-by-prettify"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
 SUBROUTINE get_econs_nve</span></span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="mailto:cp2k+unsu...@googlegroups.com">cp2k+unsu...@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k">https://groups.google.com/group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<o:p></o:p></p>
</div>
</body>
</html>