[1D] Fix IonFlame instability due to negative electron concentration

This commit is contained in:
Ray Speth 2018-07-22 21:11:13 -04:00
parent 053267e254
commit c3ba264284

View file

@ -45,6 +45,10 @@ IonFlow::IonFlow(IdealGasPhase* ph, size_t nsp, size_t points) :
// no bound for electric potential
setBounds(c_offset_P, -1.0e20, 1.0e20);
// Set tighter negative species limit on electron concentration to avoid
// instabilities
setBounds(c_offset_Y + m_kElectron, -1e-16, 1.0);
m_refiner->setActive(c_offset_P, false);
m_mobility.resize(m_nsp*m_points);
m_do_poisson.resize(m_points,false);