1. Interaction energy functionals

A few interaction energy functionals W are defined in HyMD through the Hamiltonian class and associated subclasses.

1.1. χ–interaction and κ–incompressibility

The most common hPF energy functional is specified by

hamiltonian = "DefaultWithChi"

in the configuration file (see Configuration file). It takes the form

W=12ϕ0dri,jχ~ijϕ~i(r)ϕ~j(r)+12κ(kϕ~k(r)ϕ0)2,

where χ~AB is the interaction energy between overlapping densities of particle types A and B. The incompressibility term is governed by the compressibility parameter κ. The average density of the full system is denoted ϕ0.

Using this energy functional necessitates specification of χ~ and κ in the configuration file (see Configuration file)

kappa = 0.05
chi = [
   ["A", "B", 15.85],
   ["B", "C", -5.70],
   ...
]

1.2. Only κ–incompressibility

The only κ interactions energy functional is specified by

hamiltonian = "DefaultNoChi"

in the configuration file (see Configuration file). It takes the form

W=dr12κ(kϕ~k(r)ϕ0)2,

where the incompressibility term is governed by the compressibility parameter κ. The average density of the full system is denoted ϕ0.

Using this energy functional necessitates specification of κ in the configuration file (see Configuration file)

kappa = 0.05

1.3. Only ϕ2

The ϕ2 interactions energy functional is specified by

hamiltonian = "SquaredPhi"

in the configuration file (see Configuration file). It takes the form

W=dr12κϕ0(kϕ~k(r))2,

where the ϕ squared term is governed by the compressibility parameter κ. The average density of the full system is denoted ϕ0.

Using this energy functional necessitates specification of κ in the configuration file (see Configuration file)

kappa = 0.05

1.4. Implementing new interaction energy forms

Implementing new interaction energy functions is straightforward by subclassing Hamiltonian and applying sympy differentiation to the symbolic field objects. The sympy.lamdify function creates vectorised numpy functions automatically from the differentiation result which is used to transform the density fields.