Closed bliboalbert closed 5 months ago
This method was deprecated and removed in Cantera 2.6. The new way of writing this is:
gas.reaction(i).reversible
I'm going to transfer this to the cantera-website
repository, since the error here is an out-of-date tutorial. Thanks for reporting this issue.
Problem description
The ct.Solution().is_reversible() returns an error message. The error message was AttributeError: 'Solution' object has no attribute 'is_reversible'
Steps to reproduce
rf = g.forward_rates_of_progress rr = g.reverse_rates_of_progress for i in range(g.n_reactions): if g.is_reversible(i) and rf[i] != 0.0: print(' %4i %10.4g ' % (i, (rf[i] - rr[i])/rf[i]))'
Behavior
File "C:\Users\Albert\PycharmProjects\chemEngProject\equilibrium.py", line 11, in
if gas.is_reversible(i) and forwardRxn[i] != 0.0:
^^^^^^^^^^^^^^^^^
AttributeError: 'Solution' object has no attribute 'is_reversible''
System information
Attachments
Additional context
Discovered when learning from Getting started tutorials.