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

LES UPrime2Mean from previously calculated UMean

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2023, 13:50
Default LES UPrime2Mean from previously calculated UMean
  #1
New Member
 
mjavrincon's Avatar
 
Mario Javier Rincón
Join Date: Dec 2020
Location: Denmark
Posts: 7
Rep Power: 5
mjavrincon is on a distinguished road
Dear community,

I have been trying to calculate the turbulence kinetic energy (TKE) of large eddy simulations (LES) for a while.
I have found that using the fieldAverage utility in OpenFOAM (the standard approach as I have seen) there is a big problem in the calculation of UPrime2Mean. Let me explain by having this code in controlDict:

Code:
functions
{
    fieldAverage
    {
        type            fieldAverage;
        libs            ("libfieldFunctionObjects.so");
        writeControl    writeTime;

        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }
}
The problem is that using directly this approach and starting the simulation, the UMean value used to calculate UPrime2Mean is not converged, thus yielding incorrect data unless a huge simulation is run to compensate for the iterations collected in which UMean is not converged.

As a solution, I have been trying to run first only UMean averaging, and when this field is converged, start the UPrime2Mean calculation, hoping that the convergence of the 2nd order statistics does not take that long.

However, I have not succeeded at doing so since the calculation of UPrime2Mean takes into account the number of time steps already used to calculate UMean and the UPrime2Mean field barely changes from the results obtained in the first iteration.

Have someone managed to fix or use a previous UMean field and use it to calculate UPrime2Mean?

Thank you in advance!

P.S. I have attached a figure of velocity probes in function of simulation time with the instantaneous values and 1st order statistics to show what I mean.
Attached Images
File Type: jpg probesConvergenceU.jpg (150.9 KB, 14 views)
mjavrincon is offline   Reply With Quote

Reply

Tags
fieldaverage, les, statistics, tke, uprime2mean


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
wallHeatFlux utility for an incompressible case Mr.Jingles OpenFOAM Post-Processing 67 April 6, 2023 03:25
dsmcFoam setup hherbol OpenFOAM Pre-Processing 1 November 19, 2021 01:52
The Umean of a flow around a cube calculated in Openfoam looks like instantaneous jiaodanuma OpenFOAM Verification & Validation 4 June 14, 2016 17:16
LiftDrag coefficient in LES fabian_korn OpenFOAM Post-Processing 1 September 22, 2008 02:34
Some Questions about LES. Bin Li Main CFD Forum 2 February 20, 2004 09:58


All times are GMT -4. The time now is 11:42.