Hi MagnusL, thanks for your reply. I have definitely set the pull-coord1-start=no. Below please see my copy pasted .mdp file. This is just one example. I have removed my previous problematic trials. There are some variable parameters that are changed for different conditions, and those are the lines above the “end of variable” comment.
Also I later noticed that if using simple umbrella pull, that is, setting pull-coord1-type=umbrella, if pull rate is positive, the force direction also reverses at a position not equal to reference position. If using zero pull rate, the force direction seems fine. I am not sure why pull rate affects the force this way.
title = Umbrella pulling simulation
define = -DPOSRES_DNA ;-DPOSRES_B
nsteps = 1000000
pull_coord1_k = 300 ; kJ mol^-1 nm^-2
pull_coord1_init = 1.5095794205794206 ; set init position for window center
pull_coord1_rate = 0
pull-group1-pbcatom =335
pull-group2-pbcatom =335
;END_OF_VARIABLES
;-------------------------------
; NOTE: calculate energygrps slow down simulation significantly
; Run parameters
integrator = md
dt = 0.002
tinit = 0
;nstcomm (100) number of steps that elapse between calculating the energies
nstcomm = 100 ; 10 nstcomm < nstcalcenergy defeats the purpose of nstcalcenergy, consider setting nstcomm equal to nstcalcenergy for less overhead
; Output parameters
nstxout-compressed = 5000 ;
nstenergy = 5000
; Bond parameters
constraint_algorithm = lincs
constraints = h-bonds ; all-bonds, “the forcefield has been parametrized only with constraints involving hydrogen atoms”
continuation = yes
; Single-range cutoff scheme
cutoff-scheme = Verlet
nstlist = 10 ; 20
ns_type = grid
rlist = 1.1 ;1.4
rcoulomb = 1.0 ;1.4
rvdw = 1.0 ;1.4
; PME electrostatics parameters
coulombtype = PME
fourierspacing = 0.125 ;0.12
fourier_nx = 0
fourier_ny = 0
fourier_nz = 0
pme_order = 4
ewald_rtol = 1e-5
optimize_fft = yes
; Berendsen temperature coupling is on in two groups
Tcoupl = V-rescale
tc_grps = system
tau_t = 1.0
ref_t = 310
; Pressure coupling is on
Pcoupl = C-rescale ;Parrinello-Rahman
pcoupltype = isotropic
tau_p = 5.0 ;1.0
compressibility = 4.5e-5
ref_p = 1.0
refcoord_scaling = com
; Generate velocities is off
gen_vel = no
; Periodic boundary conditions are on in all directions
pbc = xyz
; Long-range dispersion correction
DispCorr = EnerPres
; Pull code
;------------------------------------------
pull = yes
pull_ncoords = 1
pull_ngroups = 2 ; two groups defining one reaction coordinate
pull_group1_name = DNA
pull_group2_name = DBD
pull_coord1_groups = 1 2
pull_coord1_type = flat-bottom ;umbrella ; harmonic potential
pull_coord1_geometry = distance ; simple distance increase.
;should confine the pull direction to z only, otherwise the box size may contradict the pull distance on y or x direction
; pull_coord1_dim = Y Y Y
pull_coord1_dim = N N Y
; set ref point as restoring location
pull_coord1_start = no ; define initial COM distance > 0
;pull_coord1_rate = 0
pull-pbc-ref-prev-step-com = yes