|
[Sponsors] |
September 16, 2013, 04:37 |
changeDictionary fails with multiple times
|
#1 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
Hello All,
because ParaFoam cannot work with uniformfixedValue I need to use changeDictionary -time 70,80,90,100 this option does not work only the first time gets changed. Best regards Wouter Ubuntu 13.04 Openfoam 2.2.x |
|
September 17, 2013, 14:01 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Wouter,
I am sorry to tell that after a quick look in the source code, then it does what it is designed for, since there is no loop over the time instances. It reads the time list given by the user, if the time list is of length zero, the utility throws an error and otherwise it does: Code:
runTime.setTime(times[0], 0); 1. Execute for each time instance "manually" or, 2. Modify the solver. Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
September 17, 2013, 15:59 |
|
#3 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
Hello ngj,
So I can assume the bugreport has to mention the bug in the help text. All the best Wouter |
|
September 17, 2013, 19:40 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Wouter: Ah, this is one of those situations where shell scripting can come in handy. Try this: Code:
for timeIter in 70 80 90 100; do changeDictionary -time $timeIter done Code:
for timeIter in 70 80 90 100; do changeDictionary -time $timeIter ; done But for reporting bugs to be fixed in OpenFOAM, you have to write the bug report on the official bug tracker: http://www.openfoam.org/bugs/ Best regards, Bruno
__________________
|
|
September 18, 2013, 05:06 |
|
#5 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
Dear wyldckat,
Thank you again for the scripts. A hurdle is signing in for a bugreport. I looked at sample an reconstructPar and I think it is a challenge to write my own change dir. But in the meantime I will use your script. Regards Wouter |
|
September 18, 2013, 05:59 |
|
#6 | |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Quote:
Code:
for ((i=70; i<101; i+=10)); do...; done Code:
for dir in [0-9]*; do ...; done; |
||
September 18, 2013, 11:50 |
|
#7 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
Dear Bernhard,
Thanks for that option, because I have 300 timesteps in parallel. I have to run it in every processor and it is slow. Thanks All Wouter for future use I renamed BC uniformFixedValue to TimeVaryingFixedValue. Last edited by wouter; September 18, 2013 at 13:03. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
[ICEM] Multiple edges | asal | ANSYS Meshing & Geometry | 2 | March 22, 2013 11:10 |
benchmark: flow over a circular cylinder | goodegg | Main CFD Forum | 12 | January 22, 2013 12:47 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |