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

Method test_convert_rate_coeff

test/python/test_utils.py:78–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 assert system.convert_activation_energy_to(4, "J/mol") == 0.004
77
78 def test_convert_rate_coeff(self):
79 system = ct.UnitSystem({"length": "cm"})
80 assert system.convert_rate_coeff_to(11, ct.Units("m^3/kmol/s")) == approx(11e-6)
81 assert system.convert_rate_coeff_to("22 m^3/mol/s", "m^3/kmol/s") == approx(22e3)
82
83 def test_convert_to_custom(self):
84 system = ct.UnitSystem({"length": "cm", "mass": "g"})

Callers

nothing calls this directly

Calls 2

UnitsMethod · 0.80
UnitSystemMethod · 0.45

Tested by

no test coverage detected