1.9.2 Periodic boundary condition
DC B
E
A
F GH
DC B
Eห้องสมุดไป่ตู้
A
F GH
Minimum image convention
In a cubic box, the cutoff distance is set equal to L/2.
Simulation of molecules in slit-like pore
1.9.4 Computer code for minimum image convention
Immediately after calculating a pair separation vector, we apply the code similar to the periodic boundary adjustments.
For example:
CVMGP(9, 0, 0)=9
CVMGP(9, 8, 2)=9
CVMGP(9, 8, -1)=8
The computer code for other shapes of simulation boxes can be found in program F1.
1.9.5 Non-periodic boundary methods
…compute I-j interaction ….as a functions of RIJSQI….
……
The function CVMGP(A,B,C) is a vector merge statement which returns to the value A if C is nonnegative and the value B otherwise.