Skip to content
Discussion options

You must be logged in to vote

Hm - rereading the original request, I don't actually see an issue with the current implementation. You just have to create three systems.

  • sys1 = everything
  • sys2 = bulk+surface
  • sys3 = just one atom in vacuum

Then the energy difference you are after is

energy(sys1, pot) - energy(sys2,  pot) - energy(sys3, pot)

and you can substitute energy for either AtomsCalculators.potential_energy or for JuLIP.energy.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cortner
Comment options

Answer selected by cortner
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants