|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 ![]() |
Hi,
I am doing a large LES simulation with OF 2.2.1, therefore the simulation exceeds the wall time and I need to continue it multiple times. However, the problem is that every time that I restart it, it doesn't read the old values of my field averages so it starts averaging those fields all over again. Any ideas how this problem can be solved? Thanks in advance. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 ![]() |
In system.controldict use
Code:
startFrom latestTime;
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 ![]() |
I did this in v. 4.x without any problems. Can you post the file?
|
|
![]() |
![]() |
![]() |
![]() |
#5 | ||
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 ![]() |
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 ![]() |
There are flags like "resetOnRestart" and "resetOnOutput" that you could use which would lead to the behavior you mentioned but I didn't see them added to your file.
I checked my old files from 2.4.0 where I think it worked as intended and the only difference I found is the output line where I have writeControl writeTime; writeInterval 1; instead of outputControl timeStep; outputInterval 1; I do not exactly know the difference between the two. Also, I have time start set (timeStart) but I do not think that this makes the difference. If I have some minutes later, I will try to check, if it continues the averaging after a restart of the simulation. |
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 ![]() |
So I just tested it on 2.4.0 with an old simulation of mine. It is continuing to average and is reading from the e.g. UMean file from the last time directory. I compared the UMean file of both time steps and they are basically identical. There is even an output in the terminal during the solving saying
fieldAverage fieldAverage: Reading/initialising field UMean Well, I guess you already checked it, but is there and output of the Mean fields in the time directories? |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19 ![]() |
There was a bug in the fieldAverage function object:
Not continuous averaging when restarting a calculation https://bugs.openfoam.org/view.php?id=898 I am afraid that you use the version with this bug. Best regards, Fumiya
__________________
[Personal]
|
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
Tags |
continue from file, field average, latesttime, openfoam |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Estimating confidence intervals for average results from LES | flotus1 | Main CFD Forum | 10 | February 3, 2017 08:24 |
Field average | pappo1890 | OpenFOAM | 0 | October 12, 2016 08:11 |
How to make grid for LES simulation | dinhanh | Main CFD Forum | 3 | November 11, 2015 02:37 |
Temperature field error in compressible LES | aljo | OpenFOAM Running, Solving & CFD | 4 | December 10, 2013 03:30 |
outlet profiles of LES simulation as transient inlet b.c. for LES of a bend pipe | Henny | FLUENT | 0 | March 28, 2013 04:02 |