forked from cfgoldsmith/RMG-Py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
N scaling is a go... like 90 percent sure
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1272,19 +1272,19 @@ def setDeltaAtomicAdsorptionEnergies(self, bindingEnergies): | |
# this depends on the two metal surfaces, the reference one | ||
# used in the database of adsorption energies, and the desired surface | ||
# These are the reference ones, Ni(111), from Blaylock's supplementary material | ||
deltaAtomicAdosrptionEnergy = { | ||
'C': rmgpy.quantity.Energy(-5.997, 'eV/molecule'), | ||
'H': rmgpy.quantity.Energy(-2.778, 'eV/molecule'), | ||
'O': rmgpy.quantity.Energy(-4.485, 'eV/molecule') | ||
} | ||
# deltaAtomicAdosrptionEnergy = { | ||
# 'C': rmgpy.quantity.Energy(-5.997, 'eV/molecule'), | ||
# 'H': rmgpy.quantity.Energy(-2.778, 'eV/molecule'), | ||
# 'O': rmgpy.quantity.Energy(-4.485, 'eV/molecule') | ||
# } | ||
# These are for Pt, from Katrin | ||
deltaAtomicAdosrptionEnergy = { | ||
'C': rmgpy.quantity.Energy(-6.750, 'eV/molecule'), | ||
'H': rmgpy.quantity.Energy(-2.479, 'eV/molecule'), | ||
'O': rmgpy.quantity.Energy(-3.586, 'eV/molecule'), | ||
'N': rmgpy.quantity.Energy(-4.352, 'eV/molecule'), | ||
} | ||
for element in 'CHO': | ||
for element in 'CHON': | ||
deltaAtomicAdosrptionEnergy[element].value_si = bindingEnergies[element].value_si - deltaAtomicAdosrptionEnergy[element].value_si | ||
self.deltaAtomicAdsorptionEnergy = deltaAtomicAdosrptionEnergy | ||
|
||
|
@@ -1332,7 +1332,7 @@ def correctBindingEnergy(self, thermo, species): | |
findCp0andCpInf(species, thermo) | ||
|
||
## now edit the adsorptionThermo using LSR | ||
for element in 'CHO': | ||
for element in 'CHON': | ||
changeInBindingEnergy = self.deltaAtomicAdsorptionEnergy[element].value_si * normalizedBonds[element] | ||
thermo.H298.value_si += changeInBindingEnergy | ||
thermo.comment += " Binding energy corrected by LSR." | ||
|
@@ -1381,6 +1381,9 @@ def getThermoDataForSurfaceSpecies(self, species): | |
elif bond.isTriple(): | ||
bondedAtom.incrementRadical() | ||
bondedAtom.incrementLonePairs() | ||
elif bond.isQuadruple(): | ||
bondedAtom.incrementRadical() | ||
bondedAtom.incrementLonePairs() | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mazeau
Author
Owner
|
||
else: | ||
raise NotImplementedError("Can't remove surface bond of type {}".format(bond.order)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wrong number of electrons?
If you're making up for a quadruple bond, shouldn't it be either two LonePairs or a LonePair and two Radicals? or some combination that gives four?