| 555 | } |
| 556 | |
| 557 | string Reaction::type() const |
| 558 | { |
| 559 | if (!m_rate) { |
| 560 | throw CanteraError("Reaction::type", "Empty Reaction does not have a type"); |
| 561 | } |
| 562 | |
| 563 | string rate_type = m_rate->type(); |
| 564 | string sub_type = m_rate->subType(); |
| 565 | if (sub_type != "") { |
| 566 | return rate_type + "-" + sub_type; |
| 567 | } |
| 568 | |
| 569 | if (m_third_body) { |
| 570 | return "three-body-" + rate_type; |
| 571 | } |
| 572 | |
| 573 | return rate_type; |
| 574 | } |
| 575 | |
| 576 | UnitStack Reaction::calculateRateCoeffUnits(const Kinetics& kin) |
| 577 | { |