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.

Livelink Matlab command

Please login with a confirmed email address before reporting spam

Hello All,

Quick question:

Is there anyway to detect a flag value to see when the a solution converges or diverges during a Matlab script execution?

What I want to do is to run a series of mph files, each has 20 parameters to sweep. But there is a possibility that when the parameter gets too large, it will not converge. That is OK though but I need Matlab to continue to run even though the current parameter gives a divergence condition.

If there is a flag value that I can detect, to see and put that as a "if" statement inside my for loop, that would be awesome.

I checked the Livelink manual and it doesn't seem to provide such command.

Does anything know? Thank you so much.

Robert

0 Replies Last Post Jul 6, 2015, 12:27 a.m. EDT
COMSOL Moderator

Hello Robert Zhang

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.