Hi,
I am trying to monitor the contribution of pair interactions between and within groups during a free energy calculation that uses ti/spring. In particular, I would like to understand if the pair interactions between a lambda-coupled group and the rest of the system are switched off during the simulation (the documentation for ti/spring doesn’t state explicitly if are only the pair interactions within groups to be switched off, or the ones between groups too).
I have used compute group/group to calculate the energy within a solid substrate, between the substrate and a surroundings liquid, and within the liquid:
compute gg_11 substrate group/group substrate
compute gg_22 liquid group/group liquid
compute gg_12 substrate group/group liquid
I am using a EAM potential (pair_style eam/alloy); the liquid is molten Al, the solid is BCC W (T=1200K, constant volume).
Upon printing c_gg_ij[1] (here stored in pe_ij) I get always zero for intra-group interactions:
Step Temp PotEng v_pe_11 v_pe_12 v_pe_22
52000 1224.561 -89537.731 0 4.834049 0
52100 1209.435 -89143.851 0 -14.194153 0
52200 1228.4934 -89122.292 0 -3.983723 0
52300 1215.5963 -88610.611 0 2.5011471 0
52400 1213.2597 -88849.873 0 6.1760416 0
52500 1213.8632 -89317.644 0 -9.5075325 0
52600 1209.2473 -88988.876 0 -15.825294 0
52700 1219.1943 -89140.501 0 2.2555602 0
52800 1202.2384 -89182.093 0 4.1723518 0
52900 1206.1197 -88746.281 0 -5.0029934 0
53000 1230.0787 -88926.291 0 -28.176244 0
53100 1211.95 -88362.79 0 6.1961017 0
53200 1207.41 -88747.516 0 21.171291 0
53300 1216.4681 -89341.206 0 -8.095013 0
53400 1215.7294 -89691.73 0 6.2598819 0
…
I am not sure about the behaviour of the 11 and 22 terms. The documentation for compute group/group states:
Define a computation that calculates the total energy and force interaction between two groups of atoms: the compute group and the specified group2. The two groups can be the same.
So I would not expect the intra-group energy to be trivially zero. Or is it? I am going to prevent probable follow-up questions: setting pair no doesn’t have any effect. Also, there’s no molecule definition and no long-range interactions requiring kspace calculations (it’s EAM).
I don’t think it relates to my problem, but I don’t fully get what this comment means:
EAM potentials will re-use previously(?) computed embedding term contributions, so the computed pairwise forces and energies are based on the whole system and not valid if particles have been moved since(?).
I guess this could matter in the molten phase, but still doesn’t explain the behaviour of gg_11.