<div dir="ltr"><div>Hi,</div><div><br></div><div>The file I generated looks like this,</div><div><div style="background-color: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; overflow-wrap: break-word;" class="prettyprint"><code class="prettyprint"><div class="subprettyprint"><span style="color: #000;" class="styled-by-prettify">TITLE<br></span><span style="color: #606;" class="styled-by-prettify">Gromos96</span><span style="color: #000;" class="styled-by-prettify"> structure file written </span><span style="color: #008;" class="styled-by-prettify">by</span><span style="color: #000;" class="styled-by-prettify"> ASE <br></span><span style="color: #008;" class="styled-by-prettify">END</span><span style="color: #000;" class="styled-by-prettify"><br>POSITION<br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   O          </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.466435441</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.134996386</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.513981110</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   H          </span><span style="color: #066;" class="styled-by-prettify">2</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.456093036</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.106021788</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.419837619</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   H          </span><span style="color: #066;" class="styled-by-prettify">3</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.420027567</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.062658494</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.564346835</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   O          </span><span style="color: #066;" class="styled-by-prettify">4</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.115815785</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.219921049</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.557675443</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   H          </span><span style="color: #066;" class="styled-by-prettify">5</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.141607659</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.194800907</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.467369599</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   H          </span><span style="color: #066;" class="styled-by-prettify">6</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.041911702</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.157741781</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.572592000</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   O          </span><span style="color: #066;" class="styled-by-prettify">7</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.260380086</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.630856816</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.541834739</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   H          </span><span style="color: #066;" class="styled-by-prettify">8</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.357742539</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.651611259</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.535899313</span><span style="color: #000;" class="styled-by-prettify"><br>    </span><span style="color: #066;" class="styled-by-prettify">1</span><span style="color: #000;" class="styled-by-prettify"> DUM   H          </span><span style="color: #066;" class="styled-by-prettify">9</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.271335808</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.537091104</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #660;" class="styled-by-prettify">-</span><span style="color: #066;" class="styled-by-prettify">0.513030977</span><span style="color: #000;" class="styled-by-prettify"><br></span><span style="color: #008;" class="styled-by-prettify">END</span><span style="color: #000;" class="styled-by-prettify"><br>BOX<br>   </span><span style="color: #066;" class="styled-by-prettify">91.500000000</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #066;" class="styled-by-prettify">25.800000000</span><span style="color: #000;" class="styled-by-prettify">   </span><span style="color: #066;" class="styled-by-prettify">19.100000000</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.000000000</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.000000000</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.000000000</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.000000000</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.000000000</span><span style="color: #000;" class="styled-by-prettify">    </span><span style="color: #066;" class="styled-by-prettify">0.000000000</span><span style="color: #000;" class="styled-by-prettify"><br></span><span style="color: #008;" class="styled-by-prettify">END</span><span style="color: #000;" class="styled-by-prettify"><br></span></div></code></div><br>The atoms are colored by the name in column 3 and can be selected by 'name O' and so on. DUM is probably a molecule or force field tag.</div><div><br></div><div>As to your second point - did you output cell parameters at the same frequency as coordinates? If not, you would need to adjust the script to ignore the frames without parameters (<span class="pl-v">index</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>:<span class="pl-pds">' is the only thing you would need to change)</span></span>. There's nothing in the Python code that limits the number of frames. It just assumes that the number of frames and the number of entries in .cell are equal.<br></div><div><br></div><div>-T<br></div><div><br></div><br>On Friday, October 25, 2019 at 1:03:22 PM UTC-3, Ant wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Travis, I used your code with my .cell file and trajectory (.xyz) files--thank you.  Would you happen to have time for a couple of follow-up questions on this?</div><div><br></div><div>1. It generated an output file like the one at the end of this message. When I read it into VMD, it seemed to show all atoms as identical (i.e., the atom types are not distinguished).  I'm guessing this has something to do with the first and second columns.  I can't find an example online of what they should be.  <br></div><div><br></div><div>2. Another problem is that the output file only contains about 300 time steps.  This may not be something you can help with, but I thought I would mention it just in case.  Thank you again very much.<br></div><div><br></div><div>TITLE<br>Gromos96 structure file written by ASE <br>END<br>POSITION<br>    1 DUM   Ar         1    0.271226802    1.105695742    0.687656962<br>    1 DUM   Ar         2    0.171226802    0.705695742    0.287656962<br>    1 DUM   Cl         3    0.987788274    0.553369424    0.340889882<br>    1 DUM   Cl         4    1.017388949    1.095946397    1.012254758<br>    1 DUM   O         5    0.171226802    1.056957424    0.287656962<br>    1 DUM   O         6    0.087788274   -0.053369424    0.040889882<br>    1 DUM   H         7    0.017388949    0.695946397   -0.212254758<br>    1 DUM   H         8   -0.809217934    0.646737810    0.262515118<br>   ...</div><div>   ...<br></div><div>END<br>BOX<br>    1.361050000    1.361050000    1.361050000    0.000000000    0.000000000    0.000000000    0.000000000    0.000000000    0.000000000<br>END</div></div>
</blockquote></div>