<div dir="ltr"><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/66524b98881562aa0d202edb4fb4f719b3d48956.png?u=1363580"><div dir="ltr"><div></div>Hello all,<div><br>I&#39;m working on a new forcefield to be incorporated in Gromacs for MD simulations. More importantly, my work includes specifying user-defined tabulated potential (table.xvg) during the production run using [-table] tag. To code the part of the new forcefield which accepts/reads and implements the tabulated potential, I need to study how Gromacs does it first. So, could anyone please point me to the particular file which contains the code to read and implement it?</div><div><br></div><div>Initially, I thought I had figured that tables.c file located in gromacs4.5.5/src/mdlib/ did the trick. But to be sure, when I removed tables.c file from gromacs and re-ran:</div><div><font face="monospace, monospace">mdrun -deffnm -v xxx -table table.xvg</font></div><div><font face="monospace, monospace"><br></font>I still obtained the same resultant files with no change. In the <span class="gmail-m_7829114399809256469gmail-gr_ gmail-m_7829114399809256469gmail-gr_2344 gmail-m_7829114399809256469gmail-gr-alert gmail-m_7829114399809256469gmail-gr_spell gmail-m_7829114399809256469gmail-gr_inline_cards gmail-m_7829114399809256469gmail-gr_run_anim gmail-m_7829114399809256469gmail-ContextualSpelling gmail-m_7829114399809256469gmail-ins-del gmail-m_7829114399809256469gmail-multiReplace" id="gmail-m_7829114399809256469gmail-2344" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">md</span>.mdp file, values for <font face="monospace, monospace">vdwtype</font> and <span class="gmail-m_7829114399809256469gmail-gr_ gmail-m_7829114399809256469gmail-gr_2442 gmail-m_7829114399809256469gmail-gr-alert gmail-m_7829114399809256469gmail-gr_spell gmail-m_7829114399809256469gmail-gr_inline_cards gmail-m_7829114399809256469gmail-gr_run_anim gmail-m_7829114399809256469gmail-ContextualSpelling" id="gmail-m_7829114399809256469gmail-2442" style="font-family:monospace,monospace;display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit">coulombtype</span><font face="monospace, monospace"> </font><font face="arial, helvetica, sans-serif">was changed to</font> &#39;<font face="monospace, monospace">User</font>&#39;. </div><div><br></div><div>There are 20,000 lines of data in my <font face="monospace, monospace">table.xvg</font> and even after I delete the tables.c file from its location, the log file still says that the user-defined tabulated potentials have been read. So, I infer that it is some other file which helps read the tab-potentials. I haven&#39;t been successful in figuring which one yet. Or is there a component of the same function located elsewhere in Gromacs? Could someone help me with it? Any help/suggestion would be greatly appreciated.</div><div><br></div><div>Apologies if my question is unorthodox. I did not find an answer to my question on the archive neither did I receive a response from the users mailing list.</div><div><br></div><div>Regards</div><div>Dheeraj</div></div></div>