Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Conditional ODE

Please login with a confirmed email address before reporting spam

Hello everyone,

I have the reaction kinetics of a reaction implemented using an ODE. How can I make sure that the ODE starts when a certain concentration is reached?

I tried adding a boolean in the source term of the ODE e.g. if(cA > 0.001, ODE,0). However, this start the ODE from the time the condition is reached e.g. t=2 sec. I want the reaction ODE to always start from t = 0 sec.

If anything is unclear, please let me know.

Thanks in advance!

Ben


0 Replies Last Post 2020年12月15日 GMT-5 08:51
COMSOL Moderator

Hello Ben Odinot

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.