[1D] Retain negative species when retrieving solution state

This can be useful when debugging issues with the 1D solver.
This commit is contained in:
Ray Speth 2016-02-23 18:36:57 -05:00
parent 318fa04cf7
commit 2d82c78c37

View file

@ -226,7 +226,8 @@ class FlameBase(Sim1D):
k0 = self.flame.component_index(self.gas.species_name(0))
Y = [self.solution(k, point)
for k in range(k0, k0 + self.gas.n_species)]
self.gas.TPY = self.value(self.flame, 'T', point), self.P, Y
self.gas.set_unnormalized_mass_fractions(Y)
self.gas.TP = self.value(self.flame, 'T', point), self.P
@property
def heat_release_rate(self):