<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<P>Dear Dr. Tsjerk:</P>
<P>&nbsp;</P>
<P>Many many thanks for your&nbsp;detailed&nbsp;explanation. I am trying it 
later although it is&nbsp;difficult for me.&nbsp;</P>
<P>&nbsp;</P>
<P>As&nbsp;you said, my base was a parallelogram with angles of 120 and 60 
degrees.&nbsp;I know, with two more images, a hexagon could be obtained, and 
with many images, many hexagons will be seen, that is ok?</P>
<P>&nbsp;</P>
<P>Breifly, I just want to be made sure about the following two things:</P>
<P>&nbsp;</P>
<P>1. In defining the simulation box, could I use&nbsp;this parallelogram as my 
box instead of a whole hexagon? In other words, one third within a hexagon 
(monoclinic cell) is&nbsp;enough for my simulation,&nbsp;can I define it as 
described previously?</P>
<P>&nbsp;</P>
<P>2. While using "editconf" to generate the box, the&nbsp;option "-bt tric" is 
necessary in my case?</P>
<P>&nbsp;</P>
<P>Thanks, if not mind, please give me direct answers about the&nbsp;two 
questions above.</P>
<P>&nbsp;</P>
<P>Thanks again.</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>Xie Yinghong</P>
<P>Hong Kong University</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&gt;Hi Xie Yinghong,</P>
<P>&gt;Since one of your vectors is exactly perpendicular to the other two, 
lets<BR>&gt;just focus on the base. And remember that what goes in 2D counts in 
3D too.<BR>&gt;Your base is a parallelogram with angles of 120 and 60 degrees. 
Now copy<BR>&gt;that several times. Then take one of the corner points in the 
centre. Draw<BR>&gt;lines to mark the borders where any point in the plane lies 
closer to that<BR>&gt;point than to any of the other corner points. You will get 
a marked shape,<BR>&gt;which is generally called the Voronoi region. In your 
case, you'll find that<BR>&gt;the Voronoi region of your system is a perfect 
hexagon. With your third<BR>&gt;vector, you'll have a perfectly regular 
hexagonal prism.</P>
<P>&gt;Now if you do it for the other points two, you'll find that the same 
hexagon<BR>&gt;will be located at each corner point in the grid created by the 
copied<BR>&gt;parallelograms. Thus, you can equally well look at your system as 
an<BR>&gt;infinite replicated system of hexagons. These will be connected by the 
edges<BR>&gt;of the original unit cells. Imagine the first vector aligned with 
the<BR>&gt;x-axis, and the central corner point at the origin (thus with one 
hexagon<BR>&gt;centred at the origin) and you'll have one neighbouring hexagon 
at +1x. Now<BR>&gt;you defined your second vector to have an angle of 120 
degrees. So in your<BR>&gt;case you'll take the second hexagon at -0.5x, 
+0.866y. But if you look at<BR>&gt;the copied system, you'll find that there's 
also a hexagon at +0.5x,<BR>&gt;+0.866y. That's equally valid to take as a 
second copy, and if you draw a<BR>&gt;line connecting from the origin to that, 
it will have an angle of 60 degrees<BR>&gt;with the positive x-axis. In other 
words, with an angle of 60 degrees (and<BR>&gt;equal vector lengths) you have 
defined the exact same infinite simulation<BR>&gt;system.</P>
<P>&gt;I encourage you to draw the things I explained above. Also google 
for<BR>&gt;'lattice', 'voronoi', 'triclinic' and do have a look at the paper of 
Bekker<BR>&gt;I suggested before.</P>
<P>&gt;I hope this helps,</P>
<P>&gt;Tsjerk</P>
<P>&gt;On 10/14/05, Yinghong &lt;<A 
href="mailto:xieyh@hkusua.hku.hk">xieyh@hkusua.hku.hk</A>&gt; 
wrote:<BR>&gt;<BR>&gt; Dear Tsjerk:<BR>&gt;<BR>&gt;&nbsp; Thanks for your kind 
help. And, I need furthur confirmation about the<BR>&gt; following 
things.<BR>&gt;<BR>&gt;&nbsp; My box is actually based on hexagonal prism, but 
its cross-section is not<BR>&gt; a hexagon. In fact, it is only a monoclinic 
cell totoally with 6 faces in<BR>&gt; the whole box, instead of 8 faces in 
hexagonal prism. Accordingly, is my<BR>&gt; previous definition 
correct?<BR>&gt;<BR>&gt; So, in such case, I used "editconf -bt tric" to build 
the box, is that<BR>&gt; ok????? As told by you, all the box types are the same 
for simulation, to<BR>&gt; this point, I need your confirmation, 
thanks.<BR>&gt;<BR>&gt; By the way, what is the meaning of the third angle equal 
to 60 degree? I<BR>&gt; searched many previous achieves, 120 degree was always 
adopted.<BR>&gt;<BR>&gt;&nbsp; Xie Yinghong<BR>&gt;<BR>&gt; HongKong 
University<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp; &gt;Hi Yinghong,<BR>&gt;<BR>&gt; 
&gt; I believe you want to set up a hexagonal prism according to your<BR>&gt; 
previous<BR>&gt; &gt; mails, and the procedure you outline would be consistent 
with that. For<BR>&gt; &gt;visualizing the system represented by a triclinic box 
the command for<BR>&gt; &gt;trjconv is also correct. You might also want to try 
compact and rect for<BR>&gt; -ur<BR>&gt; &gt;and compare the results, keeping in 
mind that it's all the same system,<BR>&gt; but<BR>&gt; &gt;just different 
representations (interconversion of box types).<BR>&gt;<BR>&gt; &gt;Do make sure 
that the box dimensions are large enough to contain your<BR>&gt; &gt;protein 
when setting up the box with editconf. By the way, coming to<BR>&gt; 
think<BR>&gt; &gt;of it, you may as well set the third angle to 60 degrees. That 
will give<BR>&gt; the<BR>&gt; &gt;same box :p (that will describe the same 
lattice), but is more likely to<BR>&gt; &gt;comply to Gromacs prerequisites for 
boxes.<BR>&gt;<BR>&gt; &gt;Cheers,<BR>&gt;<BR>&gt; 
&gt;Tsjerk<BR>&gt;<BR>&gt;<BR>&gt; On 10/13/05, Rodrigo Reston &lt;<A 
href="mailto:rodrigoreston@yahoo.com.br">rodrigoreston@yahoo.com.br</A>&gt; 
wrote:<BR>&gt; &gt;<BR>&gt; &gt; I'm not sure if your problem is this one... 
Have you<BR>&gt; &gt; visualized what the triclinic shape looks like? If 
you<BR>&gt; &gt; haven't, search for the word "triclinic" on Google<BR>&gt; &gt; 
Images to see one and maybe then it'll help you design<BR>&gt; &gt; the best 
approach to encase your system (by the way,<BR>&gt; &gt; do that to the other 
shapes available in editconf).<BR>&gt; &gt; Also, you might not need to specify 
the dimensions of<BR>&gt; &gt; the triclinic box - perhaps, just using the 
option -d<BR>&gt; &gt; and typing the distance (like [0.5] nm) from your<BR>&gt; 
&gt; molecule to anyone of the triclinic box faces will do.<BR>&gt; &gt; Rodrigo 
S. Reston, BSc.<BR>&gt; &gt; UFMG, Brazil.<BR>&gt; &gt;<BR>&gt; &gt; --- 
Yinghong &lt;<A href="mailto:xieyh@hkusua.hku.hk">xieyh@hkusua.hku.hk</A>&gt; 
wrote:<BR>&gt; &gt;<BR>&gt; &gt; &gt; Dear users:<BR>&gt; &gt; &gt;<BR>&gt; &gt; 
&gt; I am very strange with the concept of triclinic, so<BR>&gt; &gt; &gt; I 
need your instruction for the choice of my<BR>&gt; &gt; &gt; simulation 
box.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; In my current system, the lengths of a 
b c are<BR>&gt; &gt; &gt; respectively 5.0, 5.0, 10.0nm, and the angles<BR>&gt; 
&gt; &gt; between bc, ac, ab are 90, 90 and 120 degrees.<BR>&gt; &gt; &gt; 
Because of my misunderstanding of triclinic, maybe,<BR>&gt; &gt; &gt; the 
following steps are somewhat wrong, can you help<BR>&gt; &gt; &gt; me to point 
them out?<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 1. editconf -f mole.gro -o out.gro 
-bt tric -box 5<BR>&gt; &gt; &gt; 5 10 -angles 90 90 120 -c<BR>&gt; &gt; &gt; 
Should I use the option "-bt tric" here? If not<BR>&gt; &gt; &gt; triclinic, 
possibly, "-bt tric" is wrong.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 2. genbox -cp 
out -cs -p topol.top -o b4em.gro<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 3. grompp 
-v -f em -c b4em -p topol -o box.tpr<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 
4.trjconv -f b4em.gro -s box.tpr -o b4em2.gro -ur<BR>&gt; &gt; &gt; tric -pbc 
inbox ---- for visualization only.<BR>&gt; &gt; &gt; What should my choice for 
options "-ur &amp; -pbc" in<BR>&gt; &gt; &gt; this case?<BR>&gt; &gt; 
&gt;<BR>&gt; &gt; &gt; Urgent equiry and any help will be greatly<BR>&gt; &gt; 
&gt; apprieciated.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Xie 
Yinghong<BR>&gt; &gt; &gt; Hong Kong University<BR>&gt;</P></BODY></HTML>