Closed sakibmatin closed 11 months ago
Please do not worry about the job failures for the moment, they are a reflection of the fact that I do not yet know how to put the settings properly.
I believe that this PR is ready to be merged.
Made some parent expansion changes to the node building. If this doesn't work right let me know. It should now work to make the coulomb node with only the charge as parents, e.g.
coul = CoulombEnergyNode("coulomb energy",hcharge,energy_conversion=1)
Before there was a bug so this form of construction couldn't work.
Your commits works with the physics.CombineEnergyNode
.
I've also tested that the screened coulomb energy node can be constructed from just the charge node.
screen_coul = physics.ScreenedCoulombEnergy(
"screened coulomb energy",
(hcharge),
energy_conversion=1,
screening=screening,
cutoff_distance=coulomb_cutoff
)
I believe, that this PR can be merged.
The
mliap
interface uses per-atom energies. TheCombineEnergy
node (PR contribution) now allows the addition of per-atom energies from two nodes, e.g.HEnergy
withCoulombEnergy
orScreenedCoulombEnergy
Updated sketch of how to utilize this code when building hipnn models :
Then the
sys_energy
is energy node when constructing calculators for ASE or Lammps.