-
Notifications
You must be signed in to change notification settings - Fork 26
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
Issue with consistent initialization for linear isotherm model #105
Comments
After some debugging, @Immudzen and I can report some new findings: The issue also affects column models such as the LumpedRateModelWithoutPores. Concerningly, we could observe that there is also an issue when setting This indicated that it was an issue related to the isotherm, and not the CSTR. However, when testing another isotherm model (i.e. In case of the CSTR, the problem seem to start here: For the linear model, this steps into the following function: In contrast, for Langmuir, the BindingModelBase class's function is used, which simply returns To fix the issue, we would suggest to simply treat the linear model like all the others. @sleweke Could there be any side effects? Also, we have not tested further any other isotherm models yet and don't know whether this also affects other implementations. |
I kind of understand why the problem appears for In the latter case, no consistent initialization has to be performed except for interstitial-particle-flux and network connections. Do you have some insights here? |
So it works for kinetic and quasi-stationary mode or only for kinetic? |
During the workshop, we realized something odd about using the rapid equilibrium in adsorption models.
When setting the following initial conditions in a CSTR (without any in- or outgoing flow)
and setting
is_kinetic
toTrue
We get a graph that looks as expected when plotting c and q over time:
However, when setting
is_kinetic = False
, it seems to ignore the initial conditions. Mass is created from nowhere (expected would be 0.66 in solid phase and 0.33 in bulk phase):The text was updated successfully, but these errors were encountered: