-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
How do I use callback_initializealg
?
#3298
Comments
|
I see. And how would I add this keyword considering I introduced my callbacks inside |
Just normally: @discrete_events begin
ModelingToolkit.SymbolicDiscreteCallback(condition, affect; reinitializealg = ShampineCollocationInit())
end inside the |
Thanks a lot, the |
Yeah we aren't fully transparent about the things you can do inside Can this issue be closed now? |
Yes, it answered my question and solved my problem, thank you |
Question❓
I'm trying to model a chromatographic column, which involves a second-order PDE in space. At some points in time, I change the flowrate and concentration in the beginning of the column through discrete callbacks but I get initialization errors. I tried to use the
initializealg = ShampineCollocationInit()
option insidesolve
, but to no avail. After reading #3254 I found out about thecallback_initializealg
option that I wanted to try, but how and where should I use it?Thanks
The text was updated successfully, but these errors were encountered: