G3X3 and VIRTUAL_SITES

68 views
Skip to first unread message

Pierre-André Cazade

unread,
Jun 17, 2020, 6:41:17 AM6/17/20
to cp2k
Dear CP2K users,

I am trying to use G3X3 constraints on my water molecules during a CELL_OPT motion. Needless to say, that it does not work. The "manual" is not very clear about the indexes that need to be provided. Should I use the index of the atoms in the coordinate file, for example 15761 15762 15763, or the indexes within the water molecule itself: 1 2 3. Does such constraint apply to all my water molecules provided they have the same molname "SWM4" or do I need an entry for each water molecule?

What about VIRTUAL_SITES?

Finally, the "CONTRAINT_INFO ON" section does not print a single information in the output to help me out.

I attached my input file for clarity.

Regards,
Pierre


lyso4.inp

Azade Yazdan Yar

unread,
Jun 17, 2020, 7:20:32 AM6/17/20
to cp...@googlegroups.com
Hi Pierre, 
I know some of the answers to your first question. 
What you use in the ATOMS should be the index of atoms within that molecule. Constraints will be applied to all molecules with the same MOLNAME or MOLECULE number. 
From your input file, I cannot see how the SWM4 molecules are defined in the coordinates section. You have to define the MOLNAME in that part as below (what I have as H2O, or MOLECULE 1). Note that if you use MOLECULE, it is the 'molecule kind number' and not molecule number.

Hope this helps,
Azade

&G3X3
       MOLECULE  1
       ATOMS  1..3
       DISTANCES     a b c
 &END G3X3

O    5.1692824047308950E+00    5.3185376653354242E+00    2.1483827179189252E+01 H2O 1

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/0a1b04bc-ad4c-4cd0-babc-7f694e836288o%40googlegroups.com.

Pierre-André Cazade

unread,
Jun 17, 2020, 7:53:50 AM6/17/20
to cp2k
Hi Azade,

Thanks for your answer. The molname is defined in the PSF file, in the topology section. The molname seems to be identified correctly as it is present in the output file (attached) in the description of the topology.

Regards,
Pierre

On Wednesday, June 17, 2020 at 12:20:32 PM UTC+1, Azade Yazdan Yar wrote:
Hi Pierre, 
I know some of the answers to your first question. 
What you use in the ATOMS should be the index of atoms within that molecule. Constraints will be applied to all molecules with the same MOLNAME or MOLECULE number. 
From your input file, I cannot see how the SWM4 molecules are defined in the coordinates section. You have to define the MOLNAME in that part as below (what I have as H2O, or MOLECULE 1). Note that if you use MOLECULE, it is the 'molecule kind number' and not molecule number.

Hope this helps,
Azade

&G3X3
       MOLECULE  1
       ATOMS  1..3
       DISTANCES     a b c
 &END G3X3

O    5.1692824047308950E+00    5.3185376653354242E+00    2.1483827179189252E+01 H2O 1

On Wed, Jun 17, 2020 at 12:41 PM Pierre-André Cazade <pierre.a...@gmail.com> wrote:
Dear CP2K users,

I am trying to use G3X3 constraints on my water molecules during a CELL_OPT motion. Needless to say, that it does not work. The "manual" is not very clear about the indexes that need to be provided. Should I use the index of the atoms in the coordinate file, for example 15761 15762 15763, or the indexes within the water molecule itself: 1 2 3. Does such constraint apply to all my water molecules provided they have the same molname "SWM4" or do I need an entry for each water molecule?

What about VIRTUAL_SITES?

Finally, the "CONTRAINT_INFO ON" section does not print a single information in the output to help me out.

I attached my input file for clarity.

Regards,
Pierre


--
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 cp...@googlegroups.com.
lyso4.out

Alin Marin Elena

unread,
Jun 17, 2020, 8:02:19 AM6/17/20
to cp...@googlegroups.com
Hi Pierre,

there are some example in tests/Fist/regtest-1-3/h2o-32-g3x3-mult.inp


Regards,
Alin

Without Questions there are no Answers!
______________________________________________________________________
Dr. Alin Marin ELENA
http://alin.elena.space/
______________________________________________________________________
> To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/eb929574-947c-45dd-8f2c-dd767482b7f1o%40googlegroups.com.

Pierre-André Cazade

unread,
Jun 17, 2020, 8:13:01 AM6/17/20
to cp2k
Hi Alin,

Thanks for the example. I checked some of the regtest but not the one you mentioned. This quite helpful. Yet, if you check my input file, this exactly what I am doing, so I am puzzled as for why it seems the constraints (at least g3x3) are not enforced. This leads to distorted water molecules (I checked the restart file) and then to the bad contacts causing cp2k to crash.

Regards,
Pierre 

Matt W

unread,
Jun 17, 2020, 10:44:01 AM6/17/20
to cp2k
Constraints only work with MD not geo or cell opt.

Pierre Cazade

unread,
Jun 17, 2020, 11:08:35 AM6/17/20
to cp...@googlegroups.com
Hi Matt,

I have just realized going through the source code that shake is only used with MD.

Thanks,
Pierre
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/26730b5e-18ae-4efe-9baf-ae01fec7519do%40googlegroups.com.

-- 
Dr Pierre Cazade, PhD
AD3-023, Bernal Institute,
University of Limerick,
Plassey Park Road,
Castletroy, co. Limerick,
Ireland
Reply all
Reply to author
Forward
0 new messages