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

controlDict endTime not updated using runTimeModifiable

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Hawxliquid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2014, 07:07
Default controlDict endTime not updated using runTimeModifiable
  #1
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 231
Rep Power: 18
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
Hi,

I am having a slightly troubling problem. I am trying to update the simulation endTime in the controlDict during the simulation, but the updated controlDict file is not read...

solver: simpleFoam
openFoam: 2.2.1 (downloaded binaries)
Linux/ubuntu

I am running on amazon EC2, which I think may probably be the reason behind the issue.

I tried looking at the fileModificationChecking parameter as per http://www.openfoam.org/docs/user/co...plications.php. I could try timeStamp and timeStampMaster to no better effect, but could not try inotify (the binaries are not compiled with it).

Any idea?

Thanks in advance.
Julien
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Old   January 18, 2014, 13:42
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Julien,

A few questions:
  1. Is there any particular tutorial case from OpenFOAM, with which this can be reproduced?
  2. Are you changing the end time well before the simulation ends?
  3. Did you check if the dates of the files are actually changing?
  4. Have you tried adjusting the parameter "fileModificationSkew" in the "etc/controlDict" file? Namely in this one: https://github.com/OpenFOAM/OpenFOAM...ontrolDict#L51
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 19, 2014, 02:34
Default
  #3
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 231
Rep Power: 18
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
Thanks for replying.

Quote:
Originally Posted by wyldckat View Post
  1. Is there any particular tutorial case from OpenFOAM, with which this can be reproduced?
I reproduced the problem with airFoil2D. Same behavior.

Quote:
Originally Posted by wyldckat View Post
  1. Are you changing the end time well before the simulation ends?
Yes. There is plenty of time between the update to the controlDict and the simulation end - this being considered I was stopping the simulation manually (Ctrl-C) before the simulation end when I was seeing that the simulation should have stopped...

Quote:
Originally Posted by wyldckat View Post
  1. Did you check if the dates of the files are actually changing?
I did check the date using "ls -l", which showed that the date of the file was changing. But I was not sure if there may not be a better utility.

Quote:
Originally Posted by wyldckat View Post
  1. Have you tried adjusting the parameter "fileModificationSkew" in the "etc/controlDict" file? Namely in this one: https://github.com/OpenFOAM/OpenFOAM...ontrolDict#L51
I do not quite understand what the "fileModificationSkew" parameter does (or how it should be modified). The value was set to 30 and I changed it to 0 and it looks like the problem has been solved - at least for the airFoil2D case. I would need more testing to confirm for sure. Thanks a lot.
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Old   January 19, 2014, 12:11
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Julien,

Quote:
Originally Posted by julien.decharentenay View Post
I do not quite understand what the "fileModificationSkew" parameter does (or how it should be modified). The value was set to 30 and I changed it to 0 and it looks like the problem has been solved - at least for the airFoil2D case. I would need more testing to confirm for sure. Thanks a lot.
I'm glad it worked... or at least I hope it will work for the real cases!

I thought about this possibility due to a very recent commit: https://github.com/OpenFOAM/OpenFOAM...70ffb4ac7429a3 - which has the comment:
Quote:
ENH: codedFunctionObject: wait for NFS to load library
Looking at the modified source code, this is among the added details:
Code:
regIOobject::fileModificationSkew
Took me a bit to figure out where to look for this, but then I associated the notification details you had mentioned and had a look into the main "etc/controlDict"... hence the question/suggestion I made.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 8, 2023, 00:12
Default
  #5
New Member
 
Boris
Join Date: Jan 2017
Posts: 26
Rep Power: 9
Hawxliquid is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Julien,

A few questions:
  1. Is there any particular tutorial case from OpenFOAM, with which this can be reproduced?
  2. Are you changing the end time well before the simulation ends?
  3. Did you check if the dates of the files are actually changing?
  4. Have you tried adjusting the parameter "fileModificationSkew" in the "etc/controlDict" file? Namely in this one: https://github.com/OpenFOAM/OpenFOAM...ontrolDict#L51
Best regards,
Bruno



Sorry for the deter of the post, but this just helped me a ton and wanted to post here in case someone has the same issue.
I was quickly modifying my controlDict file but the changes never were registered. It turns out setting the skew to 0 allowed that!



Thanks!
Yann likes this.
Hawxliquid 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
RunTimeModifiable did not work maka OpenFOAM Running, Solving & CFD 5 July 26, 2021 17:56
No Wall pressure from OpenFOAM 2.2.0 musahossein OpenFOAM Post-Processing 11 October 1, 2013 15:08
controlDict in interFOAM amin66 OpenFOAM Pre-Processing 1 July 10, 2012 12:08
Forces not calculated when including a library in controlDict fusij OpenFOAM 2 May 13, 2011 08:25
writing controlDict as otherfields ubaid OpenFOAM 5 September 29, 2010 08:28


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