question for LES
I'm going to make LES code using Fortran.. I get some questiong for making LES code
someone posted that LES code will be easily developed from 3D laminar NS code. How can I develope LEs from laminar code? does there anyone advise me something which is shold be careful? also, please tell me the well organized flow chart or explain for making LEs code step by step... Have a nice day Jay 
one more question for LES
One more,
Does 2D LES make sense or not if it is applied the backstep flow? 
Re: one more question for LES
Hi Jay,
>> How to develop a LES code from a 3D laminar solver? The LES equations have the following differences from laminar equations: (1) the variables are filtered; (2) a subgrid scale viscosity account for the unresolved turbulent kinetic energy. If one assumed that the grid is the filtering operator, the remaining difference (in the equations to integrate) is the SGS viscosity (various models are available such a Smagorinski, oneequations....). Note: there is also lots of issues concerning boundary conditions (inlet/nonreflective outlet/wall). For more thorough discussion of these, you can have a look to Sagaut, Largeeddy simulation for incompressible flows. Then, what one need to care is the numerical accuracy. Turbulent structures up to the filter size need to be resolved. To achieve this, 2nd (commercial codes?) to 6th (academic) order space accuracy and 2nd to 4th order time accuracy are usually required. >> LES code flow chart I think that the flow chart will be organised around the selected time integration methods (explicit/implicit), not the SGS/turbulent model. >> Does 2D LES make sense? For application, 2D LES does not make sense. LES assume that turbulent structures are (partially) resolved. It can only be achieve in 3D. I hoppe this may help. Sincerely, Julien 
Re: one more question for LES
Thanks for your answers, julien
it really helps me.. I can handle the viscosity term, but still I'm confusing the filtering for the inlet profiles. could you recommend me anything for the filtering operator? have a nice day.. 
Re: one more question for LES
Hi,
Two points to clarify: (1) The inlet profile is usually constructed as follow: u(t) = u_mean + u' where u_mean is the mean profile that is imposed and u' the fluctuation of velocity. The main problem is to generate "realistic" fluctuation u'. I think there was a discussion on the subject a couple of weeks ago and it would be good to refer to it. (2) The filtering is applied to the equations solved in the domain. The filtering account for the fact that we discretize the equations in space and time. The solver is returning "filtered variables" (on the space and time discretization). When doing LES, one choose a filter operator from:  implicit: the grid is the filtering operator that filter the variable thanks to the discretization;  explicit: at each timestep (or subtimestep), the flow is filtered using a (tophat, gaussien...) filter. So far, I never user an explicit filter and can not recommend one. Can one apply an explicit filter in time? I never heard about it. It could also help you to have a look in the web for LES open source codes. PETScFEM (an application of PETSc for finiteelement method that includes a LES solver) could help you for starting the developments. Have a nice day too.... Julien 
Re: one more question for LES
Thanks..
Where do I get the LEs open source code? Can I get it by FVM? The refered code is written by FEM, isn't it? If you have more information about open source code, Please, let me know it. I'm really want to open source code to figure it out. But i'm not familiar with FEM.._; Have a nice day and I appreciate you 
Re: one more question for LES
Hi Colopolo,
I am not completely familiar with all places to get open source codes for LES. You can have a look in sourceforge.net. PETScFEM is written in C++ and is solving the NS equations using a finiteelement method. More information is available at http://venus.ceride.gov.ar/petscfem/ The documentation will provide some basic about the models (wall boundary condition, SGS model) they have used. The source can help you design the algorithm for your code, but as I think you are not aiming at doing FEM. You can also use this package as a reference to compare with your code on some basic testcases. Hoppe I am helpfull and have fun with coding. Julien 
Re: one more question for LES
I always thank you.
Do you have your own LES code? If you don't mind, Can I get it? ^^ Please tell me anything about the LES code Have a nice day 
Re: one more question for LES
Hi,
I don't have a LES code (I am currently working with a commercial software). I am sure you will be able to implement all the modifications required to change the laminar code into a LES code. Before doing any modification to the turbulence modeling, I would test the numerical methods in the laminar code on homogeneous turbulence test case. Depending on the results, more accurate (less dissipative) numerical methods might need to be implemented. Have fun, Julien 
Re: one more question for LES
when I apply the filtering to variables,
When I looked at the most of papers, the govering equation after filtering, it looks like same as laminar NS eqaution..It's only different the viscosity term because there is grid filter (delta). is it just simply applying the grid filter to the subgrid viscosity in 3D laminar code? How about the others terms in laminar code? I'm so confused how to apply filtering to all of terms. Is anybody answering for this problem with the example? or send me some subcode or documents? Thanks for everybody 
Re: one more question for LES
Hi colopolo
It's Mike. I'll do the same thing as you  make my own CFD LES code using FORTRAN As a basic code I took the code of perric http://css.engineering.uiowa.edu/~cfdht/examples/ and I'd like to repeat the some works of Goteborgs in LES. We could do this work together at open source FORTRAN code. I'm woking alone without support and will continue this work anyway. If you'd like to join  tell me. If you will look through the next work you ll understand me  CALCPVM: A Parallel SIMPLEC Multiblock Solver for Turbulent Flow in Complex Domains by H°akan Nilsson and Lars Davidson GĻoteborg, August 1998 and LARGE EDDY SIMULATION OF THE FLOW AROUND A HIGHLIFT AIRFOIL Now I have to do the next some things  advance this code as I used  with good structured code and with multy porpose unifications and some improvemtnts ( as I suppose) at curvlinear non orthogonal meshes. It will be not multiblock, but with cheked math and readable structure (standart) Join me if you want. Some inf about me you can see here http://www.cfdonline.com/Forum/main.cgi?read=27912 and http://www.cfdonline.com/Forum/main.cgi?read=27859 Have a nice day Mike 
How do use hypre in petsc?
How do use hypre in petsc?Matrix storage format isn't same in two softwares,whether i must transform matrix storage format before i call hypre?anybody has relevant experiences in petsc + hypre?

Google for "Free CFD Code".
I found some simple LES codes at http://www.geocities.com/andrei_chernousov/freecfd.htm. Good Luck. 
All times are GMT 4. The time now is 19:31. 