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.

Using Max/Min Nonlocal Couplings and Selecting specific location when Max/Min occurs at multiple points

Please login with a confirmed email address before reporting spam

I am using the Equations-based modeling to solve for the evolution of a two-layer drop. As part of the solution, I need to track the contact lines of the drop. I do this by using the Domain ODEs and DAEs feature in comsol, and specifically by tracking the minimum of the total height - some threshold value. This works fine for most cases, however, I have noticed a convergence issue for certain parameter values as the dynamics evolve such that the total height is equal to this threshold value at 3 different points. I think this is the source of the convergence issue as Comsol doesn't know which of these 3 points to choose (note that I am saving the location of this as a variable called xcut which is then used in the next time step to determine evolution of the drop).

My question is if fmin(function,x) attains at minimum at multiple locations, then what is comsol's default method of determining which location it ouputs? Further, can I force it to always spit out the smallest location (x value) at which this occurs.

Has anyone run into an issue such as this? Is there a simple way to get around this problem?


0 Replies Last Post 01.04.2024, 14:04 GMT-4
COMSOL Moderator

Hello Mark JoFa

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.