OPP

class hoomd.hpmc.pair.OPP(default_r_cut=None, default_r_on=0.0, mode='none')

Bases: Pair

Oscillating pair potential (HPMC).

Parameters:
  • default_r_cut (float) – Default cutoff radius [length][\mathrm{length}].

  • default_r_on (float) – Default XPLOR on radius [length][\mathrm{length}].

  • mode (str) – Energy shifting/smoothing mode.

OPP computes the oscillating pair potential between every pair of particles in the simulation state. The functional form of the potential, including its behavior under shifting modes, is identical to that in the MD pair potential hoomd.md.pair.OPP.

Example

opp = hoomd.hpmc.pair.OPP()
opp.params[("A", "A")] = dict(
    C1=1.0,
    C2=1.0,
    eta1=15,
    eta2=3,
    k=1.0,
    phi=3.14,
    r_cut=3.0,
)
simulation.operations.integrator.pair_potentials = [opp]

Members inherited from Pair:

property energy

Potential energy contributed by this potential [energy][\mathrm{energy}]. Read more...


Members defined in OPP:

params

The potential parameters. The dictionary has the following keys:

  • C1 (float, required) - Energy scale of the first term C1C_1 [energy][\mathrm{energy}].

  • C2 (float, required) - Energy scale of the second term C2C_2 [energy][\mathrm{energy}]

  • eta1 (float, required) - The inverse power to take rr to in the first term, η1\eta_1 [dimensionless][\mathrm{dimensionless}].

  • eta2 (float, required) - The inverse power to take rr to in the second term η2\eta_2 [dimensionless][\mathrm{dimensionless}].

  • k (float, required) - oscillation frequency kk [length1][\mathrm{length}^{-1}]

  • phi (float, required) - potential phase shift ϕ\phi [dimensionless][\mathrm{dimensionless}]

  • r_cut (float): Cutoff radius [length][\mathrm{length}]. Defaults to the value given in default_r_cut on construction.

  • r_on (float): XPLOR on radius [length][\mathrm{length}]. Defaults to the value given in default_r_on on construction.

Type: TypeParameter [tuple [particle_type, particle_type], dict]

mode

The energy shifting/smoothing mode: Possible values are: "none", "shift", and "xplor".

Example

opp.mode = "shift"

Type: str