|
[Sponsors] |
wallShearStress function in multiphase laminar compressible |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 9, 2020, 17:07 |
wallShearStress function in multiphase laminar compressible
|
#1 |
Member
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8 |
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 resultsIs 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 |
|
April 14, 2020, 08:19 |
|
#2 |
Member
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8 |
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 |
|
April 14, 2020, 17:58 |
|
#3 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
April 15, 2020, 06:41 |
|
#4 |
Member
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8 |
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 |
|
May 28, 2020, 16:31 |
|
#5 |
Member
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8 |
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)Can someone please share their experience on how to do this? |
|
May 31, 2020, 16:33 |
|
#6 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
>> 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?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
June 1, 2020, 06:52 |
|
#7 | ||
Member
Join Date: Apr 2018
Location: UK
Posts: 78
Rep Power: 8 |
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:
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:
~~ 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 |
|||
Tags |
compressible, laminar, multiphase, wallshearstress |
|
|
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 |