void OutletRes1D::setMoleFractions(const doublereal* xres) { if (m_flow) { m_flow->phase().setMoleFractions(xres); m_flow->phase().getMassFractions(m_yres.data()); needJacUpdate(); } }
void Inlet1D::setMoleFractions(const doublereal* xin) { if (m_flow) { m_flow->phase().setMoleFractions(xin); m_flow->phase().getMassFractions(m_yin.data()); needJacUpdate(); } }
void OutletRes1D:: setMoleFractions(doublereal* xres) { if (m_flow) { m_flow->phase().setMoleFractions(xres); m_flow->phase().getMassFractions(DATA_PTR(m_yres)); needJacUpdate(); } }
void Inlet1D:: setMoleFractions(doublereal* xin) { if (m_flow) { m_flow->phase().setMoleFractions(xin); m_flow->phase().getMassFractions(DATA_PTR(m_yin)); needJacUpdate(); } }
void OutletRes1D::setMoleFractions(const std::string& xres) { m_xstr = xres; if (m_flow) { m_flow->phase().setMoleFractionsByName(xres); m_flow->phase().getMassFractions(m_yres.data()); needJacUpdate(); } }
void Inlet1D::setMoleFractions(const std::string& xin) { m_xstr = xin; if (m_flow) { m_flow->phase().setMoleFractionsByName(xin); m_flow->phase().getMassFractions(m_yin.data()); needJacUpdate(); } }
void Inlet1D:: setMoleFractions(string xin) { m_xstr = xin; if (m_flow) { m_flow->phase().setMoleFractionsByName(xin); m_flow->phase().getMassFractions(DATA_PTR(m_yin)); needJacUpdate(); } }
void OutletRes1D:: setMoleFractions(string xres) { m_xstr = xres; if (m_flow) { m_flow->phase().setMoleFractionsByName(xres); m_flow->phase().getMassFractions(DATA_PTR(m_yres)); needJacUpdate(); } }
void IonFlow::fixElectricField(size_t j) { bool changed = false; if (j == npos) { for (size_t i = 0; i < m_points; i++) { if (m_do_electric_field[i]) { changed = true; } m_do_electric_field[i] = false; } } else { if (m_do_electric_field[j]) { changed = true; } m_do_electric_field[j] = false; } m_refiner->setActive(c_offset_U, false); m_refiner->setActive(c_offset_V, false); m_refiner->setActive(c_offset_T, false); m_refiner->setActive(c_offset_E, false); if (changed) { needJacUpdate(); } }