Monday, March 10, 2014

Hello,

This post describes the methodology of setting up and running a LES simulation  in ANSYS-FLUENT, a very brief description about the meshing and solution procedure is presented here. Compared to RANS, LES simulations require finer grids since it aims in resolving the large scales of turbulent motion thus providing a better insight of the flow physics however LES is a transient simulation and the computation cost of LES much higher than that of RANS, for a detailed review please see :

1.) Piomelli, A primer on DNS/LES.

2.) Grid-point requirements for large eddy simulation: Chapman's estimates revisited. H. Choi and P. Moin. Physics of Fluids, 24(1), 2012

(also see the original Chapman's paper in the late '70s ~78-79)

3.) Turbulent flows, Pope (2006).

I am not describing the theory of LES here as there are several good books available and I would recommend reading, chapters 1-7 in Pope, and chapter 13 on LES. Chapters 6 and 7 in Pope's book explains about turbulence in free shear turbulent flows (jets, self-similarity) and chapter 7 describes about stable attached turbulent flows (pipes, channels). I would highly recommend reading these as they explain the significance of certain parameters like y+, u_tau, law of the wall, the regimes in a turbulent velocity profile and so on.

The present tutorial is based on pipe flow at Re = 24,580 (experimental data of Toonder & Nieuwstadt, and DNS data of X. Wu and Moin is available) .

1.) Create a pipe geometry in ICEM-CFD,




The dimensions of the pipe are : 2.5m in length, 0.2m in diameter.

2.) Create a 3D bounding block :

 associate the edges around the circle to the circle at both the faces.

3.) split the block in the form of an o-grid : for this select the the single block and the faces on the circles


4.) For better mesh quality, set an offset of 0.65

5.) Input the number of nodes and ratios (the near wall spacing, y+ here is 0.25 ) and the wall paralle spacing of 25.0 (x+ ), this is achieved by inputting the correct number of nodes in each of the directions.


I had input 65 nodes in the wall normal spacing, and 55 nodes in the z-direction.

6.) The boundary conditions play an important role in LES simulations, in the present study periodic boundary conditions with a pressure-gradient is used, the pressure gradient is calculated based on the u_friction velocity (u_tau), in case of pipe flow :

dp/dx = (-4u_fric^2/rho) , for channel :  dp/dx = (-2u_fric^2/rho)

u_fric = sqrt(tau_w/rho)

(Refer pope for the derivations and explanations)

 Periodicity can be defined in icem or in fluent, in the present case periodicity is defined in icem :
 go to the mesh button in mesh, click on set up periodicity :


set translational periodicity, and in this case the periodicity is in the x-direction based on the length of the pipe, therefore : 2.5 0.0 0.0

select the vertices on the periodic faces (circles)


Once selected, you can view the periodic faces by selecting faces : view periodic faces :






Now you can create the parts : inlet, wall etc. and save the mesh and translate it to fluent

Alternatively you can set up periodicity in fluent, but sometimes you may end up with errors such as ''segmentation-violation'' especially in the case of large meshes.


7.) Setting up LES in fluent :

I would suggest running a RANS simulation in a similar coarser mesh with pbc in fluent and then interpolating the RANS solution in the present case.  After interpolation, you can add fluctuating components to the RANS velocity profile by :

/solve/init/init-instantaneous-vel

Once done, change the viscous model as Large Eddy Simulation, start with the standard Smagorinsky-Lily model. The default values of Cs (0.1) is  good enough for simple attached flows, for flows involving large separations and instabilities the dynamic subgrid model can be used or the value of Cs can be set from available  literature.

Set the periodic boundary condition of pressure-gradient in the boundary conditions, mass-flow could also be used but the pressure-gradient seems to be more stable and provide better convergence.

For the pressure-velocity coupling, SIMPLEC algorithm is used and the bounded central differencing scheme is used for the velocity and in case of the time advancement the 2nd order backward euler implicit is used.  (bounded 2nd order implicit)

You can define a small iso-curve near the wall for monitoring statistical convergence of velcocity (defined under surface monitor)

Define the timestep of the simulation such that your CFL number is less than 1.0

CFL = U*delta_x/delta_T where delta_x is your wall parallel spacing, I would recommend a CFL of 0.50 and the number of inner iterations around 15-20.

You can run the simulation now!


Some points to be noted :

Make sure that in each time step your residuals drop down by the order of 2. You may achieve a statistically stationary state in 2-3 flow through times (FTT) , 1 FTT is defined as the time taken by a particle to cross the entire domain. Do not collect any unsteady data statistics until statistical stationary state has been reached. Once you have reached statistical convergence, you can switch on the sampling interval and unsteady data collection .. meanwhile you could monitor your CFL number, plot q-criterion for the evolution of turbulence.



You can check for the convergence of your solution by comparing the wall shear stress of the CFD with the momentum-balance equation, which reads as :

-dp/dx (pi*r^2*L)=tau_wall(2*pi*r*L)

or alternatively you could check for the skin friction coefficient (Cf) and friction factor (f) (f=4Cf), and compare with correlations..



Questions welcome...

Thanks and Regards,
Deepak

Subscribe to RSS Feed Follow me on Twitter!