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.
updating the dependent variable at the end of a time step
Posted 11 gen 2018, 13:40 GMT-5 General, Studies & Solvers 0 Replies
Please login with a confirmed email address before reporting spam
I'm solving for a dependent variable defined by a coefficient form PDE. But I need to confine the value of the dependent variable into a range, which can be defined by a piecewise function. So, is it possible to change the value of the dependent variable (defined using a function) at the end of each time step, so that the variable remains in the desired range? How do I implement this in comsol? For clarification, the variable maps to a circle and intrinsically has periodicity. What I intend to do is to add or subtract '2pi' if necessary at each time step through out the domain depending on the value of the dependent variable at current time step. Thanks in advance!
Hello Sachin Kurian
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.