mstk.ommhelper.force.wall_lj126¶
- mstk.ommhelper.force.wall_lj126(system, particles, direction, bound, epsilon, sigma)¶
Add a LJ-12-6 wall for selected particles so that they cannot cross it.
Note that periodic box condition is not considered, so you need to make sure particles will not move to other cells during the simulation.
The energy is infinite when particle is located at the lower or higher bound, and equal to epsilon when particle is located at lower bound + sigma or higher bound - sigma, and equal to zero when particle is located between [lower bound + sigma * 2^(1/6), higher bound - sigma * 2^(1/6)].
- Parameters:
system (mm.System) –
particles (list of int) –
direction (str) –
bound (list of float) –
epsilon (float) –
sigma (float) –
- Returns:
force
- Return type:
mm.CustomExternalForce