<html 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=Windows-1252">
<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;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        font-size:10.5pt;
        font-family:Menlo;
        color:black;}
span.s1
        {mso-style-name:s1;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="IT-CH" style="font-size:11.0pt;mso-fareast-language:EN-US">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="IT-CH" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">CP2K handles all quantities internally in atomic units [a.u.]. You can use the conversion factors printed in the top of the CP2K output for the conversion:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">[a.u.] -> [fs]
</span><span class="apple-converted-space">                                           
</span><span class="s1">2.41888432650478E-02</span><o:p></o:p></p>
<p class="p1"><span class="apple-converted-space"> </span><span class="s1">[a.u.] -> [K]</span><span class="apple-converted-space">                                             
</span><span class="s1">3.15774647902944E+05</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">The formula for the barostat mass is<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;mso-fareast-language:EN-US">M(barostat) = (N(dof) + d)*T*tau^2  (with tau = 1/omega)
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;mso-fareast-language:EN-US">d = 3 (dimensional system)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;mso-fareast-language:EN-US">N(dof) = 3*N(atom) – 3 = 3*64 - 3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;mso-fareast-language:EN-US">T = 1200 K / 3.15774647902944E+05 [K/a.u.]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="font-size:11.0pt;mso-fareast-language:EN-US">tau = 50 fs / 2.41888432650478E-02 [fs/a.u.]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="IT-CH" style="font-size:11.0pt;mso-fareast-language:EN-US">M(barostat) = (3*64 – 3 + 3)</span><span style="font-size:11.0pt;mso-fareast-language:EN-US">*(1200.0/3.15774647902944E+05)*(50.0/2.41888432650478E-02)**2</span><span lang="IT-CH" style="font-size:11.0pt;mso-fareast-language:EN-US">
 = </span><span style="font-size:11.0pt;mso-fareast-language:EN-US">3117561.45265</span><span lang="IT-CH" style="font-size:11.0pt;mso-fareast-language:EN-US"> a.u.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="IT-CH" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">With periodic boundary conditions (PBC), the degrees of freedom (dof) have to be reduced by 3 (translational dof).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">You can ignore k (Boltzmann) when using atomic units.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Matthias<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<b><span style="color:black">From: </span></b><span style="color:black">cp2k@googlegroups.com <cp2k@googlegroups.com> on behalf of Michela Benazzi <bnzmichela@gmail.com><br>
<b>Date: </b>Tuesday, 27 August 2024 at 15:09<br>
<b>To: </b>cp2k <cp2k@googlegroups.com><br>
<b>Subject: </b>[CP2K:20624] Barostat/Thermostat mass units?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Hello CP2K users,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I have previously asked a question about what kind of barostat CP2K uses, and Thomas Kuhne linked a paper on MTTK barostat which was very helpful (https://aiichironakano.github.io/phys516/Martyna-Integrator-MolPhys96.pdf).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">However, I tried to calculate my barostat mass to understand the units and I am still at a loss - currently, my restart BAROSTAT MASS is 3.1175614526535734E+006. According to the CP2K manual, the units could be
 kg, m_e or amu. I tried to calculate it myself following the MTTK formula and there is no match:<br>
<br>
W = (N_f + 9)* (k_b*T)/2 * (t_p/2pi)^2<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">where t_p is the time constant (50 fs), T = 1200 K and N_f is degrees of freedom (aka number of atoms? 64 in my system).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">My result is 6.0124759e-47 J (kg*m2), which is in units of moment of inertia. Even if I convert it to m_e or amu it does not match:<br>
6.0124759e-47 J (kg*m2) <o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">(or 3.61328477e+27 amu*m2)<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">(or 6.60031109024e-17 m_e*m2)<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I was wondering if:<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">1) there are other units I have not considered in CP2K, or if CP2K internally converts to something else.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">2) Degrees of freedom =/= number of atoms?<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">3) I am supposed to get rid of the m2 term by dividing by area in some way, although I am not sure how scientifically sound it would be, since we have a 3D unit cell.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thank you very much!<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">-- <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+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/a7e5ea36-12ae-495e-adb3-f0e5d2b14a28n%40googlegroups.com?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/a7e5ea36-12ae-495e-adb3-f0e5d2b14a28n%40googlegroups.com</a>.<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>

<p></p>

-- <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+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827DDBF85A8840E7B7CC618F4942%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827DDBF85A8840E7B7CC618F4942%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<br />