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 behavior of the potential under the various shifting modes is the same as in hoomd.md.pair.

U(r)=Aexp(αr)cos(2kFr)r3+B(σr)nU(r) = A \frac{\exp{(\alpha r)\cos{(2 k_F r)}}}{r^3} + B \left( \frac{\sigma}{r} \right)^n

The potential was introduced in F. H. M. Zetterling, M. Dzugutov, and S. Lidin 2001.

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,
}

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 lpha [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