![]() |
Calculating fluctuation flux (Reynolds flux) of scalar in LES?
Hi FOAMer! I am using LES to simulate the scalar mixing in wall-bounded turbulent flow. The LES could calculate the transient velocity field U and scalar field s. With the fieldAverage function, the time-averaged value UMean and sMean could also be obtained.
Now I want to output the time-avearged flux and fluctuation flux of scalar, namely the <Us> and <U's'>, which requires to calculate the expression U*s and (U-UMean)*(s-sMean) and pass the result to fieldAverage function. After searching through the forum, maybe the easiest way is to impose coded functionObject in controlDict file. I adapt the code in thread HTML Code:
https://www.cfd-online.com/Forums/openfoam-post-processing/219817-fluctuating-component-scalar-quantity.html Quote:
Does anyone know the way to handle this, or any other workaround? |
For quick reference, I post the adapted code below, in which the flux1 represents the product of U and s.
Code:
fluctuation_flux1 Code:
fieldAverage1 |
All times are GMT -4. The time now is 12:17. |