Simulation of Molecule Aggregation in a Vesicle Using LAMMPS
Hello everyone,
I would like to simulate the aggregation process of several coarse-grained spheres in a vesicle using LAMMPS.
The tests I plan to conduct are as follows:
- Vesicle only.
- Vesicle + water (represented by one sphere).
- Vesicle + water + negatively charged coarse-grained spheres. I hope to see no aggregation.
- Vesicle + water + negatively charged coarse-grained spheres + positively charged coarse-grained spheres. I hope to see aggregation.
For testing purposes, I will only use 2 coarse-grained atoms of each type for now.
- Test 01 (Vesicle only): For this case, I referred to an example in LAMMPS under
examples/ASPHERE/vesicle
and was able to complete the simulation normally. - Test 02 (Vesicle + Water): I added water spheres to the system (vesicle with 2 atoms and two water spheres for testing). However, I encountered an error: “atom format error. All pair coeffs are not set (…/pair.cpp:253).”
Since I am using the YLZ potential, the vesicle needs to be defined as an ellipsoid.
My questions are:
** 1. For the negatively charged spheres, which atom type(s) should I use? (I am currently using charge
.)
** 2. I have researched the solution to the “All pair coeffs are not set” error. It appears to be caused by the following pair definitions:
pair_style hybrid ylz 2.6 lj/cut 3.6
pair_coeff 1 1 ylz 1.0 1.0 4 3 0.0 2.6
pair_coeff 1 2 lj/cut ${ew} 1.0
pair_coeff 2 2 lj/cut ${ew} 1.0
To resolve this, I tried the following:
pair_style hybrid ylz 2.6 lj/cut 3.6 lj/cut 3.6
pair_coeff 1 1 ylz 1.0 1.0 4 3 0.0 2.6
pair_coeff 1 2 lj/cut 1 ${ew} 1.0
pair_coeff 2 2 lj/cut 2 ${ew} 1.0
However, this didn’t work. Can anyone provide some guidance on how to fix this?
Thank you
test.in
units lj
variable T equal 0.23
variable ew equal 0.2
atom_style hybrid ellipsoid charge
boundary p p p
read_data read_data.atoms
mass * 1.0
group mem type 1
group wat_in type 2
velocity mem create ${T} 87287 loop geom
velocity wat_in create ${T} 87287 loop geom
pair_style hybrid ylz 2.6 lj/cut 3.6
pair_coeff 1 1 ylz 1.0 1.0 4 3 0.0 2.6
pair_coeff 1 2 lj/cut ${ew} 1.0
pair_coeff 2 2 lj/cut ${ew} 1.0
neighbor 1.0 bin
thermo_style custom step temp press ebond
thermo 200
timestep 0.005
fix 1 wat_in npt temp 0.23 0.23 1 iso 0.05 0.05 1
run 100
read_data.atoms
vesicle with diameter = 30.000000
4 atoms
2 ellipsoids
5 atom types
-35.000000 35.000000 xlo xhi
-35.000000 35.000000 ylo yhi
-35.000000 35.000000 zlo zhi
# type 1 : membrane CG, ellipsoids
# type 2 : Water in Cell, atomic
# type 3 : Water out Cell, atomic
# type 4 : dna, atomic + charge
# type 5 : prob, atomic + charge
Atoms #atom ID, type, x, y, z, ell flg, density, charge
1 1 0.236369 0.008147 0.007400 1 0.238732 0.0
2 1 0.236369 0.009058 0.008176 1 0.238732 0.0
3 2 1.236369 0.008147 1.007400 0 0.238732 0.0
4 2 0.236369 1.008147 1.007400 0 0.238732 0.0
# 5 3 2.236369 0.008147 1.007400 0 0.238732 0.0
# 6 3 0.236369 2.008147 1.007400 0 0.238732 0.0
# 7 4 3.236369 0.008147 1.007400 0 0.238732 -2.0
# 8 4 0.236369 3.008147 1.007400 0 0.238732 -2.0
# 9 5 4.236369 0.008147 1.007400 0 0.238732 2.0
# 10 5 0.236369 4.008147 1.007400 0 0.238732 2.0
Ellipsoids
1 1.000000 1.000000 1.010000 0.707299 0.000000 -0.706915 0.000349
2 1.000000 1.000000 1.010000 0.707320 -0.000000 0.706893 0.000385
By the way. I don’t know why the background color of test.in is black.So weired.