MCPcopy Create free account
hub / github.com/Cantera/cantera / type

Method type

src/kinetics/Reaction.cpp:557–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557string 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
576UnitStack Reaction::calculateRateCoeffUnits(const Kinetics& kin)
577{

Callers 15

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TestConsistencyMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
VCS_SOLVEMethod · 0.45
showMethod · 0.45
_initMethod · 0.45

Calls 2

CanteraErrorClass · 0.85
subTypeMethod · 0.45

Tested by 6

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TestConsistencyMethod · 0.36
TESTFunction · 0.36