[gmx-developers] Time dependent Electric field

ryo kawakita ryokawakitajp at gmail.com
Tue Jan 7 15:13:28 CET 2014


hi, i am new to gromacs. i was trying to use the time dependent Electric
field and found that there is no direct way to use it, so tried to go to
the source code(sim_util.c calc_f_el) and modify a little bit so that i can
use it for my purpose.

so i went into the sim_util.c and in the calc_f_el portion...

i tried to modify the lines

Ext[m] * = Ex[m].a[0]*FIELDFAC;

into

Ext[m] *= Ex[m].a[0]*FIELDFAC*sin(2*180*
frequency*t);

But it showed no change in the output.
Tthats why i tried to see if it is really working or not and put  Ext[m] *
= Ex[m].a[0]*FIELDFAC* 0 (multiplied the whole with a zero);.

It did not work either (ie. electric field was still working)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20140107/369aa817/attachment.html>


More information about the gromacs.org_gmx-developers mailing list