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

Computing wall shear stress with a momentum flux balance

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2010, 18: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


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
relationship between wall shear stress and TKE winter FLUENT 0 December 11, 2007 18:11
WALL SHEAR STRESS Andy Siemens 0 June 20, 2007 17:37
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12
determination of wall shear stress Ashraf FLUENT 5 September 30, 2004 15:29


All times are GMT -4. The time now is 20:03.