[1D] Fix IonFlame instability due to negative electron concentration
This commit is contained in:
parent
053267e254
commit
c3ba264284
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue