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

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!


0 Replies Last Post Jan 11, 2018, 1:40 p.m. EST
COMSOL Moderator

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.

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.