CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

wallGradU or wallShearStress on Time-Averaged Velocity Field

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By minger
  • 3 Post By lfpaulinyi
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2013, 22:55
Default [CLOSED] wallGradU or wallShearStress on Time-Averaged Velocity Field
  #1
Member
 
Join Date: Apr 2009
Posts: 36
Rep Power: 17
minger is on a distinguished road
As the topic says I have a highly unsteady solution which I'd like to find the "time-averaged" wall shear stress for.

Ideally I would simply add wall shear stress to the runtime averaging, ala:
Code:
    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        enabled         true;
        outputControl   outputTime;

        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        wallShearStress
        {
        mean        on;
        prime2Mean  on;
        base        time;
        }
        );
    }
But that doesn't seem to be helping. Is there any trick for this that doesn't involve writing a data file every time step and averaging by hand/script?

edit: Wow I feel dumb. ParaView filter Temporal Statistics can achieve this. . .Run wallShearStress and then just average it. This does however require that I basically output many time steps and average. It would be nice to be able to treat wallShearStress like a velocity or pressure and allow the code to average and just end with one single result.

Last edited by minger; August 23, 2013 at 19:52. Reason: fixed
minger is offline   Reply With Quote

Old   August 23, 2013, 10:04
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 36
Rep Power: 17
minger is on a distinguished road
I have gotten close to fixing this. I have gotten nearly there directly in paraFoam by the following approach

- Extract Surfaces
- Computer Normals on Surfaces
- Create a dummy magnitude for the time-averaged velocity, UMean
- Computed the gradient of the new time-avg velocity magnitude
- Create a calculator for the dot product of the surface normals and the gradient
wallNormGrad = Normals.gradUMean

Now, if I zoom way way in near the wall, it seems as though this process is working. That is, I can see contours near the wall, however the values do not seem to exist "On" the wall.

My main issue is that I'd like to exact the wall data on the surface for further post processing and comparison which I've currently been unable to do. If anyone can provide some guidance I would appreciate it; thanks.
Chanikya_Valeti likes this.
minger is offline   Reply With Quote

Old   September 12, 2013, 04:34
Default Time Average
  #3
New Member
 
Luis Felipe Paulinyi
Join Date: Feb 2013
Location: Southampton, UK
Posts: 4
Rep Power: 13
lfpaulinyi is on a distinguished road
I believe I have figured out an easier way to do it.

If you are doing a field averaging of the vector U, just get the last time step and rename the file UMean as U and run wallShearStress or wallGradU utility. OpenFOAM will calculate the shear stresses based on your averaged velocity field, thus giving you an averaged wall shear stress
lfpaulinyi is offline   Reply With Quote

Old   September 12, 2013, 12:29
Default
  #4
Member
 
Join Date: Apr 2009
Posts: 36
Rep Power: 17
minger is on a distinguished road
lfpaulinyi,

That seems to simple and elegant I feel ashamed for not having thought of it. I will try when I get home, but see no reason that it shouldn't work. Thanks a ton!
minger is offline   Reply With Quote

Old   September 12, 2013, 15:49
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good evening,

I the case of a highly unsteady case as the present, then you will need to consider the non-linear coupling between the near-wall eddy viscosity and the near wall velocity gradient. Performing an averaging of each of them and computing the shear stress based on these is not (necessarily) the same as computing the average of the shear stress.

Kind regards

Niels
Chanikya_Valeti likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   September 13, 2013, 17:47
Default
  #6
Member
 
Join Date: Apr 2009
Posts: 36
Rep Power: 17
minger is on a distinguished road
Niels,

I completely agree. My main purpose here is determining the time-average separation point (the actualy value of the shear stress not improtant) -- for which I believe just looking at wall gradient (wallGradU) would be sufficient.

Agree?
minger is offline   Reply With Quote

Old   November 7, 2019, 05:30
Smile
  #7
Member
 
Pedro Ramos
Join Date: Mar 2012
Location: Belgium
Posts: 81
Rep Power: 14
pedroxramos is on a distinguished road
Quote:
Originally Posted by lfpaulinyi View Post
I believe I have figured out an easier way to do it.

If you are doing a field averaging of the vector U, just get the last time step and rename the file UMean as U and run wallShearStress or wallGradU utility. OpenFOAM will calculate the shear stresses based on your averaged velocity field, thus giving you an averaged wall shear stress

daaaaaamn... this is extremely clever! thanks!
pedroxramos 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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 06:23.