dihedral PCA

322 views
Skip to first unread message

x.tan...@gmail.com

unread,
Jan 14, 2019, 4:06:41 AM1/14/19
to PLUMED users
Dear PLUMED users, 
     
I am using Metadynamics to do simulation. I have found some researches use dihedral PCA. And my system needs to be described by dihedral PCA. 
     
But there is no command to do it in plumed website. Is there some suggestion to do dihedral PCA?

Thanks for your kindly reply.

Xuan
   
    

Gareth Tribello

unread,
Jan 14, 2019, 4:15:49 AM1/14/19
to plumed...@googlegroups.com
Yes 

You are going to want to compute the sines and cosines of the torsions something like this:

t1: TORSION ATOMS=1,2,3,4 
st1: MATHEVAL ARG=t1 FUNC=sin(x) PERIODIC=NO
ct1: MATHEVAL ARG=t1 FUNC=cos(x) PERIODIC=NO

You thus have a bunch of sine and cosines of the torsions (st1 and ct1 from above) that you can then plug into a 

PCAVARS

action:


This should hopefully get you started.

Gareth

--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at https://groups.google.com/group/plumed-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/38595f94-49d4-448f-8a79-f279aec517c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

xuan tang

unread,
Jan 15, 2019, 9:01:07 PM1/15/19
to plumed...@googlegroups.com
Gareth
  Thanks for your reply. 
  It is very useful.

Xuan

Gareth Tribello <g.tri...@qub.ac.uk> 于2019年1月14日周一 下午5:15写道:
You received this message because you are subscribed to a topic in the Google Groups "PLUMED users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plumed-users/lMgNM0vNCZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plumed-users...@googlegroups.com.

To post to this group, send email to plumed...@googlegroups.com.
Visit this group at https://groups.google.com/group/plumed-users.

Wei-Tse Hsu

unread,
Jul 16, 2019, 2:26:41 PM7/16/19
to PLUMED users
Hi, I have two quick questions about the script that Dr. Tribello posted. 
st1: MATHEVAL ARG=t1 FUNC=sin(x) PERIODIC=NO
ct1: MATHEVAL ARG=t1 FUNC=cos(x) PERIODIC=NO

In the code above, sine and cosine functions are periodic functions, but why it the option "PERIODIC" was specified as "NO".
Was there a specific reason or did I miss something?
The other question is that if the function is "L*sin(x)" instead, where L is another variable (like distance) that also varies in the simulation and we are not sure about its range. 
In this case, how should we set up the periodicity? Can the bounds of the periodicity contain variables?
Thank you so much!

Best,
Wei-Tse

On Tuesday, January 15, 2019 at 7:01:07 PM UTC-7, xuan tang wrote:
Gareth
  Thanks for your reply. 
  It is very useful.

Xuan

Gareth Tribello <g.tr...@qub.ac.uk> 于2019年1月14日周一 下午5:15写道:
Yes 

You are going to want to compute the sines and cosines of the torsions something like this:

t1: TORSION ATOMS=1,2,3,4 
st1: MATHEVAL ARG=t1 FUNC=sin(x) PERIODIC=NO
ct1: MATHEVAL ARG=t1 FUNC=cos(x) PERIODIC=NO

You thus have a bunch of sine and cosines of the torsions (st1 and ct1 from above) that you can then plug into a 

PCAVARS

action:


This should hopefully get you started.

Gareth
On 14 Jan 2019, at 09:06, x.ta...@gmail.com wrote:

Dear PLUMED users, 
     
I am using Metadynamics to do simulation. I have found some researches use dihedral PCA. And my system needs to be described by dihedral PCA. 
     
But there is no command to do it in plumed website. Is there some suggestion to do dihedral PCA?

Thanks for your kindly reply.

Xuan
   
    

--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "PLUMED users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plumed-users/lMgNM0vNCZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plumed...@googlegroups.com.

Gareth Tribello

unread,
Jul 18, 2019, 5:01:25 AM7/18/19
to plumed...@googlegroups.com
Hello

You are correct that sine and cosine are periodic functions.  The objects output by those two actions are scalar quantities, however, and not functions.  The fact that the function being evaluated is periodic is thus irrelevant.

To clarify what I mean by the above statement consider a torsion angle, which is a periodic quantity.  What makes this periodic is the way that we do addition and subtraction.  In particular suppose we do:

\pi/2 + \pi 

we get -\pi/2 and not 3\pi/2 because torsional angles are confined to be in the range from -\pi to pi.  This is what we mean by a periodic scalar.  A periodic scalar is a scalar that does not live on a real axis that stretches from minus infinity up to plus infinity.  Periodic scalars sit on a circular number axis.  As such when we have these types of variables if we keep moving forward we eventually return back to where we started out from.

If you think about the sine and cosine of an angle they do not have this property.  The value of the sine/cosine is constrained to lie between -1 and 1 sure.   There is no sense in which you can immediately go from having sine(x)=-1 to having sine(x)=+1 in other words, we don’t have anything like the following limit that we would have for a torsion angle:

latex-image-1.pdf

Wei-Tse Hsu

unread,
Jul 18, 2019, 2:57:38 PM7/18/19
to PLUMED users
Dear Dr. Tribello,
Now I totally understand, thank you for you clear explanation!

Best,
Wei-Tse
Reply all
Reply to author
Forward
0 new messages