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

Method eval_rate

test/python/test_reaction.py:1757–1761  ·  view source on GitHub ↗
(self, rate)

Source from the content-addressed store, hash-verified

1755 _rc_units = ct.Units("m^3 / kmol / s")
1756
1757 def eval_rate(self, rate):
1758 gas = ct.Solution(yaml=self._phase_def)
1759 gas.TDY = self.soln.TDY
1760 gas.add_reaction(ct.Reaction(equation=self._equation, rate=rate))
1761 return gas.forward_rate_constants[0]
1762
1763 def test_no_rate(self):
1764 # Slightly different from the base case since we normally check evaluation via

Callers 2

test_no_rateMethod · 0.95
test_eval_errorMethod · 0.95

Calls 2

SolutionMethod · 0.80
ReactionMethod · 0.45

Tested by

no test coverage detected