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

Method setup_gas

test/python/test_kinetics.py:343–347  ·  view source on GitHub ↗
(self, mech)

Source from the content-addressed store, hash-verified

341 P1 = 3.7e6
342
343 def setup_gas(self, mech):
344 gas = ct.Solution(mech)
345 self.X0 = 1 + np.sin(range(1, gas.n_species + 1))
346 self.X1 = 1 + np.sin(range(2, gas.n_species + 2))
347 return gas
348
349 def check_rates_composition(self, mech):
350 gas = self.setup_gas(mech)

Callers 5

check_rates_pressureMethod · 0.95
test_modify_thermoMethod · 0.95

Calls 1

SolutionMethod · 0.80

Tested by

no test coverage detected