|
[Sponsors] |
Computing wall shear stress with a momentum flux balance |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 5, 2010, 18:39 |
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 |
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 } } } L-E. |
|
|
|
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 |