# Re: [AMBER] calculating angle between to vectors

From: Vijay Achari <glycoamber.gmail.com>
Date: Thu, 12 Mar 2015 18:14:19 +0800

Dear Sir,

I could define the vectors v1 and v2 as my wish and could find the angle
between them.

By the way, I would like to find the angle of one lipid chain to the Z-axis
of the box.

My be I want to make the Z-axis as a v1 and v2 as the chain vector of
lipid.

How could possibly define v1 in this case, vector along Z-axis.

Thank you.

On Wed, Mar 11, 2015 at 10:39 PM, Daniel Roe <daniel.r.roe.gmail.com> wrote:

> Hi,
>
> In the cpptraj part of the Amber 14 manual there is a section entitled
> '28.14 Matrix and Vector Analysis', which includes a command called
> 'vectormath'; 'vectormath dotangle' should get you what you want.
>
> -Dan
>
> On Wed, Mar 11, 2015 at 2:01 AM, Vijay Achari <glycoamber.gmail.com>
> wrote:
> > Dear Sir,
> >
> > I would like to calculate an angle between two chains of a lipid. For
> > example lets say I have a lipid:
> >
> > C70
> > C
> > C
> > C
> > C63
> > \
> > C52
> > C
> > C
> > C62
> >
> > I want to calculate the angle in between the two chains. So I try to
> define
> > a vector along atos C63--C70 and C52--C62. The cpptra code I wrote is a
> > below:
> >
> > cpptraj topology << EOF
> > trajin trajectory.nc
> >
> > vector v1 :1.C52 :1.C62
> > vector v2 :1.C52 :1.C70
> >
> > ?? WHAT COMMAND to calculate the angle ??
> >
> > EOF
> >
> > I wish to get some help to know the suitable command to calculate the
> > angle between these vectors.
> >
> > Many thanks in advance.
> > Regards
> > Vijay
> > _______________________________________________
> > AMBER mailing list
> > AMBER.ambermd.org
> > http://lists.ambermd.org/mailman/listinfo/amber
>
>
>
> --
> -------------------------
> Daniel R. Roe, PhD
> Department of Medicinal Chemistry
> University of Utah
> 30 South 2000 East, Room 307
> Salt Lake City, UT 84112-5820
> http://home.chpc.utah.edu/~cheatham/
> (801) 587-9652
> (801) 585-6208 (Fax)
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Mar 12 2015 - 03:30:02 PDT
Custom Search