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 find, save, and use the variable value in specific time in model setting
Posted 12.03.2024, 22:50 GMT-4 Studies & Solvers, Modeling Workflow Version 6.2 1 Reply
Please login with a confirmed email address before reporting spam
Deal all
I would like to ask some technical issues.
Assume that the PDE problem, where variable is called S.
when S(t=5)<=S(t=4), then save S(t=4) in a variable K. Again, if S(t=13)<=S(t=12), then save S(5=12) in that variable K. Therefore, K(1)=S(t=4) and K(2)=S(t=12).
The above problem is very easy adoped in MATLAB by using for circle and array [], but it seems that difficult adoped in COMSOL.
I would like to ask how to get the value in model setting so that it can be used in solving process.