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

Method eval

test/python/test_reaction.py:863–872  ·  view source on GitHub ↗
(self, rate, species=True)

Source from the content-addressed store, hash-verified

861 self.gas.TP = 900, ct.one_atm
862
863 def eval(self, rate, species=True):
864 # evaluate rate expression
865 if species:
866 rate.set_species(self.soln.species_names)
867 rate.site_density = self.soln.site_density
868 assert rate.site_density == self.soln.site_density
869 if "Blowers-Masel" in self._type:
870 rate.delta_enthalpy = self.soln.delta_enthalpy[self._index]
871 with pytest.warns(UserWarning, match="InterfaceData::update"):
872 return rate(self.soln.T, self.soln.coverages)
873
874 def from_parts(self):
875 rate = super().from_parts()

Callers 1

test_no_speciesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected