<div dir="ltr">Hi Anne,<div><br></div><div>no, I think the EFIELD keyword you mention was designed to apply a laser pulse to the system. You can specify a time varying field, but at any given moment it is constant in space.<br><br>You might be able to get what you want from the <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/DFT/EXTERNAL_POTENTIAL.html">https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/DFT/EXTERNAL_POTENTIAL.html</a> keyword where you can specify a cube file.</div><div><br></div><div>Matt<br><br>On Friday, April 3, 2020 at 9:13:00 PM UTC+1, Anne B wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Hello,</div><div><br></div><div>I am interested in applying a custom electric field from a file input, as mentioned in the manual: <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/DFT/EFIELD/CUSTOM_ENV.html" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmanual.cp2k.org%2Ftrunk%2FCP2K_INPUT%2FFORCE_EVAL%2FDFT%2FEFIELD%2FCUSTOM_ENV.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH8g91lXgSyruUvUdY4fAwFd0JtQg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmanual.cp2k.org%2Ftrunk%2FCP2K_INPUT%2FFORCE_EVAL%2FDFT%2FEFIELD%2FCUSTOM_ENV.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH8g91lXgSyruUvUdY4fAwFd0JtQg';return true;">https://manual.cp2k.org/trunk/<wbr>CP2K_INPUT/FORCE_EVAL/DFT/<wbr>EFIELD/CUSTOM_ENV.html</a></div><div><br></div><div>However, after looking though this page in the manual and doing a search for a how-to, I could not find what exact kind of file format is needed. Would it be the same cube format that is output by this command: <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/DFT/PRINT/EFIELD_CUBE.html" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmanual.cp2k.org%2Ftrunk%2FCP2K_INPUT%2FFORCE_EVAL%2FDFT%2FPRINT%2FEFIELD_CUBE.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGOzLHmOxZQV0D-LnznICc5FYWPBQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmanual.cp2k.org%2Ftrunk%2FCP2K_INPUT%2FFORCE_EVAL%2FDFT%2FPRINT%2FEFIELD_CUBE.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGOzLHmOxZQV0D-LnznICc5FYWPBQ';return true;">https://manual.cp2k.org/trunk/<wbr>CP2K_INPUT/FORCE_EVAL/DFT/<wbr>PRINT/EFIELD_CUBE.html</a> ?</div><div><br></div><div>Thanks,</div><div>Anne<br></div></div></blockquote></div></div>