[gmx-users] source cord routines for electric fields

2014-10-01 Thread 米谷慎
Dear Gromacs experts: I'd like to add the time-dependent function to the electric field routines in GROMACS. I could only found the input (reading) codes in src/kernel/readir.c. Does anyone know which source cord routines I should modify to add the time-dependent functions. Thank you for advance.

[gmx-users] source cord routines for electric fields

2014-10-02 Thread Makoto Yoneya
Dear David: Thank a lot for your quick reply. I'd found the code already includes some time-dependent function. I'll study how to use it. Thanks a lot again. Makoto Yoneya, Dr. AIST, Tsukuba JAPAN >On 2014-10-02 08:01, 米谷慎 wrote: >> Dear Gromacs experts: >> >> I'd like to add the time-dependent

[gmx-users] source cord routines for electric fields

2014-10-02 Thread Makoto Yoneya
Dear David: Thanks a lot for your valuable help. Finally, I could reach my goal, i.e. apply simple sin-wave electric field. As you pointed out, the original GROMACS code already includes some time-dependent electric field function. However, for simple cos-wave (not the pulsed cos-wave), there is n

[gmx-users] source cord routines for electric fields

2014-10-03 Thread Makoto Yoneya
Dear David: Sorry again. I realized that it is much better than > Modify the line in mdlib/sim_util.c (function calc_f_el) as in the > followings, > > if (Et[m].n == 3) > { > t0 = Et[m].a[1]; > Ext[m] = > cos(Et[m].a[0]*(t-t0))*exp(-sqr(t-t0

Re: [gmx-users] source cord routines for electric fields

2014-10-02 Thread David van der Spoel
On 2014-10-02 08:01, 米谷慎 wrote: Dear Gromacs experts: I'd like to add the time-dependent function to the electric field routines in GROMACS. I could only found the input (reading) codes in src/kernel/readir.c. Does anyone know which source cord routines I should modify to add the time-dependent