[Matlab/Reactor] Use 'nonorm' when setting mass fractions

This commit is contained in:
Ray Speth 2014-06-16 22:00:30 +00:00
parent 01987b4438
commit b4826c9b9c
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,8 @@ function dydt = conhp(t,y,gas,mw) %#ok<INUSL>
% Set the state of the gas, based on the current solution vector.
set(gas, 'T', y(1), 'P', pressure(gas), 'Y', y(2:end));
setMassFractions(gas, y(2:end), 'nonorm');
set(gas, 'T', y(1), 'P', pressure(gas));
% energy equation
wdot = netProdRates(gas);

View file

@ -8,7 +8,8 @@ function dydt = conuv(t,y,gas,mw) %#ok<INUSL>
% Set the state of the gas, based on the current solution vector.
set(gas, 'T', y(1), 'Rho', density(gas), 'Y', y(2:end));
setMassFractions(gas, y(2:end), 'nonorm');
set(gas, 'T', y(1), 'Rho', density(gas));
nsp = nSpecies(gas);
% energy equation