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

Wallshear stress sngrad() implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2017, 13:27
Default Wallshear stress sngrad() implementation
  #1
New Member
 
Mathia
Join Date: Dec 2017
Posts: 7
Rep Power: 8
Mathia1510 is on a distinguished road
Hello, I am fairly new in the world of OpenFoam and CFD. I am trying to calculate wallshear stress on a cylinder surface (laminar flow) and this thread: Compute shear stress interFoam told me to use the formula: "wallShear = nu * rho * mesh.boundaryField()[patchID].snGrad()", since now I am only using the standard openFoam utility wallshear stress and it does not give adequate results.

So my question is how do you implement/run "mesh.boundaryField()[patchID].snGrad()" ?? Is this something you have to add in the wallshearstress source code? I am a bit confused if you are supposed to add it in a code or run it somehow. Not really programmed in C before, only matlab.

Help is much appreciated!
Mathia1510 is offline   Reply With Quote

Old   December 9, 2017, 01:11
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
An easy and understandable way is using the result in velocity and pressure radial of the cylinder. You may use the sample tool and put in the sampleDict all the radial lines you need.

From this output it is easy to calculate the wall shear stress.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   December 9, 2017, 13:43
Default
  #3
New Member
 
Mathia
Join Date: Dec 2017
Posts: 7
Rep Power: 8
Mathia1510 is on a distinguished road
Thank you for your reply! I am not really sure how this is supposed to be done? As wall shear stress involves the derivative, and my cylinder has 300 points which means I have to make 300 lines in my sample dict, which seems quite tedious. My end goal is to get the tangential wall shear stress
Mathia1510 is offline   Reply With Quote

Old   December 9, 2017, 14:20
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
> make 300 lines in my sample dict, which seems quite tedious

Would be not a problem for me. I would write a small script which generates them.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 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
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" Jeremie84 ANSYS Meshing & Geometry 70 October 25, 2017 16:03
Implementation into the reynolds stress equation aki_yafuji OpenFOAM 0 April 15, 2011 22:51
Wallshear stress simplefoam rengu OpenFOAM Running, Solving & CFD 0 December 14, 2007 05:21
shear stress scalar definitions? Novak Elliott CFX 0 April 6, 2003 01:45
Implementation of Stress and Gentra Javier Larrondo Phoenics 5 March 2, 2001 12:34


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