Hello,
I tried to solve my problem ( Part of structure I've simulated has poor fidelity ) of an unstable, ‘wonky’ structure by adding fix nve/asphere as well as angular momentum value to my fix langevin parameter following the fix nve/asphere. Later, I realized that these fix parameters are not invoked during energy minimization, which I require for this run.
From what I understand, I must perform simulated annealing within the input script such that I can minimize and relax the structure.
I also understand that there is only one way to do this minimization + equilibration: by adding ‘velocity create’ with a relatively high temperature value, followed by a third fix known as ‘fix viscous’.
If there is any immediate misunderstanding in the reasoning for the annealing procedure, please let me know. Below is my current input script followed by my intended modifications. Also is attached the data file of my structure of interest.
log examplelog.lammps
variable T equal 0.1 #0.1
variable rhos equal 0.2 #0.175
units lj
dimension 3
newton on
boundary p p p
atom_style hybrid bond ellipsoid oxdna
atom_modify sort 0 1.0
neighbor 1.4 bin
neigh_modify every 1 delay 0 check yes
# Read the data file
read_data output10.dat.lammps.txt
# Set masses (already set in data file)
#set atom * mass 3.1575
# Define nucleotide groups
group all type 1 4
#oxDNA bond style
bond_style oxdna2/fene
bond_coeff * 2.0 0.25 0.7564
special_bonds lj 0 1 1
# oxDNA2 pair interactions
pair_style hybrid/overlay oxdna2/excv oxdna2/stk oxdna2/hbond oxdna2/xstk oxdna2/coaxstk oxdna2/dh
pair_coeff * * oxdna2/excv 2.0 0.7 0.675 2.0 0.515 0.5 2.0 0.33 0.32
pair_coeff * * oxdna2/stk seqdep ${T} 1.3523 2.6717 6.0 0.4 0.9 0.32 0.75 1.3 0 0.8 0.9 0 0.95 0.9 0 0.95 2.0 0.65 2.0 0.65
pair_coeff * * oxdna2/hbond seqdep 0.0 8.0 0.4 0.75 0.34 0.7 1.5 0 0.7 1.5 0 0.7 1.5 0 0.7 0.46 3.141592653589793 0.7 4.0 1.5707963267948966 0.45 4.0 1.5707963267948966 0.45
pair_coeff 1 4 oxdna2/hbond seqdep 1.0678 8.0 0.4 0.75 0.34 0.7 1.5 0 0.7 1.5 0 0.7 1.5 0 0.7 0.46 3.141592653589793 0.7 4.0 1.5707963267948966 0.45 4.0 1.5707963267948966 0.45
pair_coeff 2 3 oxdna2/hbond seqdep 1.0678 8.0 0.4 0.75 0.34 0.7 1.5 0 0.7 1.5 0 0.7 1.5 0 0.7 0.46 3.141592653589793 0.7 4.0 1.5707963267948966 0.45 4.0 1.5707963267948966 0.45
pair_coeff * * oxdna2/xstk 47.5 0.575 0.675 0.495 0.655 2.25 0.791592653589793 0.58 1.7 1.0 0.68 1.7 1.0 0.68 1.5 0 0.65 1.7 0.875 0.68 1.7 0.875 0.68
pair_coeff * * oxdna2/coaxstk 58.5 0.4 0.6 0.22 0.58 2.0 2.891592653589793 0.65 1.3 0 0.8 0.9 0 0.95 0.9 0 0.95 40.0 3.116592653589793
pair_coeff * * oxdna2/dh ${T} ${rhos} 0.815
#Energy Minimization settings
min_style cg
minimize 1.0e-6 1.0e-8 1000 100000
#fix cmds (time integration)
fix 1 all nve/asphere
fix 2 all langevin ${T} ${T} 0.01 12345 angmom 3.333
# Run settings
timestep 0.002
thermo 100
#dump out all xyz 10000 oxdna2o10.lammpstrj
dump out all xtc 10000 oxdna2o10.xtc
dump_modify out unwrap yes
run 1000000 #1m
After the minimization command and before/during the fix commands, I was thinking of adding my ‘annealing’ procedure here:
# time integration
velocity all create 0.2
fix 1 all nve/asphere
fix 2 all langevin ${T} ${T} 0.01 12345 angmom 3.333
Other concerns:
- How high should I set the initial ‘velocity create’ temperature, and does this mean my fix langevin must change?
- Is ‘fix viscous’ necessary if I already have fix langevin?**
- Is annealing the right approach to circumvent the ‘fix’ commands not invoked during EM warning?
**[from the ‘fix viscous’ docs]: Brownian dynamics models also typically include a randomized force term to thermostat the system at a chosen temperature. The fix langevin command does this. It has the same viscous damping term as fix viscous and adds a random force to each atom. The random force term is proportional to the square root of the chosen thermostatting temperature. Thus if you use fix langevin with a target T=0, its random force term is zero, and you are essentially performing the same operation as fix viscous. Also note that the gamma of fix viscous is related to the damping parameter of fix langevin, however the former is specified in units of force/velocity and the latter in units of time, so that it can more easily be used as a thermostat.
output10.dat.lammps.txt (6.9 MB)