CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   How to interrupt SU2 during a computation (https://www.cfd-online.com/Forums/su2/143034-how-interrupt-su2-during-computation.html)

alexandresapet October 15, 2014 03:08

How to interrupt SU2 during a computation
 
Good morning,

I am actually programming a tool in Python that integrates SU2.
I would like to read the history file during a computation and, based on this information, interrupt the computation.

Is there some built-in function that could allow me to do that properly ?

Thanks,
Alexandre

hlk October 20, 2014 13:27

Quote:

Originally Posted by alexandresapet (Post 514393)
Good morning,

I am actually programming a tool in Python that integrates SU2.
I would like to read the history file during a computation and, based on this information, interrupt the computation.

Is there some built-in function that could allow me to do that properly ?

Thanks,
Alexandre

Thank you for your interest in SU2.
First of all, you may find it useful to reference the SU2 python scripts in the SU2_PY folder (if you are not already doing that)

My suggestions would be to either kill the SU2 process and restart from the most recent restart file with the number of iterations needed, or to modify the source code with a new convergence criteria which provides the functionality you need.


All times are GMT -4. The time now is 07:11.