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

wallshearStress only gives min and max values of shear on the wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2024, 01:26
Default wallshearStress only gives min and max values of shear on the wall
  #1
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Hi everyone,

I have a channel and I would like to see how the shear stress is distributed in the width of the bed of channel. When I use the wallShearStress function, OpenFoam only gives the minimum and maximum values of shear stress on the bed of channel. How can I change this to get local shear stress on all the cells on the bed.

Thank you.
Mahdi_Kh is offline   Reply With Quote

Old   March 17, 2024, 04:16
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
As per documentation it should be written by default in OF11: https://github.com/OpenFOAM/OpenFOAM...lShearStress.H



However you can still try with this entry included.

Code:
writeFields     true;

For ESI-OpenFOAM this seems to be called

Code:
writeToFile     true;


https://www.openfoam.com/documentati...earStress.html


Have you checked there is really no file "wallShearStress" in your result time folder? Additionally you can calculate the field by using the foamPostProcess utility described here at the bottom: https://doc.cfd.direct/openfoam/user...processing-cli
AtoHM is offline   Reply With Quote

Old   March 17, 2024, 16:32
Default
  #3
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Thank you very much for your reply.

I am using the same function and syntax.

The output I am getting looks like this:

# Wall shear stress
# Time patch min max
16.100183686157614 FP_WALL (-2.6707024603e-04 -4.0433331042e-07 1.1097838880e-09) (-2.6535766862e-06 4.5353077257e-08 5.4673445276e-06)

the three values in parantheses seem to be the three components of shear stress on the specified wall patch, but it only gives me the maximum and minimum values on the wall. I need to know the local shear stress on each cells of the wall patch so that I know how it changes along a line in transverse direction.
Mahdi_Kh is offline   Reply With Quote

Old   March 17, 2024, 16:40
Default
  #4
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
But it looks people have been able to get results on nodes like here
determining wall shear stress at selected point

Maybe I should look at the syntaxes again.
Mahdi_Kh is offline   Reply With Quote

Old   March 17, 2024, 21:44
Default
  #5
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Ok I found it. it is actually calculated for all cells and included along with other variables in output folder.

Thanks again for your help.
Mahdi_Kh 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
Converging Diverging Nozzle with dbnsTurbFoam Saleh Abuhanieh OpenFOAM Running, Solving & CFD 4 December 13, 2019 10:26
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
Problem of simulating of small droplet with radius of 2mm liguifan OpenFOAM Running, Solving & CFD 5 June 3, 2014 02:53
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14


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