Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-H and C-C distance-energy curve differ between Rebo2 and Rebo2Scr #21

Open
threich opened this issue Feb 13, 2019 · 0 comments
Open

Comments

@threich
Copy link

threich commented Feb 13, 2019

The distance-energy curves for C-H and H-H dimers are not identical when using Rebo2 and Rebo2Scr although these bonds should be unaffected by the screening of C-C bonds. It seems that the used cutoff function is not identical (as the difference occurs only in this range).

from ase import Atoms
from atomistica import Rebo2, Rebo2Scr
import numpy as np
import matplotlib.pyplot as plt

vac = 4
dist_min = 0.6
dist_max = 1.85

a = Atoms('CH', positions=[[0, 0, 0], [dist_min, 0, 0]])
a.center(vacuum=vac)
distances = np.linspace(dist_min, dist_max, 1000)

for potential in [Rebo2(), Rebo2Scr()]:
    a.set_calculator(potential)
    energies = []
    forces = []
    for dist in distances:
        a[1].position[0] = dist + vac
        energies += [a.get_potential_energy()]
    plt.plot(distances, energies)
plt.show()

results in (after adding labels)
ch-dimer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant