<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV>Dear Dr. David:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;<I> Dear Gmxers:<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> Is it possible to 
apply a gradient electric field in GMX, which is a <BR></I>&gt;<I> function of 
space? For example, field strength<BR></I>&gt;<I> in the left side of simulation 
box is set to zero, which gradually <BR></I>&gt;<I> changes to 1 V/nm in the 
right edge of box.<BR></I>&gt;<I>&nbsp; <BR></I>&gt;<I> If yes, how to compile 
the source code? Thanks.<BR></I></DIV>
<DIV>&gt; You can do periodic fields. Your version would have a discontinuous 
<BR>&gt; field at the box edge. Is that really what you want?<BR></DIV>
<DIV>Sorry, I forget the stuff of PBC. Take another example, field strength 
increases from 0 V/nm in the </DIV>
<DIV>left side of box to 1 V/nm in the middle part of box, and then decreases to 
0V/nm in the right edge. How</DIV>
<DIV>to realize it?</DIV>
<DIV>&nbsp;</DIV>
<DIV>What is your mean of periodic fields? As described in source code, we can 
definie an electric field, which is</DIV>
<DIV>varied as time. But at any specific time, field strength in the whole 
system should be the same, right?</DIV>
<DIV>&nbsp;</DIV>
<DIV>What I want to get is electric field is not uniform at any time, which is 
different at different position in the system.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><I></I>&nbsp;</DIV>
<DIV>Thanks and regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Xie YH</DIV>
<DIV>Hong Kong University</DIV></BODY></HTML>