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

Distribution of root mean square of velocity fluctuation in channel

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 5 Post By vkrastev

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2016, 13:54
Default Distribution of root mean square of velocity fluctuation in channel
  #1
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10
dradenkovic is on a distinguished road
Hello.

I want to show root mean square of velocity fluctuation in cross section of a channel. I have been searching this forum a while in order to solve this problem but without success.

I know that I should obtain distribution similar to this




Any tip?

Regards,
Darko
dradenkovic is offline   Reply With Quote

Old   July 19, 2016, 03:56
Default
  #2
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Hi Darko,

in OpenFOAM you can calculate the rms of a velocity component (velocity along x, y or z axis) trhrough the Prime2Mean statistical function. You have to include a fieldAverage function in your controlDict, then run the simulation until the Mean and Prime2Mean quantities get sufficiently stable, then from the UPrime2Mean field you can extract the rms quantities like follows:

urms,x=sqrt(UPrime2Meanxx)

and the same for y and z. Here it is an example of fieldAverage function applied to the velocity field (this works for OpenFOAM-3.0.x, but should be ok for other versions too):

Code:
functions
{
fieldAverage
    {
        type            fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled         true;
        outputControl   outputTime;
        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }
}
Note that the Mean and Prime2Mean fields are time-based statistical quantities, so at the end of the run you may want to add a space average operation to your Prime2Mean fields (e. g. tangential average in a cylindrical domain).

Regards

V.
vkrastev is offline   Reply With Quote

Old   July 19, 2016, 05:17
Default
  #3
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10
dradenkovic is on a distinguished road
Thank you!

Regards,
Darko
dradenkovic is offline   Reply With Quote

Reply


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
Code for EARSM by Hellsten and RSM by Manceau, square duct, 2d turbulent channel Thomas Baumann OpenFOAM Running, Solving & CFD 14 October 16, 2020 04:11
Open channel flow boundary give different velocity values? mariam.sara Fluent Multiphase 1 April 9, 2015 10:11
Velocity distribution function sampling issue in DSMC flotus1 Main CFD Forum 6 December 13, 2014 06:18
Velocity fluctuation. In let. Main CFD Forum 1 October 21, 2003 14:37
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 07:13.