|
[Sponsors] |
September 7, 2016, 04:36 |
|
#141 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
I am still wondering what Txx, Txy, Tyx and Tyx are and how they relate to u_tau and y+. I used postChannel utility and it just created k, pPrime2Mean, u, Uf, uv, v and w files in graph folder. I do not have Txx , ...? I will appreciate if you give me more clue. Cheers, Elham |
||
September 7, 2016, 04:58 |
|
#142 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
Dear Elham,
I don't know. OpenFoam is an opensource code and usually, postProcessing tools are not that hard to understand even for beginners. Therefore, if you have a look at the source code of postChannel (source), you'll see in readFields.H that all the fields you had created had been read. if you have a look at the source code, you'll also see that Txx, ... are calculated (not read). Hence, if you have a look in calculateFields.H, you'll see that the calculation is commented (that's why you don't have them output I guess). The formula used to calculate them is straightforward looking at the source code. Best regards, Cedric |
|
September 7, 2016, 06:16 |
|
#143 | |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
Quote:
You might want to try this utility I wrote. https://bitbucket.org/lesituu/postchannelflow It is pretty much the same as the one included in OF, but it lets you choose the fields you want to average, and also averages along the bottom and top patches. There is a example-dictionary included. Regarding y+. The function objects included in my controlDicts are mainly for looking and at how things go at run-time. I left them thremostly to showcase what one can do with swak, since it is always nice with more examples. I think the best way to calculate y+ is to get the average profile of uMean using postChannelFlow and the compute the it directly. Best, Timofey |
||
September 9, 2016, 00:36 |
The way that I calculate y+ and utau
|
#144 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Dear all,
After all my attempts to understand how to calculate utau and y+. I resulted to the following relations. Please correct me if you find any problem: As dpw/dp is constant in a fully turbulent channel, by spacial averaging we can have it. I used foamCalc utility to have Grad p and then used sampleDict on wall to have dpw/dx. utau= sqrt(h/2ro*dpw/dx) h is the channel width. So utau is a constant value. y+=utau*y/nu I am not sure about the method I used to calculate gradp. Please let me know if it is not correct. Regards, Elham |
|
September 9, 2016, 02:37 |
postChannelFlow utility
|
#145 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
I used R utility to have Reynolds Stress components and utilised postChannelFlow utility that you made to collapse it. It works well. Thanks. Cheers, Elham |
||
September 9, 2016, 06:43 |
|
#146 | |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
Quote:
u_tau = sqrt(nu*U[1]/y[1]), where by [1] I mean the first cell-centre. It is just easier . |
||
September 14, 2016, 00:25 |
|
#147 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
I have calculated y+ in the way you used, u_tau=sqrt(nu*U[1]/y[1]) but the value of y+ for the first cell, 3.3221, is much bigger than that I have got by using yPlusLES utility, 0.261426. What is wrong about my calculation? Cheers, Elham |
||
September 14, 2016, 06:23 |
|
#148 |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
yPlusLES uses the instanteneous velocity field U.
|
|
September 14, 2016, 15:09 |
|
#149 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Elham,
Can you tell us which version of OF you are using? yPlusLES has been deprecated for a while now. To have the mean y+, simply change the U to Utmp, UMean to U, run yPlus utility and then rename them back. You can also use this method to calculate wallGradU if you need to calculate wall shear stresses. |
|
September 14, 2016, 22:30 |
|
#150 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
I use OpenFOAm 2.3.0. I searched in yPlusLES code to modify it and have the mean y+ but I couldn't find any UMean to change to U as you suggested. I have two different values for utau with different methods: 1. utau= sqrt(h/2*dpw/dx)=0.1933 I've got dpw/dx by averaging over the wall and h is the channel width. 2. utau=sqrt(nu*U0/y1)=0.5237 which U0 is the average streamwise velocity and y1 is the first cell distance from the wall. What is your idea about the methods that I use? Which is the correct one? Cheers, Elham Last edited by Elham; September 15, 2016 at 04:50. |
||
September 15, 2016, 08:23 |
|
#151 | |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Hi Elham, The second approach is the one I use and is more reliable, In the case of fully developped channel flow, it would be best averaging in both homogenous directions to obtain UMean. I have modified yPlusLES to account for UMean instead of instantaneous one. I can share if you are interested. Regards, Syavash |
||
September 15, 2016, 22:59 |
|
#152 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Quote:
It would be your kindness if you send it to my email or attach here. My email address is elham.mohammadi@postgrad.curtin.edu.au. I let my modified channel395 case to be run. After 1920sec of simulation which took around 65 hours it is not still fully turbulent. Do you think it needs more time to get fully turbulent or there is a problem in the settings. general graph of y has been attached: Cheers, Elham |
||
September 21, 2016, 03:23 |
Time-averaged velocity profile versus instantaneous one
|
#153 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Hello guys,
Is instantaneous velocity profile, in turbulent region, much different from time-averaged one? I mean is it possible that the time averaged profile looks like a fully developed channel but the instantaneous profile not? Cheers, Elham |
|
September 21, 2016, 11:40 |
|
#154 | |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
Quote:
https://www.youtube.com/watch?v=t_5tEqa8rYs Obviously a profile taken along y at a given x will look totally different from the average velocity. |
||
September 21, 2016, 16:31 |
|
#155 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
I meant just renaming UMean to U in the time directories, not anywhere in the code.
I still don't understand why you are using yPlusLES? Are you recompiling that code from previous versions? You can also run wallGradU after renaming Umean to U, so you will get the gradient on the wall, but calculating y+ from wallGradU and yPlus utility will not always be the same! If you take a look at the code, you'll see there's an effective viscosity involved, the turbulent viscosity is supposed to be zero in the subgrid scale (when you resolve the wall) and your formulas are also for such a case. If the first cell is further than y+=5, then your formulas won't work. |
|
October 5, 2016, 09:42 |
|
#156 |
Member
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 11 |
Hello.
Is it always necessary to average fields in LES of turbulent channel flow in for example 100 flow through times, formed with mean velocity and length of a channel? Sometimes it would take a long time to carry out this simulation if Reynolds number is high, mesh is fine and time step is small. Does anyone have experience that, for example, 10 flow through times were enough for statistically independent results of LES in channel? Where could I find more information on this subject? Regards, Darko |
|
October 5, 2016, 10:20 |
|
#157 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
Hi Darko,
That's a weird question .... if your calculation is converged (averaged field, 2nd order statistics, ...) after 10 iterations then, no need to do 100 (but it won't, I can bet on that). As you said, if Reynolds number is high, mesh is fine and time step is small, then process needs lot's of time (iterations) to converge. To reduce the time required to converge your averaged field, you need to increase the statistics which is the aim of postChannel tools or the one Timofey has developed (see upper in the thread). I hope this will help you, Cedric |
|
October 5, 2016, 13:28 |
|
#158 |
Member
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 11 |
I will describe my problem better.
Real dimensions of channel that I am studying are 6 meters length, 35 mm is height and 350mm is width. In my LES simulation, I was watching only part of domain, 6m x 35mm x 35mm. Mesh was dense, 830 x 108 x 52 elements. Mean velocity was 20 m/s. For flow initialization I used perturbUChannel utility. I used Smagorinsky with vanDriest damping. I did this simulation for 4.5 seconds, that is about 15 flow through times, formed with mean velocity and length of channel. After using postChannel utility, there is no big difference in velocity profile after 0.5 s and 4.5 s. https://www.dropbox.com/s/vpzz8rlaud...rison.eps?dl=0 What criterion should I use in order to know when simulation has converged, when there is no big change in velocity during this small time length? Perhaps it would be bigger difference in velocity if I waited for 50 seconds or more? Now I am doing simulation in 2m x 35 mm x 52.5 mm channel. Mesh is finer, I have 926x114x82 elements in x,y and z direction. However, I am doing 0.1 seconds per day, which is slow if I need around 100 flow through times, that is around 10 s. Please don't tell me to use RANS. http://www.cfd-online.com/Forums/ope...nnel-flow.html My final goal is modeling of pneumatic conveying of dilute particle flow, but I have problems with verification of pure channel flow for relatively long time. Any advice is highly appreciated. Regards, Darko |
|
October 7, 2016, 02:23 |
exact values of velocity for each cell center
|
#159 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Dear all,
I am going to plot uPlus versus yPlus and I want to determine if the number of cells in laminar sublayer when yPlus is less than one is enough. How can I have the exact values of velocity for each cell center? Cheers, Elham |
|
October 17, 2016, 22:52 |
convergence problem in LES modeling of turbulent channel flow
|
#160 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17 |
Dear Timofey,
Since I had convergence problem I mean Ux and Uy residuals were around 0.1, Ux and k were 0.01, p was 0.3 although cumulative and global residuals were O(e-8) I have put all of settings in fvSolution and fvScheme as yours in https://bitbucket.org/lesituu/channe...tem/?at=master. But the residuals are still in the same range and the number of iterations for solving p (PCG) is nearly 270 which was around 10 by GAMG solver. What is your idea for solving the speed and convergence problem? Cheers, Elham |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure inlet boundary conditions for open channel flows | jack2000 | OpenFOAM Running, Solving & CFD | 5 | December 6, 2018 12:00 |
LES In Turbulent in channel flow | pankaj saha | Main CFD Forum | 18 | November 20, 2014 06:49 |
LES In Turbulent in channel flow | pankaj saha | Main CFD Forum | 8 | April 15, 2009 12:34 |
Turbulent channel flow | roberthino | OpenFOAM Running, Solving & CFD | 5 | August 15, 2007 09:35 |
Bc for turbulent channel flow | roberthino | OpenFOAM Running, Solving & CFD | 0 | August 13, 2007 09:12 |