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

Computing wall shear stress with a momentum flux balance

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 5, 2010, 17:39
Default Computing wall shear stress with a momentum flux balance
  #1
New Member
 
Louis-E.
Join Date: Sep 2009
Location: Montreal
Posts: 2
Rep Power: 0
Pomme-Poire is on a distinguished road
Good day foamers!

I would like to compute the wall shear stress doing a momentum flux balance on individual cells touching a wall patch. I know there is the utility called "wallShearStress" but I want to make sure that both methods gives about the same values.

My idea was to loop over cells individual faces the momentum fluxes and add them up and eventually substract the pressure gradient. Here's what I tried to begin with:

Code:
surfaceVectorField momentumFlux = fvc::interpolate(U)*(fvc::interpolate(U) & mesh.Sf()); //fluxes at cell faces
const surfaceVectorField::GeometricBoundaryField& patchMomentumFlux = momentumFlux.boundaryField();
    
    forAll(patchMomentumFlux, patchi)
    {
         if (isType<wallFvPatch>(patchMomentumFlux[patchi]))
        {
        const labelList& faceCells =  mesh.boundary()[patchi].faceCells(); //getting near wall cells
        forAll(faceCells,celli) //looping over near wall cells
        {
            vector sumMomentumFluxCellI = vector::zero;
            forAll(mesh.Sf(),cellfacei)
            {
                  sumMomentumFluxCellI+=patchMomentumFlux[patchi].internalField()[celli][cellfacei]; //this doesnt work
            }
        }
}
Someone has any better ideas?

L-E.
Pomme-Poire is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 34 October 16, 2014 05:27
relationship between wall shear stress and TKE winter FLUENT 0 December 11, 2007 18:11
WALL SHEAR STRESS Andy CD-adapco 0 June 20, 2007 16:37
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12
determination of wall shear stress Ashraf FLUENT 5 September 30, 2004 14:29


All times are GMT -4. The time now is 16:49.