Why am I obtaining a different polymer behavior when I turn off the WCA component of FENEWCA and use LJ instead? #1866
-
I am trying to replicate the results of a paper where a coarse-grained (CG) model of amphiphilic block copolymers in a water-oil biphasic system using Langevin Dynamics is used (https://doi.org/10.1063/5.0189156). Here is a snippet of the script that I used where I set the WCA values to zero and includes 1-2 interactions. The rest of the script is is just where I save the trajectories, loggable quantities and I set the import hoomd
import datetime
import numpy as np
processor = hoomd.device.GPU()
sim = hoomd.Simulation(device=processor, seed=2467)
sim.create_state_from_gsd(filename='initial_configuration.gsd')
integrator = hoomd.md.Integrator(dt=0.01)
fene = hoomd.md.bond.FENEWCA()
fene.params['polymer'] = dict(k=30.0, r0=1.5, epsilon=0, sigma=0, delta=0)
integrator.forces.append(fene)
neighbor_list = hoomd.md.nlist.Cell(buffer=0.4, rebuild_check_delay=1)
epsilon = 1 # reduced units
sigma = 1 # reduced units
alpha = 0.5
beta = 0.5
lj = hoomd.md.pair.LJ(neighbor_list, default_r_cut=2.5*sigma, mode='shift')
lj.params[('A', 'A')] = dict(epsilon=epsilon, sigma=sigma)
lj.params[('B', 'B')] = dict(epsilon=epsilon, sigma=sigma)
lj.params[('S', 'S')] = dict(epsilon=epsilon, sigma=sigma)
lj.params[('W', 'W')] = dict(epsilon=epsilon, sigma=sigma)
lj.params[('A', 'B')] = dict(epsilon=beta * epsilon, sigma=sigma)
lj.params[('A', 'S')] = dict(epsilon=epsilon, sigma=sigma)
lj.params[('A', 'W')] = dict(epsilon=np.sqrt(alpha * beta) * epsilon, sigma=sigma)
lj.params[('B', 'S')] = dict(epsilon=np.sqrt(alpha * beta) * epsilon, sigma=sigma)
lj.params[('B', 'W')] = dict(epsilon=epsilon, sigma=sigma)
lj.params[('S', 'W')] = dict(epsilon=alpha * epsilon, sigma=sigma)
integrator.forces.append(lj)
ensemble = hoomd.md.methods.Langevin(filter=hoomd.filter.All(), kT=1.0, default_gamma=1.0)
integrator.methods.append(ensemble)
sim.operations.integrator = integrator At this point I am unsure what could be the issue and I would appreciate any feedback on this problem that I am encountering. I will attach pictures of the solid-like structures and the correct dissolved structures too that I obtained with LAMMPS. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, It will be easier for the other to comment if the LAMMPS script is also provided. I assume that you want to reproduce the results from the paper via HOOMD. Are you expecting the provided HOOMD snip to produce the expected results? In your snip, WCA is turned off. But LJs are included. Such a setting makes the difference in the cutoff. The cutoff for WCA is 2^(1/6) but it is 2.5, as you assigned, for LJs. Hope it helps. Best, |
Beta Was this translation helpful? Give feedback.
-
Just to clarify one thing.
The default behavior for the neighbor lists is to exclude bonded particle pairs, as you can see in the docs For example, with the cell neighborlist:
@WeikangXian makes a good point about possible inconsistencies in the r-cut value when deciding whether to use WCA or 1-2 LJ pair force with the FENE bonds. Another difference is that the WCA term in |
Beta Was this translation helpful? Give feedback.
Just to clarify one thing.
The default behavior for the neighbor lists is to exclude bonded particle pairs, as you can see in the docs
For example, with the cell neighborlist:
@WeikangXian makes a good point about possible inconsistencies in the r-cut value when deciding whether to use WCA or 1-2 LJ pair force with the FENE bond…