|
[Sponsors] |
To calculate wall shear stress in of210 for les simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 11, 2012, 04:16 |
|
#21 |
Member
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 17 |
Hi Nati,
yes, there are 3 components, in x, y and z direction. If you want to separate them, you can use foamCalc: foamCalc components wallShearStress this gives you: wallShearStressx, wallShearStressy and wallShearStressz. For the lift and drag forces I can't help you much. Try to modify one of the post processing utilities to fit your case. It might help if you take a look into the folder /applications/test. You can find a lot of examples there. Regards, Dejan |
|
December 11, 2012, 04:52 |
|
#22 | |
New Member
Join Date: Nov 2011
Posts: 11
Rep Power: 15 |
Hi Morard,
thank you for your help. Excuse me, Do you know, how to calculate turbulent dissipation energy in each point? Regards, Nati Quote:
|
||
December 12, 2012, 19:58 |
|
#23 |
New Member
Qiang Zhou
Join Date: May 2010
Location: Eindhoven University of Technology
Posts: 28
Rep Power: 16 |
What`s the difference between devReff and devBeff? In my case, the wallShearStressLES which include devReff can also be complied. Thank you.
|
|
December 12, 2012, 20:05 |
|
#24 |
New Member
Qiang Zhou
Join Date: May 2010
Location: Eindhoven University of Technology
Posts: 28
Rep Power: 16 |
Hi Wikstrom. What is the difference between the Reff and friction forces on a surface by a turbulence model, such as simulating a flow past over a circular cylinder by LES? Thank you.
|
|
December 13, 2012, 07:37 |
|
#25 |
Member
Niklas Wikstrom
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Look at the wallShearStress.C (applications/utilities/postProcessing/wall/wallShearStress), e.g. in the the calcIncompressible() function.
Reff is a tensor, whereas the wall shear stress is the vector produced by the scalar product of 'wall face unit normal' and the Reff tensor. To get the friction force, then, you would need to surface integrate the wall shear stress. |
|
December 18, 2012, 02:28 |
|
#26 | |
New Member
Qiang Zhou
Join Date: May 2010
Location: Eindhoven University of Technology
Posts: 28
Rep Power: 16 |
Quote:
In addition, Reff is a tensor for RAS model and how to calculate the tensor in LES model? |
||
December 18, 2012, 04:15 |
|
#27 | |
Member
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 14 |
Quote:
I think that for incompressible flow, the wallShearStress just give us the tau_w/rho, i.e nu*grad(U) , not mu*grad(U). Am i right? regards, Sunxing |
||
June 24, 2013, 11:43 |
it error for "essential value entry not provided" and my boundary is symmtryPlane
|
#28 | |
New Member
Du An
Join Date: Jun 2013
Posts: 2
Rep Power: 0 |
Hi, friends! When I run 'wallShearStressLES', it exit:
--> FOAM FATAL IO ERROR: essential value entry not provided file: /home/cylinder/3.800000e+02/phi::boundaryField::sides1_half0 from line 425805 to line 425805. From function fvsPatchField<Type>::fvsPatchField ( const fvPatch& p, const DimensionedField<Type, surfaceMesh>& iF, const dictionary& dict ) in file lnInclude/fvsPatchField.C at line 110. FOAM exiting my boundary is symmtryPlane. Do I need to change the symmetryPlane to patch? best wishes, Linda Quote:
|
||
December 27, 2013, 21:21 |
Code
|
#29 |
New Member
Oscar Ochoa
Join Date: Nov 2013
Posts: 4
Rep Power: 13 |
Hello everyone:
Despite the fact that this is an old thread, I attach the code that I modified following the instructions posted here. I verified the results with one case of incompressible fluid in a pipe with dynamicSmagorinsky LES turbulence model. This is for OF2.1.1. I hope this will be helpful for someone. Regards |
|
December 28, 2013, 13:44 |
|
#30 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Oscar,
Many thanks for sharing! Can I convince you to add this to openfoamwiki.net? You can follow the instructions at this page: http://openfoamwiki.net/index.php/Extend-bazaar Or follow the examples on this page: http://openfoamwiki.net/index.php/Main_ContribUtilities Best regards, Bruno
__________________
|
|
January 10, 2014, 17:27 |
|
#31 |
New Member
Oscar Ochoa
Join Date: Nov 2013
Posts: 4
Rep Power: 13 |
Hello Bruno
Sorry for the late response. I looked the two links you sent, and I'm convinced to upload the code of the wallShearStressLES, however, I'm gonna make more tests to the code to be completly sure that it works in the right way. Thanks for the information about the foam-extend and OpenFOAM community. Regards |
|
May 11, 2014, 13:28 |
|
#32 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I tried building this on OF 2.3 but it gives me this error:
/opt/openfoam230/src/turbulenceModels/compressible/LES/LESModel/LESModel.H:150:34: note: no known conversion for argument 4 from ‘Foam::basicThermo’ to ‘const Foam::fluidThermo&’ make: *** [Make/linux64GccDPOpt/wallShearStressLES.o] Errore 1 How can i solve it? |
|
May 15, 2014, 09:14 |
|
#33 |
New Member
Hans Barósz
Join Date: May 2014
Posts: 22
Rep Power: 12 |
Same problem here. Please let me know when you solved it.
|
|
June 2, 2014, 13:26 |
|
#34 | |
New Member
Join Date: Feb 2013
Posts: 21
Rep Power: 13 |
Quote:
|
||
June 22, 2014, 14:58 |
|
#35 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I've done a quick adaptation of the source code by Oscar Ochoa to OpenFOAM 2.2.x and 2.3.x. It's currently provided here: https://github.com/wyldckat/wallShearStressLES Download and installation instructions are given on that page. Best regards, Bruno
__________________
|
|
October 13, 2014, 22:46 |
|
#36 | |
Senior Member
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 14 |
Quote:
I have a question about the difference between wallShearStress calculated by the code and by the wallGradU. As in the definition, skin-friction coefficient is Cf = tau_wall/(0.5*rho*U^2), and tau_wall = rho*nu*GradU, while in wallShearStress, the wallShearStress is calculated by n_wallnormal &Beff, this doesn't contain rho, right? I compared the wallShearStress calculated by the 2 ways, however, I get quite different values. Here, calculated by wallShearStressLES and wallGradU are both contained in the .tar result.tar.gz The value is of almost 100 times deviation! (The fluid is gas, with rho =1.25kg/m^3 and nu = 1.45e-5 m^2/s) What's wrong with it? Best regards Xianbei |
||
October 18, 2014, 16:26 |
|
#37 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Xianbei,
If you had looked a bit more about this, specially look for posts where I mentioned "wallShearStress"... with Google, I can find with this: Code:
site:www.cfd-online.com/Forums "wyldckat" "wallShearStress" Best regards, Bruno
__________________
|
|
October 18, 2014, 22:45 |
|
#38 | |
Senior Member
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 14 |
Quote:
Thank you for your reply. From the link, I get to know the two ways to calculate tau, I use the second formula as you quoted, also, if I multiply wallShearStress with rho, they are still not the same I'll check it again. Xianbei |
||
October 19, 2014, 05:31 |
|
#39 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Xianbei,
I think that something very wrong is going on in your simulation. My guess is that the y+ values are way above 300, which results in a bad calculation by wallShearStress and/or wallGradU. If you can provide more details about your case, it will make it considerably easier to help diagnose the problem. The main details that come t mind as being important:
Best regards, Bruno
__________________
|
|
October 19, 2014, 07:51 |
|
#40 | |
Senior Member
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 14 |
Quote:
My case is a 90 bend duct with an aspect ratio of 6. Smagorinsky model is used with mean y+ <4, it's incompressible. The inlet condition is obtain by interpolate the experimental velocity, and then mapped to the grid points. The mesh's max aspect ratio is <700, which is OK when doing the checkMesh Here is the comparison of the two results at inletcompare.ods.tar.gz The first 7 rows of data are obtained using sample line, the 1st is distance, and following are the wallGradU vector and wallShearStress vector, each has 3 components. The x direction is the studied direction Xianbei |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Measuring wall shear stress in bend pipe | liguifan | OpenFOAM | 70 | December 9, 2015 04:49 |
What is wall shear stress and shear strain rate? | warlocklw | Main CFD Forum | 2 | May 21, 2012 07:16 |
wall shear stress | lingo | FLUENT | 2 | June 2, 2003 04:40 |
Specifying shear stress on wall in 5.5.1 | michael rasmussen | CFX | 1 | May 19, 2003 10:49 |
plotting wall shear stress | Ellen | FLUENT | 1 | April 5, 2002 23:50 |