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

Method test_append_no_norm_data

test/python/test_composite.py:496–504  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

494 assert states.size == 1
495
496 def test_append_no_norm_data(self):
497 gas = ct.Solution("h2o2.yaml")
498 gas.TP = 300, ct.one_atm
499 gas.set_unnormalized_mass_fractions(np.full(gas.n_species, 0.3))
500 states = ct.SolutionArray(gas)
501 states.append(T=gas.T, P=gas.P, Y=gas.Y, normalize=False)
502 assert states[0].T == gas.T
503 assert states[0].P == gas.P
504 assert states[0].Y == approx(gas.Y)
505
506 def test_append_scrambled_input(self):
507 gas = ct.Solution("h2o2.yaml")

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
SolutionMethod · 0.80
SolutionArrayMethod · 0.80

Tested by

no test coverage detected