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.
How to stop COMSOL Events at an exact value?
Posted 2020年2月17日 GMT-5 11:21 General, Results & Visualization, Studies & Solvers Version 5.4 3 Replies
Please login with a confirmed email address before reporting spam
I am simulating battery cycling using the Events interface. The voltage limits are V_high = 2.45 V and V_low = 2 V. The events are working okay, but there is a problem that I have encountered multiple times. The events never stop at those particular values/limits, as one can see in the figure below. Sometimes the events change at 2.43, sometimes at 2.46 but never at 2.4500 V or 2.000V as I would like to. I'm thinking that the time step (which is now strict) might help with this, but decreasing the time step for a long simulation time would slow the model significantly. I have also checked the option "Store solution before and after events" in the solver output settings.
Can anyone help me to make the events stop/change at exact values without compromising the computation speed?
Unfortunately I cannot send the model, but here are some extracts from the event settings: