Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

How to stop COMSOL Events at an exact value?

$
0
0

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:


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>