Dear lammps community,
My systems have bonds, angles, dihedrals, and pair-wise interactions. There is no Coulombic interaction. The pair_style could be either hybrid of lj/cut and yukawa, or just lj/cut, depending on the systems. I want to run grand canonical simulations using gcmc and nvt. The gcmc only have deletion and insertion of atoms.
I have two questions about the full_energy option in fix gcmc:
-
for the system with only lj/cut pair style (with bonds, angles, and dihedrals), can I turn off the full_energy option?
-
for the system with hybrid pair style of lj/cut and yukawa, I know that lammps automatically turn on the full_energy option. However, the simulation is very slow with this option. Could anyone explain to me why one has to use the full_energy option for hybrid pair_style (no long-range electrostatics)?
Actually, I wrote a modified version of fix gcmc, which calls single() function in the energy() function in fix_gcmc.cpp to compute the energy difference of the system before and after the deletion/insertion, with pair_style hybrid (but no kspace). In my implemented energy() function, the energy difference is calculated by summing over all the pair-wise interactions between the inserted/deleted atom with the rest of the system within the cutoff. Using test runs (serial lammps) in which the deletion/insertion of atoms are performed by the full_energy option and the energy difference before and after the deletion/insertion is calculated by both the full_energy method and the energy() function I implemented. The energy difference computed from my implemented energy() function is exactly the same as the one computed by full_energy. However, when bonded interactions are present in the system, the energy difference calculated by my implemented energy() becomes different from the one calculated by full_energy method: sometimes they are exactly the same, but sometimes they are different (the value could be as large as twice). I think this might be because of the bonded interactions. Could anyone give me some advices on that?
Thanks,
Jibao