|
[Sponsors] |
May 22, 2014, 05:26 |
|
#41 | |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
did you set it to both pRefCell and pRefValue because in the tutorial only the first one is 1001. By the way why is it 1001?
Quote:
Here my residuals plot, and as you can see the other variables will keep going down except for the pressure. I've set final time to 20 after defining the characteristic time of the flow as t*=Lx/Ubar (Lx= lenght of the channel in the x-direction) so that the endTime is around 30xt*. I checked and rechecked my setting and except for the pRefCell & pRefValue I think everything is fine (in post #30 you'll find my setup). Hope you can help me solve this problem it's week that i'm fighting to figure out the problem. EDIT: I've just read in your post #33 that your Re_b=13750 with Re_tau=395 are you sure? In the data i found with Re_tau 59 the Re_b=10935. So you Reynolds with respect to Ubar is too high. |
||
May 22, 2014, 06:36 |
|
#42 | ||
Senior Member
|
Quote:
Code:
label pRefCell = 0; scalar pRefValue = 0.0; setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue); Quote:
for the solution time, I read in the below threads that they started with a coarse grid and then after 100 flow time, then refined the grids and mapped the results to the new case and after that let it to solve for another 100 flow time. but I think It take a long time for me to use this procedure because I'm just using 4 core not 32! http://www.cfd-online.com/Forums/ope...nel-flows.html http://www.cfd-online.com/Forums/ope...58043-les.html Regards, Mostafa |
|||
May 22, 2014, 07:17 |
|
#43 |
Senior Member
Huang Xianbei
Join Date: Sep 2013
Location: Yangzhou,China
Posts: 302
Rep Power: 14 |
Sorry,I forgot to paste the blockdict,you can find it here in my thread
http://www.cfd-online.com/Forums/ope...tml#post493226 |
|
May 22, 2014, 08:05 |
|
#44 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
Interesting in the dataset I found (posted it here) they have different Re_b.
Wait did you use that heigh of the channel because I have half your value using delta which is the half heigh. So your advise it to let it go for like 100xt* and see if the flow will converge to the fully developed turbulent condition. In fact seeing the flow with parafoam I can still notice the streaks created by the perturbation. I'll rerun the simulation with the correction on pRefCell and pRefValue (I'll set them as in the channel395 tutorial), hoping the pressure will not go crazy. |
|
May 23, 2014, 04:17 |
|
#45 |
Senior Member
|
again I'm running my case using mapped bc, the results are more similar to the case I want validate with it than cyclic bc.
anyway, I have some problems yet. firstly, I ran a coarse grid case for 124 flow time. the streamwise velocity contour seems that the flow is fully developed but the other components of velocity are changing with time. their changes are like a wave, they fluctuate and this process repeat every 16 flow time!!! Then I mapped the results to another mesh that was refined. and it's being solved for about 40 flow time. I attach the residuals and some pressure probes plots here. As it's understood, the residuals of x- and y-component of velocity are fluctuating and I think that means that I haven't a fully developed flow yet!!!! So, what's your opinion, you guys, about my residuals? are these Res correct? should I be patient and let it solve for a long time or it hasn't any profit for me and the solution is wrong? the two first pic are for coarse mesh and the others are for refined mesh. any hint or tip would be appreciated! Regards, Mostafa P.S. Re_tau=395, Re_b=13350, @flow time=124 --> u_tau=0.008402 |
|
May 23, 2014, 14:43 |
|
#46 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
Right now I'm away from PC but I confirm that I'm having the same behaviour with the residuals in the coarse mesh. I have some variable, especially the pressure that will have an oscillating residual and dunno why because with mapped patch the case is easily resolved.
My last guess is that maybe the mesh near the wall isn't defined correctly, and given the presence of the perturbation at around y+ =20 this may cause some problem. On the other hand I kept a R factor close to 10 (or 0.1). I'll try first to change the led model adopted, maybe the damping at the wall by driest WF isn't working well and cause such oscillatory nature. Otherwise I'm out of ideas. I kept searching for the Re_b and it is always based on half heigh of the channel so be careful when computing the U_bar. |
|
May 23, 2014, 15:13 |
|
#47 | |
Senior Member
|
Quote:
thank you for reminding that point. A question: when you are using mappedpatch, did you map the outlet to inlet, or the inlet to outlet or a cross-section within the channel to inlet? |
||
May 23, 2014, 15:55 |
|
#48 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I forgot to specify that I didn't still compare the values to the experimental data, but I have a good profile of the residuals where they all converge pretty nicely.
As for the mapping I decided to map the inlet to the outlet, remember to not put the offset at the exact position of the patch but a bit lesser. |
|
May 24, 2014, 03:33 |
|
#49 |
Senior Member
|
I think I have a misunderstanding of mapped boundary condition!
assume the following: Code:
inlet { type mappedPatch; offset ( 0 0 3 ); sampleMode nearestCell; samplePatch none; faces ( (0 3 2 1) (1 2 9 8) ); } 1- This condition implies that the fields at z=3 are mapped to the inlet patch or 2- This condition implies that the fields at inlet patch are mapped to the z=3 plane ? I let it solve for 400 flow time and still my x- and y- components of velocity are changing and the flow isn't fully developed yet! any hints or tips? P.S. and still my u_tau is varying |
|
May 26, 2014, 01:23 |
|
#50 |
Senior Member
|
hi everybody,
After 5000 flow time the residuals didn't converge correctly. I can't understand why?! I attach the residuals. perhaps it's better to use cyclic bc instead of mapped. |
|
May 27, 2014, 08:57 |
|
#51 |
New Member
Hans Barósz
Join Date: May 2014
Posts: 22
Rep Power: 12 |
I am doing the Re_tau = 395 channel flow as well in comparison to DNS Data by Moser.
I have just used oneEqEddy Model so far. On a coarse mesh, i simulate 100 flow throughs which takes about 2800 time steps with deltat = 0.2 Afterwards I simulate another 2800 time steps with calculation Umean and Uprime2mean and pMean and pPrime2mean on a finer grid with deltat = 0.1 to keep Co low. Then I use postChannel -latestTime to get Uf (which is the velocityprofile u over y as far as I know). From the results, I calculate dUx/dy and then uTau which is about 0,00752. The resulting ReTau is then just 375, far away from 395, which is actually my main problem. From the coarse to the fine mesh, I doubled the elements in y-direction, but I just improved ReTau from 370 (coarse) to the mentioned 375 (fine). I am using the pimpleFoam tutorial and havent done any changes except the grid of the finer mesh. So my ubar is 0.1335. I am confused about the low ReTau number. How do you guys calculate ReTau? Do you use wallShearStress utility? Dont believe the results differ so much from each other. My dimensionless velocity profile has a good shape in log law but bad at high y+. Any hints? PS: can u share ur script for plotting the residuals? Then I can have a look in my log file and tell you if I have any strange behaviour. |
|
May 27, 2014, 10:15 |
|
#52 | |
Senior Member
|
Quote:
first of all, how could you found out that you reached a fully developed flow? did you see the results using paraView, for example? does the flow pattern reasonable? second, how about the p or U probes in your solution? do they reach a constant value after second 2800 time steps? third, here you are the code for plotting the residuals using gnuplot: Code:
set logscale y set title "Residuals" set ylabel 'Residual' set xlabel 'Iteration' plot "< cat log.pimpleFoam | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ "< cat log.pimpleFoam | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ "< cat log.pimpleFoam | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ "< cat log.pimpleFoam | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\ "< cat log.pimpleFoam | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines pause 1 reread Code:
gnuplot filename fifth, can u share your residuals here? we have some problems in convergence for this case. Regards, Mostafa |
||
May 27, 2014, 11:36 |
|
#53 |
New Member
Hans Barósz
Join Date: May 2014
Posts: 22
Rep Power: 12 |
Hi, here are my residuals.
I am not sure why you just plot the Initial Residual and not the final residuals. The pic above is just the 2nd part with calculation of the means. So the whole simulation has doubled iterations. For test purpose I just had a look at the mean velocity profile development from 2800 to 5600 in paraView. Also the residuals in the pic seem to not change anymore. Ive read in the forum that it is a common way to let the fluid pass the channel 100 times and then another 100 times with building the means. With 5000 flow times do you mean the distance of the flow or the Iterations? Why do you do probes for U? Or do you mean the time averaged U? In your residual plots there is kinetic energy k, so you are doing oneEddyEq too? At the moment I am running the case with Smagorinsky. I have a thesis in which Smagorinsky shows excellent results. Hope I get the same. Simulation should be finished tomorrow. Unfortunately I cant install your utility because I have no root rights, i am working as student at university. P.S.: I do not use the standard yPlusLES utility because I get completely wrong values, with max(yPlus) at first node off the wall and 0 inside the channel. Therefore I started calculation of uTau and ReTau with the postChannel given values. |
|
June 10, 2014, 12:56 |
|
#54 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I still can't get acceptable results, did any of you found the error or resolved the problem?
|
|
June 10, 2014, 13:39 |
|
#55 |
Senior Member
|
I gave up attempting to solve my case using the mappedpatch boundary condition and now I'm working with cyclic bc and using perturbU for initial condition. It presents better results for my case.
I did a simulation with a coarse grid and compared it with Moser DNS results. they were neither good nor bad, but they were promising. unfortunately, I fell asleep and the Courant number came high about 1 for about 1000s and I missed the results to present here!!! Now, I'm running it again with a finer grid and whenever it reaches a fully developed turbulence state, I'll present the results here. ArathoN, I suggest you to try your problem using cyclic boundary condition. Regards, Mostafa |
|
June 10, 2014, 13:50 |
|
#56 | |||
Senior Member
|
Quote:
Quote:
Quote:
what about your results? is it finished? If yes, can u share your results with us! Regards, Mostafa |
||||
June 11, 2014, 02:13 |
|
#57 |
Senior Member
|
hi again,
about 6000s flow time I let the solver keep solving with a coarse mesh and then I mapped the results to a refined mesh and it's about 2500s flow time that it's still solving, but there isn't any sign of fully developed in my case!!!! the second mesh is not very dense near the wall and I'm solving just half of channel using symmetry condition. I attached the probes of U, UMean, and UPrime2Mean for three points here. anybody knows why my flow didn't reach a fully developed state?!?!? I also attach the Courant number plot for the second run. Also, the comparison graphs are attached for my results and Moser's. my results are coming close to Moser data. Do you think I should keep being patient and let it solve my case for a long time?!?!? Regards, Mostafa |
|
June 16, 2014, 05:23 |
|
#58 | ||
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
I tried a lot of settings but in my case the problem is the pressure residual, it doesn't go down but until now I've done max 100 flow time (it needs a lot of time to converge). I don't know what to do to make it work. Here my case files and btw the Retau=590, nu=1.5e-5 and Ubar=1.3122, you?
EDIT: i tried a coarser mesh but i have the same behavior the pressure,Uy and Uz residuals are all around 0.1 and they don't seem to go down (the mesh is 60x50x30 with the y-ratio as 10 and 0.1). How much did you wait and do you have a residual plot? so i can confront it with what i have. EDIT2: Plotting the bounded variables i noticed that K_max will greatly oscillate 0.02-0.06. and i don't know why? ok it is a turbulent flow but the characteristic turbulent energy of the large scales shouldn't vary so much. Quote:
Quote:
EDIT3: I still have the residual in the range of 0.1-0.01 (higher end for the pressure and lower end for Ux and k). Now the kmax is oscillating less 0.025-0.035.and i'm at about 300 flow time, i'll continue to simulate until 1000 and i hope the residuals will go down at least to e-3. Moreover in the parafoam plot the streaks created by the perturbation are still there, it's like the perturbation doesn't diffuse, and don't know why. I'll keep updating with every noticeable change. EDIT4: Now it is at around 550 flow time the residual are as before but seeing the flow with parafoam i noticed that it is now turbolent and the perturbation streaks imposed are being diffused. So now I'll map the data to a finer mesh, maybe the problem related to the residuals are dependent of the mesh size. here some images bounded variables plot residual plot front-section flow stream-wise section flow Last edited by ArathoN; June 17, 2014 at 03:37. |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
rhoCentralFoam for channel flow | fportela | OpenFOAM Running, Solving & CFD | 22 | June 10, 2014 21:14 |
Question on the boundary condition for open channel flow, please help! | ripperjack | OpenFOAM Running, Solving & CFD | 0 | September 13, 2013 12:44 |
Gravitational water flow in closed channel. | Szymon85 | CFX | 7 | September 3, 2013 17:28 |
[ICEM] Flow channel meshing problems | StefanG | ANSYS Meshing & Geometry | 19 | May 15, 2012 07:44 |
references for how to maintain a constant flow rate in turbulent channel flow | amirrstg | Main CFD Forum | 0 | October 25, 2011 04:17 |