Zetterling

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

Bases: Pair

Zetterling 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.

Zetterling 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.Zetterling.

See Also: hoomd.md.pair.Zetterling

hoomd.md.pair

Example

zetterling = hoomd.hpmc.pair.Zetterling(mode="shift")
zetterling.params[("A", "A")] = {
    "A": 1.58,
    "alpha": -0.22,
    "kf": 4.12,
    "B": 0.95533,
    "sigma": 1.0,
    "n": 18.0,
    "r_cut": 2.649,
}
simulation.operations.integrator.pair_potentials = [zetterling]

Members inherited from Pair:

property energy

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


Members defined in Zetterling:

params

The Zetterling potential parameters. The dictionary has the following keys:

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

  • alpha (float, required) - Screening factor α\alpha [length1][\mathrm{length}^{-1}]

  • kf (float, required) - Wave number to mimic the Friedel oscillations effect kFk_F [length1][\mathrm{length}^{-1}].

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

  • sigma (float, required) - Repulsive core size σ\sigma [length][\mathrm{length}]

  • n (float, required) - The power to take sigma/r in the second term nn [dimensionless][\mathrm{dimensionless}]

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

mode

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

Example

zetterling.mode = "shift"

Type: str