Closed PoojaNem closed 8 months ago
Hello Everyone,
I have found the source of this error while debugging. The error occurred due to a missing Troe kinetic in the main.py file of the RMG (image below). The present RMG code checks if violator[0].kinetics is the ThirdBody and, if True, enters into the if condition where self.reaction_model.core.species is supplied as an argument (species_list) to the function to_chemkin. For all the other types of kinetics, the else loop is followed, which does not have any argument. However, Troe kinetics also requires species_list, as an argument to identify collider species, which is considered as None as per the current code.
Therefore, adding Troe to the if statement resolved this concern. The code runs fine after making this change.
I hope my explanation is clear. It would be helpful if developers could provide their feedback on the same.
Hi @PoojaNem thank you for opening this issue and doing this investigation as well! This seems reasonable to me, though we should subject the change to our continuous integration just to make sure there aren't any unintended side effects.
Could you please follow this official GitHub tutorial for proposing changes to the codebase: https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project
I am happy to get these merged into RMG and have you listed as an official contributor after that!
@JacksonBurns, Thanks for the prompt reply. I have submitted pull request #2614 to incorporate the changes to RMG. Let me know if further details are required from my end.
Hello Everyone,
Problem Description:
I am trying to generate a kinetic model for n-propylcyclohexane oxidation in RMG. However, on running every time RMG throws a type error that says: "'NoneType' object is not iterable."
There are a few points to notice here:
The zip folder containing an input file and database for reproducing a model is attached below.
Installation Information:
ZipFolder.zip