1. Interaction energy functionals
A few interaction energy functionals 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
where
Using this energy functional necessitates specification of
kappa = 0.05
chi = [
["A", "B", 15.85],
["B", "C", -5.70],
...
]
1.2. Only –incompressibility
The only
hamiltonian = "DefaultNoChi"
in the configuration file (see Configuration file). It takes the form
where the incompressibility term is governed by the compressibility parameter
Using this energy functional necessitates specification of
kappa = 0.05
1.3. Only
The
hamiltonian = "SquaredPhi"
in the configuration file (see Configuration file). It takes the form
where the
Using this energy functional necessitates specification of
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.