|
[Sponsors] |
April 3, 2015, 20:02 |
compute shear strees
|
#41 |
New Member
jafar
Join Date: Jul 2014
Posts: 16
Rep Power: 12 |
Dear all
I am beginner in openfoam, i am working on creeping flow around cylinder between two plate, how can i compute shear stress, tau, (and compare with yield stress tau0) ? which and where should i add line code? i want to display the points where tau>tau0 ,how can i display that? Best regards Jafar |
|
June 17, 2015, 07:42 |
compute shear stress in interfoam
|
#42 |
New Member
arash
Join Date: Jan 2015
Posts: 14
Rep Power: 11 |
Hi fomers..:
I have completed a case with interfoam and I am interested in adding shear stress to my output files. I checked the last posts but i didn't figure out where to add this equation in my solver. volScalarField shearRate = mag(fvc::grad(U)); I would be really thanks full if any one help! |
|
June 17, 2015, 08:39 |
|
#43 |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 70
Rep Power: 17 |
Hi bagherij and arash.heidarian,
I would recommend to you to perform this calculations with the ParaView calculator, as it is easier for the start. If you still want to compute the shear stress on-the-fly within OpenFOAM, I'd suggest you to look at the coded function object, which you can include in your controlDict, see: http://www.openfoam.org/version2.0.0...me-control.php Best regards, David |
|
April 15, 2016, 04:41 |
|
#44 |
New Member
Stefan
Join Date: Oct 2015
Posts: 24
Rep Power: 11 |
Hi guys,
i just created a similar thread according the topic: calculation of wall shear stresses in multiphase depending on mesh size? http://www.cfd-online.com/Forums/ope...tml#post595106 Maybe it is also interesting for you and you can help me to solve the problems Thank you in advance Stefan |
|
April 19, 2016, 05:19 |
calcFvcGrad - U - shear stress profile
|
#45 |
Senior Member
|
Hi,
I am trying to get the shear stress profile in a cross section using stress = mu * (du/dr). Solver used is simpleFoam. I used the readymade tool " calcFvcGrad " on the U field which gave me 8 velocity gradients!!! But the shear stress reproduced using one of the U fields matches at the wall with the value given by "wallShearStress" tool. My doubt is what are the 8 gradients referring to. Also please let me know if the method i followed to obtain shear stress is flawed in any manner. I have attached the file generated by calcFvcGrad (I have added shear stress calculation in the same file) My geometry is a concentric annulus as show below in which i need the shear stress profile in a cross section. Thanks a lot Regards AK |
|
January 24, 2017, 03:29 |
|
#46 | |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Quote:
Excuse me, what's the meaning of "gradU.T()" in mathematics? is it inner product of gradU and T tensor? could you plz introduce me a source to give me a list of definition of these type of programing? |
||
January 24, 2017, 04:08 |
|
#47 | |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 70
Rep Power: 17 |
Quote:
|
||
January 24, 2017, 04:12 |
|
#48 | |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Quote:
But there was not operation on tensors. e.g. inner product, outer ,... Regards |
||
February 13, 2017, 03:04 |
|
#49 |
Member
Emery
Join Date: Feb 2017
Location: France.
Posts: 33
Rep Power: 9 |
Hi experts,
I am working with simpleFoam, with which I simulated the flow of an Hershel-Bulkley fluid. Now I wan to compute the shear strain rate. On this forum you suggested to do that this way: volTensorField gradU = fvc::grad(U); // stress tensor volTensorField tau = - mu * (gradU + gradU.T()); I'am a new foamer, so my question might seem stupid to you, but I really have to ask. Those preceeding equations, should I put them in my simpleFoam.C file? Or in my createField.H file? Because when I put them into my createField.H file like in the attachment, I got an error saying : 'grad' was not declared in the scope of volTensorField gradU (tau). The second question is should I initialize those tensor fields? With a command like: dimensionedTensor("tau",dimensionset(...), tensor(...)) I hope you will find a couple of minutes to answer me. Thanks in advance. Best regards. |
|
February 14, 2017, 09:05 |
|
#50 |
Member
Join Date: Jun 2016
Posts: 31
Rep Power: 10 |
Hi,
I can't help you with your question unfortunately, because I face a similar problem. I want to get the shear rate and possibly the shear rate dependent viscosity for non-Newtonian fluids, but I don't know where to put the lines of code you referred to. A little bit of help would be great. Edit: Alright, I just found out that ParaView displays the viscosity nu, but Hyperview won't do it just as easily. Does anybody know how to get OpenFOAM to output the needed values? |
|
March 3, 2017, 04:45 |
|
#51 |
Member
Emery
Join Date: Feb 2017
Location: France.
Posts: 33
Rep Power: 9 |
Hi "tdof",
Nonetheless thank you for you answer . Have a good week. |
|
March 13, 2017, 14:26 |
|
#52 |
New Member
Join Date: Oct 2016
Posts: 22
Rep Power: 10 |
Hello,
I also have a question regarding wall shear stress for which I haven't found the answer yet. I am simulation airfoils and need the wall shear stress to identify the regions of detached flow. I use the postProcessing Utility to compute the wall shear stress, however I am not quite sure in which coordinate system OpenFOAM gives me the values. Is it the local one from my blockMesh or is it the global one? My flow direction is the x-Direction, y-Direction is upwards and z-Direction is empty since this is a 2D case. When I compute the wall shear stress OpenFoam gives me values for 0 and 1 direction. So far it makes for both the local and global coordinate system. However the 0 value is almost always negative, which doesn't make sense for the global coordinate system. ( Flow on the airfoils surface would be against the flow direction) Therefor I think wall shear stress is in the local coordinate system. can somebody confirm this please? thanks! |
|
March 14, 2017, 03:52 |
|
#53 |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 70
Rep Power: 17 |
I don't have the answer, just in case you have no starting point:
Try to understand this line Code:
ssp = (-Sfp/magSfp) & Reffp; using the OF Programmer's Guide. |
|
April 29, 2017, 19:40 |
|
#54 |
Member
Amir
Join Date: Jan 2017
Posts: 32
Rep Power: 9 |
Hello,
I used interFoam to solve a two-phase flow, and I want to use the wallShearStress utility, but it works only for single-phase flow. Could anybody help me how I can change the wallShearStress to be applicable for two-phase flow? Regards, Amir |
|
July 19, 2018, 12:28 |
|
#55 | |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Quote:
|
||
October 12, 2018, 00:02 |
hei
|
#56 | |
New Member
Li Yuanyuan
Join Date: Oct 2018
Posts: 2
Rep Power: 0 |
Quote:
thank you! |
||
December 19, 2018, 13:14 |
|
#57 |
Member
Amir
Join Date: Jan 2017
Posts: 32
Rep Power: 9 |
You are right.
Code:
wallShear = (-mesh.Sf().boundaryField()[patchID]/(mag(mesh.Sf().boundaryField()[patchID])) ) & (turbulence->devReff()().boundaryField()[patchID]) Kind regards, Amir |
|
November 5, 2019, 10:56 |
|
#58 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
|
||
June 20, 2022, 05:15 |
|
#59 |
New Member
Lila
Join Date: Nov 2019
Posts: 7
Rep Power: 7 |
Hello,
I know that is an old post but i'm facing the same problem. Can anayone tell me when I can implement the wall shear stress equation in openfoam (.C or .H?) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Interfoam Droplet under shear test case | adona058 | OpenFOAM Running, Solving & CFD | 3 | May 3, 2010 19:46 |
shear stress | a.abbaspour | FLUENT | 3 | March 23, 2010 10:50 |
Shear Stress | Thomas | FLUENT | 0 | January 13, 2008 16:10 |
About shear stress, need help!! | Dong Wenchao | FLUENT | 1 | August 23, 2006 08:38 |
Shear Stress | RK | CFX | 0 | January 24, 2005 08:11 |