-
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
Very stiff problem solver #103
Comments
Does initialization succeed for a smaller applied current? How much overpotential is required? |
The initialization seems working for small currents (0.1C) but the first time step is not computed by the solver ("Miscellanous exception in function: dae::solver::daeIDASolver::Solve, source file: .\ida_solver.cpp, line: 1159 It's a simple modification of the reaction term of the graphite, but in this case the mu_0 of the two phases is different so we have this sqr(K) that is quite high in one direction. This leads to a very high reaction rate which is not well computed if k_0 is more than 1e-7, when physically it should be at least 1e-1 or more. I can try to rethink about the physics of the system, but in general this seems a good occasion to understand the limits of the solver and possible solutions. |
Hi @Ombrini, in your example how are the variables |
Hi @d-cogswell, Copying and pasting the "" was cancelled. It seems to depend on the characteristics time of the system. In particular the ratio between the t0 given by the cathode length and 1/k0, so the reaction time. If this ratio is too big the program seems not able to reduce the stepsize efficiently when the reaction is starting. I guess it's mostly a matter of steptime tentative. |
So is this the model you are trying to solve below? Is
|
Yes it is the model, interLayerRxn = ((1 - c1)**2 * (1 - c2)**2)kinterlayer(1e-5act1R-1e5act2R) When act1R will grow a lot, and c1 will be close to 1 the interLayerRxn becomes positive, otherwise it's negative. |
Using smaller error tolerances such as |
When intra-layer reaction rate in CHR2 is too high, the initialization or the solver fails due to the small time scales.
In particular the characteristics time for reaction is 100 times less than the characteristics time of diffusion in the particle.
Any idea on how to solve the problem ?
The text was updated successfully, but these errors were encountered: