|
[Sponsors] |
Average of Uprime2Mean(Reynolds stresses) in time and Uprime3mean definition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 3, 2022, 11:19 |
Average of Uprime2Mean(Reynolds stresses) in time and Uprime3mean definition
|
#1 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Hello all
I want to average prime2Mean in time. There must be two options; 1- Adding new volScalarfield named RXX,RYY,RZZ,.... an then average in time(This should work fine) 2- Since we have generated Uprime2Mean already in U section, we may average it as a new parameter again without adding RXX,RYY,RZZ,.... . Also I want to define Uprime3mean which is the third moment of velocity. I believe it must be defined in "libfieldFunctionObjects.so", but I can find the file to define this new parameter. Do you have any suggestion for my questions? Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application pimpleFoam; startFrom latestTime; startTime 0; stopAt endTime; endTime 20; deltaT 0.2; writeControl timeStep; writeInterval 10; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; functions { fieldAverage1 { type fieldAverage; libs ("libfieldFunctionObjects.so"); writeControl writeTime; fields ( U { mean on; prime2Mean on; base time; } ); } } // ************************************************************************* // |
|
August 3, 2022, 11:30 |
hi
|
#2 |
New Member
sina
Join Date: Jul 2013
Posts: 21
Rep Power: 13 |
Hi,
uprime2Mean is already averaged in time. why do you want to average again? |
|
August 3, 2022, 14:05 |
|
#3 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
||
August 3, 2022, 19:40 |
|
#4 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Do you mean a rank 3 tensor? I saw something about that a long time ago (at least in the programming guide they are mentioned) in the code, but it was not implemented or I never knew how to use it.
|
|
August 3, 2022, 23:19 |
|
#5 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
||
August 4, 2022, 00:10 |
|
#6 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
||
August 5, 2022, 14:53 |
|
#7 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
The Reynolds stress tendor is defined in the turbulence model library. If you are using a eddy viscosity model R is not callable unless you use the turbulenceFields functioObject. If you are using a Reynolds stress model you would have no problems.
The problem you might have when computing the UPrime3Mean is that there are no rank three volFields. You should somehow load U and UMean and define your third momentum tensor instantaneously, but you should create three tensor fields and average them in time. Check the fieldAverage function to help you with that. |
|
Tags |
openfoam, time-averaged, uprime2mean, uprime3mean |
|
|