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.

save convergence plots

Please login with a confirmed email address before reporting spam

Is there any way of saving convergence plots like step reciprocal against step number so that whenever a model file is opened, they can be seen?


4 Replies Last Post 10 mars 2022, 07:18 UTC−5

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 8 mars 2022, 14:31 UTC−5

Bumping this up due to same question

Bumping this up due to same question

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 9 mars 2022, 04:06 UTC−5

Hi,

This is already possible using the following steps:

  1. In the Progress window, click the Copy Convergence Data to Model button (the leftmost button in the window's toolbar).
  2. In the Table window that opens (called Solution 1/Time-Dependent Solver 1, for example), click the Table Graph button in the window's toolbar to create a plot of the reciprocal step size.
  3. You would typically use a logarithmic y-axis in this plot to make it look similar to the plot in the Convergence Plot window.

This plot will be saved and opened with the model.

Best regards,

Magnus

Hi, This is already possible using the following steps: 1. In the **Progress** window, click the **Copy Convergence Data to Model** button (the leftmost button in the window's toolbar). 2. In the Table window that opens (called **Solution 1/Time-Dependent Solver 1**, for example), click the **Table Graph** button in the window's toolbar to create a plot of the reciprocal step size. 3. You would typically use a logarithmic *y*-axis in this plot to make it look similar to the plot in the **Convergence Plot** window. This plot will be saved and opened with the model. Best regards, Magnus

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 9 mars 2022, 23:43 UTC−5

Hi Magnus, thanks a lot. But if these plots can't be saved automatically by clicking a button in the settings, it's a bit inconvenient as one needs to do this manually for every simulation run?

Hi Magnus, thanks a lot. But if these plots can't be saved automatically by clicking a button in the settings, it's a bit inconvenient as one needs to do this manually for every simulation run?

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 10 mars 2022, 07:18 UTC−5

Could you record a method of the compute stage followed by the process Magnus describes?

Actually, just tried that and the generated code explicitly lists all of the data to be added to the new Table, so that won't work.... in which case, I agree, having a checkbox to automate this process within Comsol would be much better, (perhaps the table name could be linked to the internal ID of the version within the new Comsol Model Manager to provde traceability?)

Could you record a method of the compute stage followed by the process Magnus describes? Actually, just tried that and the generated code explicitly lists all of the data to be added to the new Table, so that won't work.... in which case, I agree, having a checkbox to automate this process within Comsol would be much better, (perhaps the table name could be linked to the internal ID of the version within the new Comsol Model Manager to provde traceability?)

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.