|
[Sponsors] |
July 21, 2017, 16:20 |
Continuing field average in LES simulation
|
#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. |
|
July 22, 2017, 00:44 |
|
#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) |
|
July 22, 2017, 07:33 |
|
#3 |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
||
July 29, 2017, 09:55 |
|
#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?
|
|
July 29, 2017, 10:24 |
|
#5 | ||
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
Quote:
Quote:
|
|||
July 29, 2017, 14:55 |
|
#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. |
|
July 29, 2017, 15:18 |
|
#7 | |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
Quote:
|
||
July 29, 2017, 15:23 |
|
#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? |
|
July 29, 2017, 15:52 |
|
#9 | |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
Quote:
|
||
July 30, 2017, 00:54 |
|
#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]
|
|
July 30, 2017, 07:02 |
|
#11 | |
Member
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
Quote:
|
||
Tags |
continue from file, field average, latesttime, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Estimating confidence intervals for average results from LES | flotus1 | Main CFD Forum | 10 | February 3, 2017 09:24 |
Field average | pappo1890 | OpenFOAM | 0 | October 12, 2016 09:11 |
How to make grid for LES simulation | dinhanh | Main CFD Forum | 3 | November 11, 2015 03:37 |
Temperature field error in compressible LES | aljo | OpenFOAM Running, Solving & CFD | 4 | December 10, 2013 04:30 |
outlet profiles of LES simulation as transient inlet b.c. for LES of a bend pipe | Henny | FLUENT | 0 | March 28, 2013 05:02 |