Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Speed up a Computational Problem in COMSOL involving parametric sweep

Please login with a confirmed email address before reporting spam

Consider the general parametric sweep case:
When I set up a non-linear FEM problem, it takes considerably more time than a Linear FEM case. The reason for this extra time taken is the extra effort by COMSOL which involves :
1. COMSOL takes the step as specified by the user in the parametric sweep section and if cannot converge, takes smaller steps to go as far as possible. SO many step sizes are tried by COMSOL.
2. COMSOL tries different solver strategies and tries to converge for each step.

For my problem, probably the last of 1 and 2 efforts are successful which involves a total of 4 hours to solve. I can see in the progress section that the parametric sweep goes very fast from 1V to 26V and then it takes at least 3 hours near 26V. I have specified parametric sweeping limits from 1V to 50V in steps of 1V. It is fantastic that the error comes at 26V stating inverted mesh elements (owing to system instabilities) retaining the previous solutions of 1V to 26V.

Question 1: Is there a way to find out which solver strategy was successful in the first run and in subsequent runs force the same strategy so that the simulation is sped up in subsequent runs?
Question 2: Can the 3 hours be saved in which nothing useful was done except returning the error, provided that I dont know that the system instability occurs near 26V at the beginning of running the simulation?

0 Replies Last Post 2014年1月1日 GMT-5 19:20
COMSOL Moderator

Hello Saurabh Mittal

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.