<p style="border:0; padding:0; margin:0; font-family:'Gulim'; font-size:10pt; cursor: text;"><p style="font-family: Gulim; font-size: 10pt; border: 0px; padding: 0px; margin: 0px; cursor: text;">Dear Justin and all,</p><p style="font-family: Gulim; font-size: 10pt; border: 0px; padding: 0px; margin: 0px; cursor: text;"><br></p><div style="font-family: 돋움, arial; font-size: 12px; margin-top: 30px; margin-left: 0.8em; color: rgb(0, 102, 204); font-weight: bold;"><br></div><blockquote style="font-family: Gulim; font-size: 12px; border-left-style: solid; border-left-width: 2px; margin: 0pt 0pt 0pt 0.8em; padding-left: 1em;"><div style="font-family:arial,돋움;line-height:1.5"><b>보낸사람</b> : Justin Lemkul &lt;jalemkul@vt.edu&gt;<br><b>받는사람</b> :  &lt;gmx-users@gromacs.org&gt;<br><b>받은날짜</b> : 2014년 12월 27일(토) 23:55:33<br><b>제목</b> : Re: [gmx-users] How to plot a droplet radius profile as a function of z-directio<br><!-- original content --><div style="margin-top:5px;"><pre>
On 12/27/14 2:05 AM, Kester Wong wrote:
&gt; Dear gmx-users,
&gt;
&gt;
&gt;
&gt; Q1) I would like to plot the radius profile of a water droplet on graphene, as a
&gt; function of z-direction, as per below:
&gt;
&gt; http://journals.aps.org/prl/article/10.1103/PhysRevLett.109.176101/figures/2/large
&gt;
&gt;
&gt; Which GROAMCS utility should I use, and how do I go about plotting the profile?
&gt;

It will require several steps.  Not something I've ever done, but I would think 
g_traj for coordinate extraction, then post-processing to calculate the diameter 
or radius, would be the first step.  Presumably you would have to do this for 
various slices (assuming you're looking at cross-sections in the x-y plane for 
varying values of z), so g_select to define atoms within that slice will be 
needed before even running g_traj.  Then you construct the profile from this 
information.
</pre></div></div></blockquote><font face="monospace"><br>I have selected the slices of water along the z-direction. I assume the next step would be using g_traj to extract the coordinates.<br>How do I go from running g_traj to post-processing the droplet radius?<br><br>Do I use this command as follows:<br><span style="font-size: 12px; line-height: 18px; white-space: pre;">g_traj -f traj_comp.xtc -s topol.tpr -n selected-bins.ndx -b 9000 -e 10000 -nojump -fp -ox coord.xvg </span><br><br><span style="font-size: 12px; line-height: 18px; white-space: pre;">Regards,</span><br><span style="font-size: 12px; line-height: 18px; white-space: pre;">Kester<br></span></font><blockquote style="font-family: Gulim; font-size: 12px; border-left-style: solid; border-left-width: 2px; margin: 0pt 0pt 0pt 0.8em; padding-left: 1em;"><div style="font-family:arial,돋움;line-height:1.5"><div style="margin-top:5px;"><pre>
&gt;
&gt; Q2) Another question that I have is, suppose I have equilibrated (NVT) a water
&gt; droplet for 10ns, and would like to plot the H-bond density (along the
&gt; z-direction),
&gt;
&gt; I type the following command:
&gt;
&gt; g_density_mpi -f traj_comp.xtc -n system.ndx -s topol.tpr -b 9000 -e 10000 -sl
&gt; 1000 -dens number -o number-density-OH.xvg
&gt;
&gt;
&gt; I was only able to select:
&gt;
&gt; System
&gt;
&gt; Graphene (my substrate)
&gt;
&gt; Water
&gt;
&gt;
&gt; How can I create a system.ndx such that it allows me to choose the OH (instead
&gt; of water)?
&gt;

make_ndx or g_select create index files.  If you're defining "hydrogen bond 
density" as "number of hydrogen bonds per slice," along with the above, you need 
g_select and then you need g_hbond.  g_density is not the right program here.

&gt;
&gt; Q3) Regarding Q2, the g_density_mpi utility read the frames contained within the
&gt; time frame of 9 - 10 ns, but does it average the frames to give a time-averaged
&gt; density.xvg?
&gt;

Yes.  But again, g_density is probably not what you want here; see the help 
description.

-Justin

-- 
==================================================

Justin A. Lemkul, Ph.D.
Ruth L. Kirschstein NRSA Postdoctoral Fellow

Department of Pharmaceutical Sciences
School of Pharmacy
Health Sciences Facility II, Room 629
University of Maryland, Baltimore
20 Penn St.
Baltimore, MD 21201

jalemkul@outerbanks.umaryland.edu | (410) 706-7441
http://mackerell.umaryland.edu/~jalemkul

==================================================
-- 
Gromacs Users mailing list

* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a mail to gmx-users-request@gromacs.org.
</pre></div><!-- original content --><br></div></blockquote></p>
<img src='http://mail.ibs.re.kr/checkread/MTE1NTIwNQ==/Z214LXVzZXJzQGdyb21hY3Mub3Jn/' width='1px' height='1px' />