[Matlab/Reactor] Use 'nonorm' when setting mass fractions
This commit is contained in:
parent
01987b4438
commit
b4826c9b9c
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue