Skip to content

Commit

Permalink
Write comments with thermo and reaction sources to Arkane pdep output…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
mjohnson541 committed Feb 23, 2019
1 parent 9153c83 commit 25869a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arkane/pdep.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,21 @@ def save(self, outputFile):
Plist = self.Plist.value_si
Tcount = Tlist.shape[0]
Pcount = Plist.shape[0]

f.write("#Thermo used: \n")
spcs = []
for rxn in self.network.pathReactions:
spcs.extend(rxn.reactants)
spcs.extend(rxn.products)
for spc in spcs:
f.write("#"+spc.label+" SMILES: "+spc.molecule[0].toSMILES()+"\n")
f.write("#"+spc.thermo.comment+"\n")
f.write("\n#Path Reactions used: \n")
for rxn in self.network.pathReactions:
f.write("#"+str(rxn)+"\n")
for s in rxn.kinetics.comment.split("\n"):
f.write("#"+s+"\n")
f.write("\n")

count = 0
printed_reactions = [] # list of rxns already printed
Expand Down

0 comments on commit 25869a1

Please sign in to comment.