|
[Sponsors] |
How to make sure to continue running from a complete time dir with latestTime ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 19, 2018, 09:58 |
How to make sure to continue running from a complete time dir with latestTime ?
|
#1 |
New Member
Join Date: Apr 2018
Posts: 14
Rep Power: 8 |
Hey forumers,
I usually meet errors when I try to re-run my case with latestTime option in controlDict 1) sometimes the time folders are not exact as what it should be according to the set-up of writeControl and writeInterval, instead, it is of very close decimals like 200 could be 199.9999999999 in this case, if you re-run you case you may be prompted that can not find p in 200, you have to rename 199.999999999 to 200 to keep running 2) another problem is the writing to time folder has been aborted before complete information is put in, this situation comes when you try to stop your solver when it happens to be writing data in the time folder so next time you run your case from this folder with lastestTime option, it won't run you have to delete this folder to use the second latest time. this is not a big problem unless you run your case in parallel on a supercomputer that has so many users so that you have to wait in a queue for 1-2 days to run you case. are there any ideas that can ensure successfully consecutive running? Last edited by eric-meng; May 19, 2018 at 13:32. |
|
May 19, 2018, 13:25 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
> like 200 could be 199.9999999999
That is because of the binary code floating points. No thing to worry about. > are there any ideas that can ensure successfully consecutive running? Set Code:
runTimeModifiable yes;
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
May 22, 2018, 02:46 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
1) You have to be careful with your writePrecision because there is a difference between 199.9999999999 vs 200.0000000000 vs 200.
2) Instead of using latestTime, you can use startTime and set the time of the 2nd latest folder. This saves you from having to manually delete the corrupted dir. Apart from that, I really don't get why you would intentionally stop the solver while it is writing... Just let it finish. If the queue time is so long, a few minutes should not hurt. |
|
May 22, 2018, 05:49 |
|
#4 | |
New Member
Join Date: Apr 2018
Posts: 14
Rep Power: 8 |
Quote:
I have tested before, it is not the reason of timePrecision, as to writePrecision, I think I have to keep it in a small level for the sake of storage space. sometimes, it really prompts cant find p in 200, such that I have to rename 199.9999 to 200 I run my case in a supercomputer the time is not control-able to me anyway I have to use some shell commands to re-run my case now, meanwhile the latestTime folder will be deleted automatically every time |
||
May 22, 2018, 05:52 |
|
#5 | |
New Member
Join Date: Apr 2018
Posts: 14
Rep Power: 8 |
Quote:
your suggestion for my second question is very good, I will try it while for the first one, this may still cause unusual stop for my case... hope the naming of time folder can be optimised in the future Thank you |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 03:36 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 06:49 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |