-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return electric_field_enabled option to ionflow #221
Comments
Hi Andrey, All the capabilities for solving the electric field are still in place, but have been modified a bit in Cantera 3.0 and later, such that the |
I tried to reproduce the same behaviour. However failed to because this option is not presented there. I believe stage 2 doesn't activate as it should be. The number of positive and negative charged particles are the same but doesn't reproduce the real behaviour. Although both algorithms use the same mechanism. reducedS26R134_0.txt |
Abstract
Greeting developers! I've been working on version 2.6.0 because option "electric_field_enabled" was available. It was quite important to correct reproduce the ion concentration in flames where the concentration of electrons and cations were the same.
Motivation
However, I tried to update to Ubuntu 24.04 and when i tried to install cantera 2.6.0. I was unable to do it due to the errors produced by Cython in Python 3.12. I looked through the source code and found lines of code written below.
Is it possible to toggle back this feature?
Possible Solutions
`size_t Flow1D::getSolvingStage() const
{
throw NotImplementedError("Flow1D::getSolvingStage",
"Not used by '{}' objects.", type());
}
void Flow1D::setSolvingStage(const size_t stage)
{
throw NotImplementedError("Flow1D::setSolvingStage",
"Not used by '{}' objects.", type());
}
void Flow1D::solveElectricField(size_t j)
{
throw NotImplementedError("Flow1D::solveElectricField",
"Not used by '{}' objects.", type());
}
void Flow1D::fixElectricField(size_t j)
{
throw NotImplementedError("Flow1D::fixElectricField",
"Not used by '{}' objects.", type());
}
bool Flow1D::doElectricField(size_t j) const
{
throw NotImplementedError("Flow1D::doElectricField",
"Not used by '{}' objects.", type());
}`
References
https://github.com/Cantera/cantera/tree/3.1/src/oneD/Flow1D.cpp
The text was updated successfully, but these errors were encountered: