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.

Reciprocal of step size

Please login with a confirmed email address before reporting spam

Hello!

My question is how I can get current value of 'Reciprocal of step size' that convergence plot uses. The value normally plotted during calculation in COMSOL window, therefore I think may be the value can be get using some expression. If I know the expression, I'd like to use it for STOP condition. Thank you. Have a nice day.

Hideki


2 Replies Last Post 28.10.2017, 10:23 GMT-4
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 16.10.2017, 04:15 GMT-4

Hi,

The current step size is available as a variable, timestep, which you can use in a step condition. The step condition can be any Boolean expression, so you could use something like

(1/stepsize) < 100

for example, if you want the time stepping to stop when the reciprocal step size drops below 100.

Best regards, Magnus Ringh, COMSOL

Hi, The current step size is available as a variable, timestep, which you can use in a step condition. The step condition can be any Boolean expression, so you could use something like (1/stepsize) < 100 for example, if you want the time stepping to stop when the reciprocal step size drops below 100. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 28.10.2017, 10:23 GMT-4

Dear Ringh-san,

Thank you very much! I will try it.

Hideki Masuda

Dear Ringh-san, Thank you very much! I will try it. Hideki Masuda

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.