[CP2K:7809] Cell optimization : z direction constraint

S Ling lingsa... at gmail.com
Fri May 27 16:31:08 UTC 2016


Hi

If you have vacuum in your model, and you want to keep z fixed during
cell_opt, then you need to modify the code and recompile it, see
https://groups.google.com/d/msg/cp2k/XescBifa_ik/SHSnf1G5QdgJ for more
details.

Basically, you need to go to your CP2K source code, find the
cell_opt_utils.F file (located in $CP2K/cp2k/src/motion directory), go to
the end of the file and add "gradient(6) = 0.0_dp" below "gradient =
-gradient". Then you will need to recompile the code and run your
calculation with the new executable.

SL



On 27 May 2016 at 16:54, ashish dabral <ashishd... at gmail.com> wrote:

> Hi,
>
> Can someone explain to me how I can do a Cell optimization with a fixed z
> direction(height) while everything else (including atomic coordinates)
> can change? I usually take 20A as the z height (supercell z vector length)
> for my 2d systems to isolate image cell interactions but apparently
> some structures are contracting in the z direction and reaching bulk state
> after 200 iterations, which is really time consuming. I want the system
> to move to prevent any stress but I do not want contraction because it
> does not remain 2d anymore.
>
> Also, If I fix the vertical height, will it be right? I mean if the
> original system with that vertical height want to contract then it has
> interactions
> with the image cell. If I fix the height then I would still have the
> interactions with the image cell above but will not see it in optimized
> structure.
> Will this be right approach?
>
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cp2k+uns... at googlegroups.com.
> To post to this group, send email to cp... at googlegroups.com.
> Visit this group at https://groups.google.com/group/cp2k.
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20160527/4cc0d84a/attachment.htm>


More information about the CP2K-user mailing list