Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

How to stop a runaway simulation?

$
0
0
Hi,

I am running simulations automated with matlab scripting. Sometimes the simulations run away (do not converge) and last for ever with a extremly small time step. In such situations one usually hits the stop button in the solution progress window, but in an automated run you can't.

I guess it could be done with the Stop Condition in the 'Solvers Parameters - Time Stepping - Use Stop Condition' field.
There I could use the current or last time step size and set a limit to it.

But how can I access the current (or last) Stepsize ? Is there a variable I can use?

Thanks for any ideas,

Martin

Viewing all articles
Browse latest Browse all 26527

Trending Articles