Skip to content

Commit

Permalink
Approximate Cp0 and CpInf for adsorbed species.
Browse files Browse the repository at this point in the history
See cfgoldsmith#5
for more detailed version.

Heat capacity for surface species is 0.01 not 0.
Absolute 0 causes problem.
  • Loading branch information
rwest committed Feb 6, 2019
1 parent d689acb commit 127cfcd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rmgpy/molecule/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,8 @@ def calculateCp0(self):
"""
Return the value of the heat capacity at zero temperature in J/mol*K.
"""
if self.containsSurfaceSite():
return 0.01
if len(self.atoms) == 1:
return 2.5 * constants.R
else:
Expand All @@ -1779,10 +1781,13 @@ def calculateCpInf(self):
"""
cython.declare(Natoms=cython.int, Nvib=cython.int, Nrotors=cython.int)

if self.containsSurfaceSite():
# ToDo: internal rotors could still act as rotors
return constants.R * 3 * len(self.vertices)

if len(self.vertices) == 1:
return self.calculateCp0()
else:

Natoms = len(self.vertices)
Nvib = 3 * Natoms - (5 if self.isLinear() else 6)
Nrotors = self.countInternalRotors()
Expand Down

0 comments on commit 127cfcd

Please sign in to comment.