[gmx-developers] how to write a xtc file in c

Yang Ye leafyoung81-group at yahoo.com
Thu Aug 10 14:57:35 CEST 2006


Berk Hess wrote:
> Yang Ye wrote:
>
>> X.Periole wrote:
>>
>>> On Thu, 10 Aug 2006 09:01:37 +0200
>>>  David van der Spoel <spoel at xray.bmc.uu.se> wrote:
>>>
>>>> Dongsheng Zhang wrote:
>>>>
>>>>> Dear GMX developers,
>>>>>
>>>>> I want to write a xtc file to do rerun to get a special potential
>>>>> energy. Could you please tell me how to write a xtc file in c from 
>>>>> a gro
>>>>> file (with multiple frames got from a xtc file, without velocity)? 
>>>>> Thank
>>>>> you for your help!
>>>>>
>>>> trjconv ?
>>>>
>>>
>>> You MUST use trr format !! The xtc format is not precise
>>> enough and will introduce artefact in your energies ...
>>
>> Good point!
>>
> That all depends on what kind of energies you are calculating
> and how accurate you want them.
> I many cases the default xtc precision is enough.
>
> But you can set the xtc precision yourself, so trr is not necessary.
Yes. To set up the precision,
in this line of code, change 1000 to 10000 or higher.

write_xtc(xfile, n_total_particles, step, sim_time, mat, x_data, 1000);
> Berk.
>
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the www 
> interface or send it to gmx-developers-request at gromacs.org.
>






More information about the gromacs.org_gmx-developers mailing list