Enable additional states / equations in onedim
This commit is contained in:
parent
848a3bf0e3
commit
f078f53f39
1 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ void Inlet1D::init()
|
|||
}
|
||||
|
||||
// components = u, V, T, lambda, + mass fractions
|
||||
m_nsp = m_flow->nComponents() - c_offset_Y;
|
||||
m_nsp = m_flow->phase().nSpecies();
|
||||
m_yin.resize(m_nsp, 0.0);
|
||||
if (m_xstr != "") {
|
||||
setMoleFractions(m_xstr);
|
||||
|
|
@ -441,7 +441,7 @@ void OutletRes1D::init()
|
|||
throw CanteraError("OutletRes1D::init","no flow!");
|
||||
}
|
||||
|
||||
m_nsp = m_flow->nComponents() - c_offset_Y;
|
||||
m_nsp = m_flow->phase().nSpecies();
|
||||
m_yres.resize(m_nsp, 0.0);
|
||||
if (m_xstr != "") {
|
||||
setMoleFractions(m_xstr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue