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

wallShearStress function in multiphase laminar compressible

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2020, 17:07
Question wallShearStress function in multiphase laminar compressible
  #1
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Hello,

I am running a simulation using compressibleInterFoam for laminar flow and I would like to calculate the wall-shear stress on the wall patches in my case.

I have successfully managed to implement the wallShearStress function, however after looking through the forum I feel confused whether the results I am getting are correct. A few of my doubts are below:
1) Some previous posts seem to claim that the wallShearStress function cannot be used for multiphase solvers like interFoam as it yields incorrect results

2) the components of wall shear stress to use. In my case the wall boundaries are aligned with the coordinate axis so I take the WSS component parallel to this boundary. Is this correct?

3) My results seem to be underestimating the wall shear stress on the wall patches, but I have checked the units of wall shear stress and these are kg/(ms^2) which is equivalent to Pascal, so I do not think it is a matter of multiplying by density. Despite the dimensions for WSS are in Pa, after looking through the forum I am thinking that perhaps this utility does not work for multiphase solvers?
Is there any other way I can calculate the wall shear stress in my simulations?

Any comments or suggestions would be greatly appreciated. I have already looked through existing threads but I wasn't able to find someone using a compressible multiphase solver like myself.

p.s. I am using OpenFOAM 5

Please help
JM27 is offline   Reply With Quote

Old   April 14, 2020, 08:19
Question
  #2
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Hello again,

I'm really struggling to find answers to these questions online, so if someone can share some knowledge it would be greatly appreciated
JM27 is offline   Reply With Quote

Old   April 14, 2020, 17:58
Default
  #3
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
1) `wallShearStress` function object does not know whether the solver is multiphase or not. It nominally works with multiphase flows, though there might be a bug in the worst case.

2) yes.

3) Though I am not sure `wallShearStress` can work for `laminar` flows wherein there is no Reynolds stress tensor, which is required in wall shear stress computation, and in `wallShearStress` function object implementation. `wallShearStress` only computes the inner product between `R` and `n`, Reynolds stress tensor and wall normal vector. The shear-stress symmetric tensor field is retrieved from the turbulence model, which seems not to be available in your case.
HPE is offline   Reply With Quote

Old   April 15, 2020, 06:41
Default
  #4
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Hi HPE,

Thanks for your replies.

1) I was hoping someone who previously used this function would confirm whether there is a bug or otherwise, hence my post in this forum.

2) Great!

3) With regards to number 3 and the turbulence model. In the log file I have:

Code:
Reading g

Reading hRef
Caculating field g.h

Selecting turbulence model type laminar
Selecting laminar stress model Stokes
so it looks, at least, like the solver is looking up a dummy model for laminar flow to compute the shear-stress symmetric tensor you mentioned.
JM27 is offline   Reply With Quote

Old   May 28, 2020, 16:31
Question
  #5
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Hello again,

Unfortunately I am still having trouble in comparing my WSS results. After looking extensively through this forum I have some doubts with regards to the usage of the wallShearStress function (many posts claim this in fact computes wall traction rather than shear stress at the wall e.g. here Measuring wall shear stress in bend pipe).

Furthermore, the wallShearStress function only computes the vector directly on the boundary, whereas I would like to compare this 'shear stress' value at various distances from the wall. So, essentially, I would compute the shear stress for the internalField also not just on boundaries.

I've read about the possibility of using grad(U) to do this, but:
1) I am still unclear as to how I would compute the actual shear stress from grad(U)

2) I'm not sure how to interpret the tensor (9 components) that this prints in each time directory of the solver
Can someone please share their experience on how to do this?
JM27 is offline   Reply With Quote

Old   May 31, 2020, 16:33
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
>> So, essentially, I would compute the shear stress for the internalField also not just on boundaries

The Foundation OpenFOAM has shearStress function object. Might help?
HPE is offline   Reply With Quote

Old   June 1, 2020, 06:52
Default
  #7
Member
 
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8
JM27 is on a distinguished road
Hi HPE,

Thanks for the tip. The shearStress functionObject looks appropriate, however, it seems its only available in the development version of OpenFOAM? https://cpp.openfoam.org/dev/dir_bae...61920a91f.html

I only have accesss to v5 and v6 and sadly that does not seem to be available for those versions. https://cpp.openfoam.org/v5/dir_bae0...61920a91f.html

~~

Since my last post I've made a bit of progress on using grad(U) and understanding the tensor components, so I'm thinking if I compute the shear stress as:

Quote:
tau = - mu * grad(U).yx();
[no need to multiply by rho since solver is compressible]

should give me the shear stress ?

where grad(U).yx() is equivalent dU_x/dy to match the theoretical definition of the wall shear stress in textbooks.

~

I've also come across this definition on the forum:

Quote:
volTensorField stressTensor = - mu * (fvc::grad(U) + (fvc::grad(U)).T());
but it's not yet clear to me why the transpose of grad(U) needs to be added to grad(U) as well?

~~

Not sure whether you can help on this front but it looks like my computation will need to be a bit more fundamental since I don't have access to the shearStress functionObject. It's also good to make sure I understand what the computation does exactly
JM27 is offline   Reply With Quote

Reply

Tags
compressible, laminar, multiphase, wallshearstress


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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


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