Hi,
Lammps version: 15 May 2015
A quick question first:
In GCMC simulations, new particles are inserted with random velocities which are statistically subject to the simulation temperature. However, are these velocities subject to the Maxwell distribution as well? If not, why don’t you guys include this into GCMC package, which are primarily important for the hybrid GCMC and MD simulations.
Now, my real question is given here:
I run GCMC simulations of single site CH4 in two bulk regions, which are connected by a carbon nanotube. The pressures (chemical potential) of these two bulk regions are kept constants, say P1 and P2 ( P1> P2). Followed by MD operations for the whole system after every GCMC operation, a net flux will be generated to flow through the carbon nanotube.
For thermostating, I divide the whole system into multiple regions, and apply Nose-Hoover thermostats on the fluid molecules within different regions separately, using multiple fix nvt commands. In this case, dynamic groups are used to define the molecules located in different regions. The target regions and an example of fix nvt command are given below:
Region 1: bulk region for P1
Region 2: entrance region of the carbon nanotube
Region 3: the whole middle region of the CNT
Region 4: exit region of the carbon nanotube
Region 5 : bulk region for P2
fix 17 temp_facial1 nvt temp 300.0 300.0 100.0
However, the system crashed, as some of the particles were assigned infinite velocities, following the coordinates of these particles in the next step become infinite too, which results in a segmentation fault. I dumped all the position and velocity information for all the CH4 molecules, and the infinite velocities at the fault step is given below:
Id x y z vx vy vz
12549 24.2632 33.3514 2.43574 -0.00197544 -0.0011303 -0.0039652
12544 16.2283 10.2056 12.6682 -0.00166788 0.0020138 0.00333821
12550 40.4321 23.5891 17.1876 0.00204322 0.00116742 0.0036245
12551 37.9825 5.17415 32.9787 -0.000153452 0.00379378 -0.0028276
12562 29.1991 0.649879 465.13 -inf -inf inf
12564 11.6398 34.3959 464.202 -inf inf -inf
12555 12.1265 0.504832 480.47 -inf -inf inf