‘Restart’ results in divergence.

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
xingjian
Posts: 55
Joined: Thu Apr 06, 2017 12:34 pm

‘Restart’ results in divergence.

Post by xingjian »

Hello,

I stopped the calculation when it ran to 1000 steps, to observe the results, because that's a too big calculation, if there is an error I can adjust in time.

It was very stable, but after the 'restart' there is a great fluctuation, like this:
8.png
But I didn't change anything, I don't understand.

So that means that don't use 'restart' is better?

And when we calculate, there is a 'convergence tool' in the top of menu bar:
7.png
I clicked it, but there was nothing, who can tell me how to use it?

Thank you very much

Beat Regards

XING Jian
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: ‘Restart’ results in divergence.

Post by Yvan Fournier »

Hello,

The oscillations are strange. Could you remind us what your setup is ?

Also, the convergence tool can also be called running "code_saturne trackcvg" from a terminal.

It should be called automatically when pressing the button you have in the GUI, but there might be a subprocess issue (difficult to reproduce and thus debug under Linux, apparently more common under Windows).

Regards,

Yvan
xingjian
Posts: 55
Joined: Thu Apr 06, 2017 12:34 pm

Re: ‘Restart’ results in divergence.

Post by xingjian »

Hello Yvan,

I did not change any settings, just in 'restart', I chose the 'checkpoint' in the directory that I calculated before.

And I do not understand, you said that 'convergence tool' is more common under Windows, but I clicked it in 'GUI', there appear nothing, it does not have any reaction.

So I need to run "code_saturne trackcvg" from a terminal? How to run it? double click 'code_saturne trackcvg' file from directory?

Thank you very much

Best Regards

XING Jian
Attachments
Restart.xml
(20.14 KiB) Downloaded 294 times
upwind_CFL1_Fo1_0.00001.xml
(20.08 KiB) Downloaded 232 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: ‘Restart’ results in divergence.

Post by Yvan Fournier »

Hello,

There is no "code_saturne trackcvg" file, but to test this, you may copy runcase.bat to trackcvg.bat, and replace the "code_saturne run ..." line with "code_saturne trackcvg".

Best regards,

Yvan
Ionut G
Posts: 43
Joined: Fri Apr 20, 2018 2:43 pm

Re: ‘Restart’ results in divergence.

Post by Ionut G »

Hello,

I'm new to Code_saturne and I'm using Code_saturne 5.0.7 on Windows 10 64bits.

When I start a simulation and press the "convergence tool" button nothing is happening, and in the cmd window that start with the software, I get this message:
"Traceback (most recent call last):
File "lib/python2.7/site-packages\code_saturne\Pages\BatchRunningView.py", line 433, in __slotCvgTool
File "C:\Python27\lib\subprocess.py", line 710, in __init__
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified"

I tried to install Python 2.7 but it didn't solve the problem.
How can I see the convergence graph?

Thank you for help
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: ‘Restart’ results in divergence.

Post by Yvan Fournier »

Hello,

These seem to be issues with the Windows version. I'll try to check if your reports can help us fix this for the next release.

In the meantime, you can simply open the convergence and monitoring files (those with a .csv or .dat extension in the RESU/<run_id> and RESU/<run_id>/monitoring directories) with a tool such as ParaView, or even LibreOffice or Excel to plot results.

Regards,

Yvan
Post Reply