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

fieldAveraged wallShearStress

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2019, 02:18
Default fieldAveraged wallShearStress
  #1
New Member
 
machao
Join Date: Mar 2018
Posts: 3
Rep Power: 8
machao is on a distinguished road
Dear Foamers

I'm doing the simulation of the flow over a circular cylinder.I want to get the mean-flow skin-friction coefficient.I try to use the fieldAverage function.This function can help me get Umean and Pmean.However it doesn't work to get wallShearStressmean.The file isn't created in time folders.How can I get wallShearStressmean on run-time?My OF version is 5.0.

I'm appreciate for anyone who can help me.
machao is offline   Reply With Quote

Old   February 28, 2019, 04:38
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

It works if you first define the wallShearStress functionObject in the controlDict and than the average. Just make sure you execute wallShearStress every iteration/timestep:

Code:
    wallShearStress
    {
        type            wallShearStress;
        libs            ("libfieldFunctionObjects.so");

        executeControl  timeStep;
        writeControl    writeTime;
    }    
    fieldAverage
    {
        type                fieldAverage;
        writeControl        writeTime;
        timeStart           2500;
        fields
        (
            U
            {
                mean        on;
                prime2Mean  off;
                base        time;
            }
            wallShearStress
            {   
                mean        on;
                prime2Mean  off;
                base        time;
            }
        );
        functionObjectLibs  ("libfieldFunctionObjects.so");
    }
Cheers,
Tom
Eldrael, Ake and calf.Z like this.
tomf 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
wallGradU or wallShearStress on Time-Averaged Velocity Field minger OpenFOAM Post-Processing 6 November 7, 2019 05:30
Error computing wallShearStress with simpleFoam sita OpenFOAM Post-Processing 6 November 4, 2018 15:02
wallShearStress vs. force functionObject pad OpenFOAM Post-Processing 2 March 8, 2016 11:24
why does 'sample' do this? wallShearStress question CHARLES OpenFOAM Post-Processing 0 August 7, 2013 19:30
wallShearStress VS wallGradU bigrock OpenFOAM Post-Processing 0 July 2, 2013 05:54


All times are GMT -4. The time now is 14:04.