|
[Sponsors] |
August 26, 2012, 06:51 |
|
#41 |
New Member
Tian Coulsting
Join Date: Jun 2012
Posts: 19
Rep Power: 14 |
Ah OK, I will bear that in mind for future. Since it is working I'll leave it be for the moment!
Cheers, Tian |
|
March 15, 2013, 07:21 |
|
#42 | |
Senior Member
|
Quote:
Thank you for your code. Now I wonder how can I define tau boundary condition in 0 directory. Can you please attach an example case? Bests, |
||
March 15, 2013, 09:45 |
|
#43 | |
Senior Member
|
Quote:
For this purpose, if it's really necessary according to your solver, take a look over the attachment. It's Better to see this post (http://www.cfd-online.com/Forums/ope...tml#post377001) before any changes; note that the formulation of tau depends on your constitutive model you've used. Bests,
__________________
Amir |
||
March 15, 2013, 11:08 |
|
#44 | ||
Senior Member
|
Quote:
I am using simpleFoam to simulate steady incompressible air flow over a 3D cube, using LRR turbulence model. How can I know what constitutive model i am using? besides, I have some problems calculating shear stress, using your code. Before, using utilities like wallShearStress or wallGradU, it was all enough to run these commands in the case directory to calculate velocity gradient or wall traction as you mentioned before. but here after compiling your code, when I run "shear" command, I get this error message which needs tau boundary condition in the whole time directories. For instance I put tau baoundary condition in 0 directory and after running the command I got this: Quote:
|
|||
March 15, 2013, 12:38 |
|
#45 | ||
Senior Member
|
Quote:
Quote:
This is not correct to put the "tau" file to "0" folder! All of your folders should have this file with their specific data according to that time! I developed this utility for viscoelastic solver in which the tau variable is stored like other variables such as U or p. Anyway, if you want to use this code you have 3 options: 1- Use it as a utility; for this purpose, you've got to change this code; i.e., substitute "tau" with your appropriate relations according to your solver (looking over the main utility to compute wall traction may help you figure it out). 2- Change the solver to write "tau" at each time step like other variables like U or p. 3- Substitute this code as a part of your solver, embed it there properly ... Hope that these options would clarify the situation for you. Bests,
__________________
Amir |
|||
April 3, 2013, 23:46 |
wallGradU
|
#46 |
Member
|
@ Amir,
Thank you for your clarification that wallShearStress computes traction. To clarify, would an acceptable alternative be to run the utility wallGradU, and then to multiply the resulting field by mu? In other words, tau = mu * wallGradU where 'tau' is the conventional wall shear stress. Is this also correct? Edit: I just tried this for my case, and I get the same result doing either of the following: tau = (wallShearStress) * rho tau = (wallGradU) * mu Is that expected? Was the wallShearStress utility fixed? I am solving a laminar incompressible flow with a density rho close to that of water. Last edited by Nucleophobe; April 4, 2013 at 00:29. |
|
April 4, 2013, 05:42 |
|
#47 | |
Senior Member
|
Quote:
None of the implemented statements are real wall shear stress but in many cases their differences are really negligible; i.e., it depends on the wall curvature and the velocity gradients. In other words, your first equation computes wall traction including the normal stress and the second one just computes the normal gradient of the velocity vector while the real wall shear stress is originated from rate of deformation tensor. Bests,
__________________
Amir |
||
April 5, 2013, 07:52 |
|
#48 | ||
Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 16 |
Quote:
Thank you Amir, for the clarification. I read this for several times and am really confused. if shear stress= t - (t.n)n is the right definition (and it is), then why "FLUENT and OpenFOAM" prefer t= T.n? Quote:
I need to solve the shear stress along a trench under sea bottom, is it good to just apply official utility?
__________________
Kind regards, Albert |
|||
April 5, 2013, 10:51 |
|
#49 | |
Senior Member
|
Dear Albert,
That's my question too! Quote:
You know, the differences are really case dependent and difficult to estimate before examine. Bests,
__________________
Amir |
||
April 5, 2013, 13:26 |
|
#50 | |
Member
|
Quote:
Since shear stress= t - (t.n)n, is the calculation using wallShearStress generally high, or low? Can the quantity (t.n)n be negative? I'm a little unfamiliar with the syntax so it isn't clear to me offhand. It sounds like it would be very useful to develop a new utility for post-processing the correct WSS. (I'll try, we'll see how it goes!) |
||
April 5, 2013, 14:11 |
|
#51 | ||
Senior Member
|
Quote:
Quote:
Bests,
__________________
Amir |
|||
April 5, 2013, 14:48 |
|
#52 | ||
Senior Member
|
Quote:
Quote:
I just came up with the attached utility. I don't know if I have made any mistakes, but wallShearStress value is different from the actual wallShearStress value of the official utility. Is there anything I am missing? P.S: mu is supposed to get read from transportProperties.
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|||
April 5, 2013, 16:16 |
|
#53 | |
Senior Member
|
Quote:
Bests,
__________________
Amir |
||
April 5, 2013, 18:45 |
|
#54 | |
Senior Member
|
Quote:
I finally compiled the correct wall shear stress utility successfully, based on the official wallShearStress utility which actually computes wall traction. In my case error was about 5% between wall shear stress and wall traction. utility is attached. Bests
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
||
April 6, 2013, 00:03 |
|
#55 | |
Member
|
Quote:
So if the pressure is relatively low in the system, then the error in using the wallShearStress utility is relatively low; however, if the pressure in the system is high, the error will be greater. Questions: 1) Am I thinking about this correctly? In my case, the error is far less that 1%, but the pressure is low 2) What is the effect of curved geometry? I don't see why that would affect the normal component of the traction vector... Last edited by Nucleophobe; April 6, 2013 at 00:20. |
||
April 6, 2013, 07:17 |
|
#56 | ||
Senior Member
|
Quote:
Quote:
Bests,
__________________
Amir |
|||
April 10, 2013, 17:16 |
|
#57 | |
Member
|
Quote:
Can we say then that the normal component of t.n is related instead to the gradient of the normal velocity in the normal direction? For instance, if the surface normal is in the x-direction, we would have: n = (1, 0, 0) sigma_ij = 2 * mu * e_ij sigma_ij . n = 2 * mu * (partial(u,x), 1/2 (partial(v,x) + partial(u,y)), 1/2 (partial(w,x) + partial(u,z))) (sigma_ij . n)n = 2 * mu * partial(u,x) where sigma_ij is the deviatoric stress tensor in notation that I'm used to. Also, is the 't' that we've been referring to simply the Cauchy strain tensor (e_ij)? |
||
April 10, 2013, 17:59 |
|
#58 | ||
Senior Member
|
Quote:
You have to change it to "(sigma_ij . n).n = 2 * mu * partial(u,x)" Quote:
Bests,
__________________
Amir |
|||
April 10, 2013, 18:07 |
|
#59 | ||
Member
|
Quote:
(sigma_ij . n)n = (2 * mu * partial(u,x), 0, 0) Edit: Oops; the above is still wrong!; This should be right: ((sigma_ij.n).n) = magnitude of traction in normal direction (scalar), and ((sigma_ij.n).n)n = (2 * mu * partial(u,x), 0, 0) Quote:
I guess what I'm asking is this: what is the definition of what you call the "deviation tensor" T? Is it the same as the sigma I defined? So T = sigma_ij = 2 * mu * e_ij Or do I error again? Last edited by Nucleophobe; April 10, 2013 at 18:27. |
|||
April 10, 2013, 18:18 |
|
#60 |
Senior Member
|
Yes, this is correct. It's called the deviation tensor because it causes deviation from the isometric pressure tensor.
Bests,
__________________
Amir |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
2D wall shear stress | yossarian88 | STAR-CCM+ | 0 | February 21, 2011 14:12 |
relationship between wall shear stress and TKE | winter | FLUENT | 0 | December 11, 2007 18:11 |
Macro to set Wall Shear Stress | Satish | FLUENT | 4 | November 26, 2003 15:46 |
WALL SHEAR STRESS | Min-Hua Wang | CFX | 0 | April 3, 2002 18:40 |