
[Sponsors] 
October 29, 2008, 07:10 
Dear all
I am trying to sim

#1 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Dear all
I am trying to simulate the secondary flow in the corners of a fully developed square duct. To capture the secondary flow I am using an EASM turbulence model. Instead of getting a nice smooth flow field I get some sort of oscillations in the flow field, see figure. The figure is obtained using upwind schemes on the convection terms and shows the shear stress Rxy in the lower left corner. I don't quite understand where these artificial structures come form. Can someone point me in the right direction to understand the origin of these structures. Thanks Markus 

April 15, 2010, 04:17 

#2 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hallo Markus,
I'm trying to simulate a fully developed quare duct, too. I implemented some different EASM models. But solving a square duct I get the secondary flow near the corners wrong spinning. I tested with existing nonlinear turbulence models like the NonlinearKEShih and I get the same wrong directions of the flow. Do you have a similar problem or know what's wrong implemented? Thank you very much, Thomas 

April 16, 2010, 09:36 

#3 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Hi Thomas,
I think I cannot help you much here  sounds a little bit like you have swaped a +/ sign somewhere in the nonlinear terms. Have you validated your model on a case like flat plate or channel flow in order to check whether the stress components are correctly predicted. Markus 

April 20, 2010, 10:47 

#4 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
I am testing the models at a 2d channel flow now. Have you solved square ducts with ASM's and the secondary flows rightspinning? I know that changing (S_ik*Skj...0.33*S_kl S_kl delta_ij) to +(S_ik*Skj...0.33*S_kl S_kl delta_ij), the secondary flows spin right, but I'm sure that the code has no minus/plus error here. But after testing the 2Dcases I will be able to tell you more. Thank you and regards Thomas 

April 21, 2010, 03:59 

#5 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Hi Thomas,
when I did the sqaure duct the secondary flow was in the correct direction. However, the EASM I am using has a (+) sign in front of the (SikSkj ...) term. Which EASM are you trying to use? Markus 

April 21, 2010, 06:35 

#6 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi,
I've implemented the basic ASM model from Gatski ansd Speziale and the normalized one ,too. Papers: On explicit algebraic stress models for complex turbulent flows by Gatski and Speziale (normalized model equation 52), Towards the development of secondorder closure models for nonequilibrium turbulent flows by Speziale and Xu (Standardmodel equation 13). But I've seen many ASMmodels and they are all implemented in this kind of way: tau_ij=2/3 K delta_ij constant(+a1 k²/epsilon S_ij + a2 k³/epsilon²(S_ij w_kj + S_jk*w_ki) a3 k³/epsilon² (S_ik J_kj  1/3 S_kl S_kl delta_ij)) with a1, a2, a3 > 0. So I think my implementation is right. Which ASM model have you implemented? I've problems because of the velocity of the 'nearest cell to wall' has a velocity in orthogonaldirection to the wall, see the pic on the top. Do you have such problems too? Do you use damping functions or corrections for the near wall cells in the tau equation or something in this way? Regards Thomas 

April 21, 2010, 08:15 

#7 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
I am using the EASM of Wall&Johansson with the SSG pressure strain model.
I never had any problems with that model and it also works without damping functions (I am using a omega based formulation). It still would be interesting to see your normal Reynolds stress components for a simple channel flow  I have a feeling these are not correct, other wise you should get the correct orientation of the secondary flow. MArkus 

April 21, 2010, 10:15 

#8 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
at the moment I'm on holiday and I don't have access to OF. Next week I'll be back and be able to simulate the 2d channel flow and will post the post processing. Regards Thomas 

April 27, 2010, 10:33 

#9 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
I have implemented the basic 2d ASM from "An explicit algebraic Reynolds stress model for incompressible and compressible turbulent flows" by Wallin and Johansson. (Equation 1.18, 1.19, 2.3, 2.4, 2.5, 2.7) The secondary flow rotates correct . I'm implementing damping functions to get a low reynolds turbulence model, that the flow near the wall is parallel to the wall... Is it okay to start with the highReynoldskEpsilonmodel, or should I use a lowReynoldsmodel? Because of problems using damping functions in epsilon, nut and in anisotropy tensor, too. After all I will compare the results to experimental data of a channel flow. Regards Thomas 

April 27, 2010, 10:45 

#10 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
HI Thomas,
I am glad to hear the rotation is correct now. Why dont you just use the same kEps formulation which Wallin&Johansson have used. If I remember correctly, it should allow for an integration to the wall. Markus 

June 16, 2010, 08:13 

#11 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
sorry for my late report. It took me a long time to implement some new models and share their results with DNS data. I implemented a ASM from Baglietto and Ninokata "Anisotropic Eddy Viscosity Modeling to Industrial Engineering Internal Flows" from 2006. It's with a lowreynolds formulation. I implemented it and simulated some basic flows (pipe flow, channel flow, a heated bundle and a square duct). The secondary flows at the square duct and bundle are good. The velocityprofil in the channel and pipe flow is good, too, the Reynoldsstresses are okay (far from the wall). I simulated a DNS test case from http://murasun.me.noda.tus.ac.jp/turbulence/ The problem is, the fully developed channel flow in xdirection (umean ca. 18 m/s has velocity changes in ydirection, so vmean isn't zero). Regard the plot. I plotted the pressure profil, which should be constant in ydirection ,too. The problem is maybe the nearwall pressure condition (which is in my case the standard zeroGradient condition). Have you had such problems near the wall? Here is the plot of the Reynoldsstresses for a channel flow with Re_tau = 395. Or has anybody an idea about a better bc for the pressure? Thanks a lot, Thomas 

June 18, 2010, 05:51 

#12 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Hi Thomas,
how is the convergence of the EASM model? How many mangnitudes do the residuals drop? I found that EASM sometimes dont convergence very well which may also results in some kind of oscillations in the flow field. Does the blue curve correspond to the vv component and why does it have such a strange behaviour close to the wall? Regards, Markus 

June 18, 2010, 10:14 

#13 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
the residuals are good (all of them < 10e7). the simulation of the fully developed channel flow showed velocity changes in ydirection (see the pics above). And because of that, S_22=2*(du2/dx2) isn't zero... and I think that's why there are changes within the Reynoldsstresses near the wall. Maybe it's the definition of the divdevReff, I took the one from the LRRmodel: fvc::div(R_) + fvc::laplacian(nut_, U, "laplacian(nuEff,U)")  fvm::laplacian(nuEff(), U) You're right, the blue one is the one in ydirection (so R_vv). How have you defined the divdevReff? Do you update nut after determine k and epsilon but before calculatin R or afterwards? Regards, Thomas 

June 21, 2010, 05:59 

#14 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Hi
I am using the same appraoch as it is used in the other nonlinear models, i.e. divDevReff = fvc::div(nonLinearStress_)  fvm::laplacian(nuEff(), U)  fvc::div(nuEff()*dev(fvc::grad(U)().T())) I update nu_t after computing k and epsilon!! Hope this helps. Markus 

June 25, 2010, 14:18 

#15 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
I have implemented the turbulence model like the other nonlinear models in OpenFOAM. I have still the same problems with the velocities to the walls and the pressure. But simulating a channel flow with these models like the nonlinearShih or the LienCubickLowRe, I get here the same problems with the nonconstant pressure over the height and the normal velocities, too. Have you simulations with these models without this effect? So I don't know what to change at the model, now. Which model did you implement? Best regards, Thomas 

June 30, 2010, 03:58 

#16 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Hi Thomas,
I have results for a planar channel flow using an EASM. In my simulation the Vvelocity is zero and the pressure is constant across the channel. Can you confirm that the initial Residuals for the pressure p_0 does drop below 10^7; as you have mentioned before. If this is the case, I can't think of anything else that could go wrong. Markus 

July 1, 2010, 09:59 

#17 
Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 96
Rep Power: 10 
Hi Markus,
the residuals of the pressure are below 10^7. I found out that using divDevReff without the nonlinearStress_part, divDevReff = without: fvc::div(nonLinearStress_)  fvm::laplacian(nuEff(), U)  fvc::div(nuEff()*dev(fvc::grad(U)().T())) the static pressure is constant over the whole height, but of course, there is no anisotropy of the turbulence for calcutating the NSequation. But from the velocitygradient, the k, epsilon I get quite good Reynoldsstresses. But using the fvc::div(nonLinearStress_) the pressure isn't constant. Could you please show me an example of one of your implemented EASM? I have no more idea at the moment how to solve the problem. Are you using mapped boundary conditions? Regards Thomas 

July 1, 2010, 12:03 

#18 
Member
Jérémy Bulle
Join Date: Nov 2009
Posts: 93
Rep Power: 9 
Dear Thomas and Markus,
sorry to step in the discussion but I'm working on a UBend with a square section too. Could you tell me if you used the RSM model from OpenFoam or one you implement yourself? Thanks for the help, Regards 

July 2, 2010, 04:18 

#19 
Member
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 10 
Jérémy: Unfortunately, EASM models are not currently available in OF. But the RSM seems a good idea for your case.
Thomas: This is what I get for a channel flow (cyclic BC) (U,V,p). If you want I can take a quick look at your EASM model implementation. You can also send me the test case you are running if you want. Markus 

May 10, 2012, 10:50 

#20 
Member
Aniko Rakai
Join Date: Oct 2009
Location: Geneva
Posts: 30
Rep Power: 9 
Hi, it's been a while that someone posted here but maybe you made some progress since then.
I was checking the NonlinearKEShih model for a simple boundary layer flow, so that the only velocity gradient is dU/dZ. For this the analytical result can be derived so I could compare to that. What I see is that with the current implementation of the model the resulting trace of the Restress tensor does not give the correct k value. I think this is because some dirac terms of the Shih model are not implemented. Also if adding those terms the R_11 and R_33 terms are changed compared to the analitical solution, which is similar to me to the wrongly rotating square duct secondary flow. Did you finally work out how to use the NonlinearKEShih model or use models implemented by you? 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Turbulent Flow in a Square Duct using LES  Hock Ming  FLUENT  0  February 7, 2009 21:25 
how to mesh cylinder inside the square duct  kathir  Siemens  1  August 1, 2006 08:44 
problem about square duct.  Bin Li  Main CFD Forum  0  December 29, 2003 23:11 
help! flow in square duct  chris  Main CFD Forum  2  December 22, 2003 11:13 