Skip to content

Commit

Permalink
Added new method to thermo class to generate RMG Adsorbate thermo lib…
Browse files Browse the repository at this point in the history
…rary
  • Loading branch information
tdprice-858 committed Dec 9, 2024
1 parent 7574d03 commit 9c530bd
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion pynta/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,31 @@ def fit_NASA(self):

return


# Print output in cti format
def format_RMG_output(self, index):
line = '\n'
line += 'entry(\n index = %s,\n' % (index)
line += f' label = "{self.name}",\n'
line += ' molecule = \n"""\n%s\n""",\n' % (self.adjacency_list)
# line += '\tatoms = "'
# for element in molecule.composition:
# if molecule.composition[element] > 0:
# line += " %s:%d" % (element, molecule.composition[element])
# line += '",\n'
# line += "\tsize = %d,\n" % (molecule.site_occupation_number)
line += self.thermo_lines
line += ' longDesc = u"""Calculated by x at x University using statistical mechanics (file: compute_NASA_for_Pt-adsorbates.ipynb). \n'
line += " Based on DFT calculations by x at x.\n"
if self.twoD_gas:
line += '\n The two lowest frequencies, %.1F and %.1F %s, where replaced by the 2D gas model.' % (
self.frequencies[0], self.frequencies[1], self.frequencies_units.replace("'", ""))
line += '""",\n\t)\n'

self.species_lines = line

return





0 comments on commit 9c530bd

Please sign in to comment.