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

plot of wall shear stress and turbulent properties (average of u'u', v'v', u'v' )

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By srv537
  • 1 Post By Bazinga

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2016, 15:07
Default plot of wall shear stress and turbulent properties (average of u'u', v'v', u'v' )
  #1
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
i am beginner in OpenFoam CFD simulation and learning from youtube tutorial, i learned case setup and simple post processing in Paraview.

i used k-e and kw model but i cant able to plot fluctuating (prime) quantities, in paraview there is only mean pressure and velocity are available.

how can i create some variable that is not default in solver, i want to plot
1. wall shear stress or skin friction coefficient, coefficient of pressure, drag and lift coefficient.
2. turbulent properties (average of u'u', v'v', u'v' )

please help me, i cant able to plot all these result.

Thank you
Saurav kumar
granzer likes this.
srv537 is offline   Reply With Quote

Old   December 28, 2016, 08:24
Default
  #2
New Member
 
DimitriF
Join Date: Dec 2016
Location: London
Posts: 19
Rep Power: 9
alekhine is on a distinguished road
Hey Foamers,

I have the same issue. A reply to this post would be really helpful.

Regards,
Dimitri
alekhine is offline   Reply With Quote

Old   December 29, 2016, 02:52
Default
  #3
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
When using RANS simualtions with k-epsilon or k-omega you are not calculating the Reynolds stresses - you are only modeling the fluctuations by the k-transport equation. Thus, you have no results for u'u' etc.
Pressure is calculated - in order to get the pressure coefficient you need to divide by the dynamic pressure of the flow. You can do that in Paraview, check some other threads here in the forum for that, or use the OpenFOAM tutorials.

Drag and lift coefficient can be automatically calculated during runtime by a functionObject in the controlDict file. Again, search the forum.

Hope that helps. If you have problems even after searching for the solutions let me know.
Bazinga is offline   Reply With Quote

Old   December 29, 2016, 03:18
Default
  #4
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
Hi Bazinga,

i can use wallShearStress to calculate stress and Skin Friction Coeff, it is working in simpleFoam but it is not working in icoFoam, what should i do?

i added energy equation in icoFoam and compared temperature and velocity profile at various section in streamwise direction with the fluent result both are exact same but the problem is i dont know to to calculate local Nusselt number at wall.
how can i calculate local Nusselt Number?

Thank you
Srv
srv537 is offline   Reply With Quote

Old   December 29, 2016, 03:23
Default
  #5
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
I have not yet calculated the Nusselt number but a simple google search gave me this report:

http://www.tfd.chalmers.se/~hani/kur...ssonReport.pdf

With regard to wallShearStress what is the error?
Bazinga is offline   Reply With Quote

Old   December 29, 2016, 04:02
Default
  #6
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
icoFoam -postProcess -func wallShearStress it gives me


Usage: icoFoam [OPTIONS]
options:
-case <dir> specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-parallel run in parallel
-roots <(dir1 .. dirN)>
slave root directories for distributed running
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-4.1 (see www.OpenFOAM.org)
Build: 4.1



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 1
Invalid option: -postProcess
Invalid option: -func


FOAM exiting
srv537 is offline   Reply With Quote

Old   December 29, 2016, 06:15
Default
  #7
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
You should start to first search for your problem in this board, then google and then ask your questions in your own threads.

One simple search, again, provided this link:

postProcess Utility: icoFoam -noFunctionObjects Why?How?

There you will find an answer to your problem.

Also, please do not create multiple threads/post with the same question. I found your thread (wallShearStress doesn't work in new solver (energy eq added in icoFoam)) while searching for your problem.
Bazinga is offline   Reply With Quote

Old   December 29, 2016, 06:21
Default
  #8
New Member
 
DimitriF
Join Date: Dec 2016
Location: London
Posts: 19
Rep Power: 9
alekhine is on a distinguished road
Hey Bazinga,

Thank you for your thorough explanation!

I have some results for the Reynolds stress from experiments and other numerical simulation and I thought I can get something out of OpenFOAM for comparison. You are right, the solved equations just give the variables you solve for. Maybe I can do some manual calculation with the outputted data to get the Reynolds stress.

Getting the coefficients works!

Cheers,
Dimitri
alekhine is offline   Reply With Quote

Old   December 29, 2016, 06:28
Default
  #9
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
Maybe you can validate the turbulent kinetic energy k. k = 0.5*(U'2+V'2+W'2) (check: https://en.wikipedia.org/wiki/Turbulence_kinetic_energy). If you know the RE-stresses from experiment, you can calculate k from the experiment and then validate with your simulation.
hecalderong likes this.
Bazinga is offline   Reply With Quote

Old   December 29, 2016, 07:27
Default
  #10
New Member
 
DimitriF
Join Date: Dec 2016
Location: London
Posts: 19
Rep Power: 9
alekhine is on a distinguished road
That would be an idea! I will try to do that for sure to have something for comparison.

I have an understanding problem though...if I use e.g. the Spalart Allmaras turbulence model, is there a way how I can get a value for my turbulent kinetic energy k? In my understanding, OpenFOAM does not compute k when the SA model is used.

Dimitri
alekhine is offline   Reply With Quote

Old   December 29, 2016, 07:43
Default
  #11
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
I would use the k-omega one, but if you need S.A. there is one way, but I don't think it is really accurate and never tried it.

IIRC S.A. calculates the eddy viscosity by means of a length scale, which is defined by the user, and k, which is modeled directly from this length scale in order to close the system of equations.

Look up the relation between those 3 values and I guess you get a k, but as said earlier,I never tried it.
Bazinga is offline   Reply With Quote

Old   December 29, 2016, 10:44
Default
  #12
New Member
 
DimitriF
Join Date: Dec 2016
Location: London
Posts: 19
Rep Power: 9
alekhine is on a distinguished road
That would be one way to get the kinetic energy. However, since Boussinesq approximation is used, you can calculate a posteriori the Reynolds stress from known, transported quantities. This calculation could be done manually.

However, I found two other ways how to get it directly from openFoam. The first way is to use the integrated post processing tools of OpenFOAM (http://cfd.direct/openfoam/user-guide/post-processing-cli/#x31-2270006.2).This gives the Reynolds stress tensor. The turbulent kinetic energy is proportional to the trace of the tensor.
The second way is to use a tool someone wrote (Utilities: post average turbulence fields and create turbulence fields for LES). I haven't tried it though.

This might also help you Saurav kumar.

Thank you for pointing me in the right direction Bazinga! :-)
alekhine is offline   Reply With Quote

Old   December 29, 2016, 11:10
Default
  #13
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
Quote:
Originally Posted by alekhine View Post
That would be one way to get the kinetic energy. However, since Boussinesq approximation is used, you can calculate a posteriori the Reynolds stress from known, transported quantities. This calculation could be done manually.

However, I found two other ways how to get it directly from openFoam. The first way is to use the integrated post processing tools of OpenFOAM (http://cfd.direct/openfoam/user-guide/post-processing-cli/#x31-2270006.2).This gives the Reynolds stress tensor. The turbulent kinetic energy is proportional to the trace of the tensor.
The second way is to use a tool someone wrote (Utilities: post average turbulence fields and create turbulence fields for LES). I haven't tried it though.

This might also help you Saurav kumar.

Thank you for pointing me in the right direction Bazinga! :-)
Ah, yes! Thanks for the update and good luck.
Bazinga 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
Divergence in AMG solver! marina FLUENT 20 August 1, 2020 11:30
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
plot of wall shear stress and turbulent properties (average of u'u', v'v', u'v' ) srv537 OpenFOAM Pre-Processing 0 November 20, 2016 15:05
Wall Shear Stress: Ansys Fluent chowdhury FLUENT 3 November 17, 2015 00:09
Turbulent shear stress and wall shear stress mejahan CFX 3 September 7, 2013 00:44


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