Fitting a pair potential with a user defined function

This example demonstrates the (ab)use of the embedded atom method (EAM) potential. A pair potential of the generalized Morse form is fitted to the lattice constant, bulk modulus, and cohesive energy of copper in the face-centered cubic (FCC) crystal structure. The example also illustrates the use of XML Inclusions. Note that the final potential is not particularly good, which is unsurprising given the fact that a pair potential form is being used with a limited number of parameters.

Location

examples/fitting_pair_potential

Input files

  • main.xml: main input file

  • potential.xml: initial parameter set (included in main input file via XML Inclusions)

  • structures.xml: input structures (included in main input file via XML Inclusions)

Output (files)

  • Cu_potential.V.table: pair potential suitable for plotting

  • The final properties (as well as parameters) are written to standard output.

Other files

  • pairpotential_reference.table: the pair potential from the embedded atom method (EAM) potential presented in [MisMehPap01]

  • plot_pairpotential.py: a python script that plots a comparison between the pair potential fitted here and the pair potential from the EAM potential in [MisMehPap01]

../_images/pairpotential.svg

Pair interaction from a pure pair and an EAM potential [MisMehPap01].