CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How to make sure to continue running from a complete time dir with latestTime ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2018, 08:58
Default 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
eric-meng is on a distinguished road
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 12:32.
eric-meng is offline   Reply With Quote

Old   May 19, 2018, 12:25
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
> 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;
in controlDict and don't finish with ^C but with setting endTime to a value not too far in the calculated future.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 22, 2018, 01:46
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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.
LuckyTran is offline   Reply With Quote

Old   May 22, 2018, 04:49
Default
  #4
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
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.
Hi LuckyTran, thanks for your reply

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
eric-meng is offline   Reply With Quote

Old   May 22, 2018, 04:52
Default
  #5
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Quote:
Originally Posted by piu58 View Post
> 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;
in controlDict and don't finish with ^C but with setting endTime to a value not too far in the calculated future.
Hi piu58, sorry for late reply


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
eric-meng is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 02:36
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32


All times are GMT -4. The time now is 14:04.