<div dir="ltr">Hello,<div><br></div><div>To my understanding if you want to write the total energy to a file for instance for an MD simulation you need to add a section similar to:</div><div><br> &MOTION<br>   &MD<br></div><div><div>    &PRINT</div><div>      &ENERGY</div><div>        FILENAME =cp2k.out.energy</div><div>          &EACH</div>            MD 10<div>          &END EACH</div><div>      &END ENERGY</div><div>    &END PRINT</div><div>  &END MD</div></div><div>&END MOTION</div><div><br></div><div>In this example the energy of every tenth step is written to the file.</div><div><br></div><div>Here is the corresponding section in the manual: https://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/MD/PRINT/ENERGY/EACH.html</div><div><br></div><div>Hope this helps,</div><div>Jadzia</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br>On Wednesday, September 6, 2017 at 8:31:10 AM UTC+2, jts2...@gmail.com wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Dear researchers and developers,<div><br><div>I am not so familiar with CP2K. After I run a QMMM simulation of KCl just as here: <a href="https://www.cp2k.org/exercises:2017_ethz_mmm:qmmm" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fexercises%3A2017_ethz_mmm%3Aqmmm\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGiF0gJ6mRlaGSe7--tVuWgLftgjA';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fexercises%3A2017_ethz_mmm%3Aqmmm\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGiF0gJ6mRlaGSe7--tVuWgLftgjA';return true;">https://www.cp2k.org/<wbr>exercises:2017_ethz_mmm:qmmm</a>, I want to know the energy of the whole system not just the energy of the QM region, how to achieve it in the input setting?</div><div><br></div><div>I'll appreciate for your apply !</div></div></div></blockquote></div></div>