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.
  • Loading branch information
rwest committed Jun 21, 2016
1 parent c29fa22 commit 8b4daf4
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 @@ -1492,6 +1492,8 @@ def calculateCp0(self):
"""
Return the value of the heat capacity at zero temperature in J/mol*K.
"""
if self.containsSurfaceSite():
return 0.0
if len(self.atoms) == 1:
return 2.5 * constants.R
else:
Expand All @@ -1503,10 +1505,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 8b4daf4

Please sign in to comment.