[CP2K-user] [CP2K:21263] Re: How to Fix Bond Lengths Using SHAKE in CP2K?
Marcella Iannuzzi
marci.akira at gmail.com
Thu Mar 6 15:36:17 UTC 2025
Hi ...
How did you find this syntax for the input?
Such a constraint is defined through the use of collective variables in
the section SUBSYS.
Then the CONSTRAINT section is as follows
&MOTION
&CONSTRAINT
&COLLECTIVE
COLVAR 1
MOLECULE 1
TARGET 1.9275
&END COLLECTIVE
.....
The Shake and Rattle algorithm is used to enforce it.
Regards
On Thursday, March 6, 2025 at 4:11:23 PM UTC+1 Planck wrote:
> I am trying to run a CP2K molecular dynamics simulation where specific
> bond lengths should remain fixed. Based on the documentation, SHAKE should
> be used, but I keep encountering errors when defining it under &CONSTRAINT
> or &MD.
>
> Here is my attempt:
> ```
> CopyEdit
> &MOTION
> &CONSTRAINT
> &SHAKE
> ATOMS 1 2
> TYPE BOND
> &END SHAKE
> &END CONSTRAINT
> &END MOTION
> ```
>
> However, CP2K returns an error:
>
> ``` unknown subsection SHAKE of section CONSTRAINT```
>
> I also tried defining SHAKE within &MD, but CP2K does not recognize that
> either.
>
> What is the correct way to fix bond lengths using SHAKE in CP2K? If SHAKE
> is not supported in the latest versions, what alternative approach should I
> use?
>
> Thank you for any suggestion and help
>
--
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+unsubscribe at googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/088f015a-e522-4cbc-9234-a99146482cc8n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20250306/37319ccb/attachment.htm>
More information about the CP2K-user
mailing list