CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Reg. LES in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree21Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2010, 04:00
Default Reg. LES in OpenFOAM
  #1
Member
 
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 16
ganeshv is on a distinguished road
hi !

Newbie alert !!

Wherever I look, I get redirected to Oodles or ChannelOodles for LES in OpenFOAM. I have OpenFOAM-1.6.x installed finally and there's no solver called Oodles.

Code:
[blah@blah incompressible]$ pwd
/opt/OpenFOAM/OpenFOAM-1.6.x/applications/solvers/incompressible
[blah@blah incompressible]$ ls
boundaryFoam  nonNewtonianIcoFoam  pisoFoam          simpleFoam
channelFoam   pimpleDyMFoam        porousSimpleFoam
icoFoam       pimpleFoam           shallowWaterFoam
channelFoam.c in channelFoam says that it the LES solver for channel flows. I have the following questions/doubts

1. Is an LES solver in OpenFOAM nothing more than SGS stress terms added to the NS equation ? So it's pisoFOAM with SGS stress terms with appropriate turbulence models and modified boundary conditions, wall functions etc. ?
2. I do want to do a channel flow simulation. But what solver do I use in general for LES of incompressible flows ? pisoFoam ?
3. Can you suggest any better place than Eugene's thesis to start looking inside the box ?

ganesh
ganeshv is offline   Reply With Quote

Old   February 1, 2010, 13:44
Default
  #2
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
I would to add one more question:

- Is there already a solver in OF suitable for external aerodynamics LES?

Best Regards,

Paulo Rocha.
paulo is offline   Reply With Quote

Old   February 2, 2010, 05:39
Default
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
For LES I would suggest pimpleFoam with the appropriate turbulenceProproperties (LES) settings and boundary conditions. pimpleFoam is like pisoFoam but with incomplete convergence of the corrector steps.

For external aero LES just use the SpalartAllmaras DES model as SGS model.
ehsan, solefire, achinta and 3 others like this.
eugene is offline   Reply With Quote

Old   February 2, 2010, 20:13
Default
  #4
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Thank you very much for the fast reply.

I will investigate further.

Best Regards,

Paulo Rocha.
paulo is offline   Reply With Quote

Old   February 3, 2010, 07:36
Default
  #5
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Quote:
Originally Posted by eugene View Post
For external aero LES just use the SpalartAllmaras DES model as SGS model.
Hi Eugene and all,

Isn't DES a hybrid approach between RANS (near wall) and LES (free stream)? Isn't there a way to test pure LES for external aero?

Thanks in advance,

Best Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   February 3, 2010, 22:35
Default
  #6
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Quote:
Originally Posted by paulo View Post
Hi Eugene and all,

Isn't DES a hybrid approach between RANS (near wall) and LES (free stream)? Isn't there a way to test pure LES for external aero?

Thanks in advance,

Best Regards,

Paulo Rocha

Of coarse you can, provided you have a suitable mesh, etc.
Try pisoFoam, I used to use them to do flow like flow past circular cylinder, building, etc. It works very well.

Regards,
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   February 4, 2010, 07:48
Default
  #7
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
DES is indeed a hybrid approach. I just assume that you would not be able to mesh external aerodynamic cases fine enough to use pure LES. If you do have the meshes to do pure LES, then I suggest you try the oneEqEddy, dynOneEqEdy or locDynOneEqEddy SGS models to start off with.

Check the openfoam workshop and open source cfd conference proceedings for similar applications.
masood135 and hua1015 like this.
eugene is offline   Reply With Quote

Old   February 4, 2010, 09:10
Default
  #8
Senior Member
 
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17
panda60 is on a distinguished road
Quote:
Originally Posted by eugene View Post
DES is indeed a hybrid approach. I just assume that you would not be able to mesh external aerodynamic cases fine enough to use pure LES. If you do have the meshes to do pure LES, then I suggest you try the oneEqEddy, dynOneEqEdy or locDynOneEqEddy SGS models to start off with.

Check the openfoam workshop and open source cfd conference proceedings for similar applications.
Dear Eugene,
I have two questions:

1. If using oneEqEddy model, how we can set boundary for k?
because for RANS model, we can get k from experiment for inlet condition.
But for LES, we couldn't get sub-grid turbulent kinetic energy for inlet. Or just give a small value is OK ? for example 5e-5.
So I think why so many people use Smagorinsky model, maybe don't need to set boundary for k, am I right ?

2. I have read your paper, that is very good!
the size of my case is very similar to your "Side Mirror" one. First I use 300000 meshes Smagorinsky+ Spading law wall function, and then I use a little finer mesh 500000 mesh Smagorinsky+ VanDriset damping function, both of my velocity value is smaller than RANS and Experiment data above ground 12mm position, that meas my LES result shear stress is larger, so velocity is small. Could you give me some suggestions to improve my LES result ?
Tnank you very much.
wenxu likes this.
panda60 is offline   Reply With Quote

Old   February 5, 2010, 05:47
Default
  #9
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Hi,

The boundary for k is pretty straight-forward, since you will have no resolved scale turbulence at the inlet, just set it to the equivalent RANS value. It will adjust really quickly once things start happening. Setting it too small is not a good idea, as this can lead to spurious numerical noise if you have any grid abnormalities.

All I can suggest, is that you try the other turbulence models and see what happens. I haven't run pure LES for a while, but in literature most people use some kind of dynamic model. Also, the oneEqEddy model I used in my thesis is not the same as the one currently in OPENFOAM. I had a separate near-wall dissipation length-scale that was independent of the turbulent energy length scale. This improved results on channel flows by a few percent relative to the current model. The independent dissipation scale does not fit into the current SGS model framework though and was not incorporated into the release code as a result. Unfortunately, I no longer have the code for this.
cfdonline2mohsen and hua1015 like this.
eugene is offline   Reply With Quote

Old   February 6, 2010, 19:21
Default
  #10
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 17
paulo is on a distinguished road
Eugene, Daniel and all

Thanks a lot for the information and time. I will start trying to solve my problem.

Best Regards,

Paulo Rocha
paulo is offline   Reply With Quote

Old   February 7, 2010, 04:02
Default
  #11
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by panda60 View Post
Dear Eugene,
I have two questions:

1. If using oneEqEddy model, how we can set boundary for k?
because for RANS model, we can get k from experiment for inlet condition.
But for LES, we couldn't get sub-grid turbulent kinetic energy for inlet. Or just give a small value is OK ? for example 5e-5.
So I think why so many people use Smagorinsky model, maybe don't need to set boundary for k, am I right ?
Some picky comment, but I hope of some help.

  1. Depending on the information you have from experiments, you can, at least roughly, estimate the residual kinetic energy at the inlet, and use that value. If you have PIV measurements of the inlet, you can filter that velocity filter that velocity field with the same filter size you use in the simulation, and obtain the value of the residual k at the BC.
  2. Giving as boundary condition the total turbulent kinetic energy when you are solving an equation for the residual one does not sound correct in principle, since your solution is going to depend on that value.
If there are numerical problems due to grid anomalies when k is set to be small, it simply means the mesh is not good enough for a LES anyway, or there is some problem in the numerics.
Remember that, strictly speaking, you cannot use a non-uniform mesh in LES, since you assume you can commute the integral and the derivative operators, and you neglect the terms depending on the filter size when you filter the conservation equations. The error is generally not negligible. It was shown (Guerts and co-workers, take a look at what they published in Physics of Fluids in 2005 on the commutation error) that the error becomes small if the change in the filter is slow and its skew is limited, but this is surely not the case if the mesh anomalies can cause numerical problems.
In addition, there is quite some interest around commutative filters and other approches to account for the commutation error. You might be interested in reading, for example, the work of
  • Marsden et al, Journal of Computational Physics, 2002 (Commutative filters on unstructured grids)
  • Iovieno and Tordella, Physics of Fluid, 2003 (Incorporation of filter-dependent terms in the conservation equations)
  • Geurts and co-workers, Physics of Fluids, 2005
  • Piomelli et al., Stanford CTR Proceedings Summer 2006
Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 7, 2010, 16:12
Default LES turbulent inlet
  #12
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Hey there Eugene. I have a question that has being on-going for a short while. My research entails feeding the mean velocity and temperature profile into the lower portion of a plate (turbulent natural convection flow). So, to accurately predict the turbulent flow field downstream, what is the best approach to take in setting the turbulent inlet. I have considered superimposing some perturbations at the inlet and also remapping the flow field downstream back into the inlet. So any thoughts on this? Thanks.
And, I have not found any literature on how to set these turbulent boundaries in openFOAM. Is there any documentation or example in the code? Thanks.
Kind regards
Deji
deji is offline   Reply With Quote

Old   May 10, 2010, 05:48
Default
  #13
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Hi Deji,

The only implementation available in the standard code for LES inlets is the directMapped boundary for looping stuff back onto the inlet.

You can find an example case here:
$FOAM_TUTORIALS/iincompressible/pisoFoam/pitzDailyDirectMapped

You could of course also write your own boundary with perturbation specifications.
For a reference, search for papers by Gavin Tabor. (There are others as well, if you don't mind digging in the forum and online.)
fumiya and hua1015 like this.
eugene is offline   Reply With Quote

Old   May 10, 2010, 10:42
Default
  #14
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Thank you very much Eugene.
deji is offline   Reply With Quote

Old   May 24, 2010, 11:12
Default Inlet velocity profile
  #15
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Hey there Eugene, I have a question. I am trying to implement the directmapped inlet for my LES simulation, and I happen to have my non-uniform velocity and temperature profiles at the inlet. I am unsure as to how to prescribe the average profile on the line I have marked on the posted sample velocity inlet profile. If possible , kindly give me some input on this matter. Thanks much.

inlet
{
type directMapped;
value nonuniform
2
(
(0 0 .15)
(0 0 .12)
);
setAverage true;
average ( ); <---------- ??
}
deji is offline   Reply With Quote

Old   May 24, 2010, 12:42
Default
  #16
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Its not an average profile, its an average value.

average (<x y z>);

for velocity and other vectors.

average <x>;

for temperature and other scalars.
eugene is offline   Reply With Quote

Old   May 24, 2010, 13:48
Default
  #17
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Thanks for the response Eugene. Hence, to clarify, for each vector that I prescribe at the inlet, there should be an average (<x y z>) when utilizing the directmapped inlet bc. For example,

inlet
{
type directMapped;
value nonuniform
2
(
(0 0 .15)
(0 0 .12)
);
setAverage true;
average
( <x y z> )
( <x y z> );

}

Thanks
deji is offline   Reply With Quote

Old   May 27, 2010, 06:22
Default
  #18
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Unfortunately, what you want is not possible without code alteration. I checked the directMapped source code and it only admits a single value. This value fixes the mapped field average at every single timestep - i.e. the average is constant in time.

You are trying to impose a mean distribution, should not the shape of the distribution emerge from the flow calculation itself? It should not be too difficult to add an "average" field distribution, but I have no idea how you would use this to force your time-mean input field (instead of you instantaneous field) toward the desired value.
eugene is offline   Reply With Quote

Old   May 27, 2010, 09:44
Default
  #19
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Unfortunately, what you want is not possible without code alteration. I checked the directMapped source code and it only admits a single value. This value fixes the mapped field average at every single timestep - i.e. the average is constant in time.

You are trying to impose a mean distribution, should not the shape of the distribution emerge from the flow calculation itself? It should not be too difficult to add an "average" field distribution, but I have no idea how you would use this to force your time-mean input field (instead of you instantaneous field) toward the desired value.

Eugene,
With the directMapped code, I assume it feeds the instantaneous field back into the inlet. So, I gather it would be more feasible to use the instantaneous field rather than some mean distribution.

And it seems that the use of the single average value is only for a uniform inlet? I did take a look at your thesis work as you utilized this capability for the diffuser's inlet. In my research, there was a free convection experiment along a vertical plate and at some point the flow became turbulent. So, I am basically taking data at the inception of turbulence for the experiment and using it for my CFD calculation.

Thanks.

Best regards
Deji
deji is offline   Reply With Quote

Old   May 27, 2010, 14:49
Default
  #20
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Hey there Eugene. I thought about this and the fact is I would rather have the instantaneous profiles at the inlet instead of the mean quantities. Mean profiles are utilized since that is all I have at that particular location of the start of a turb. b.L. Perhaps, the directMapped code should be suitable for my computation. The only thing that I am still somewhat confused by is the average quantity.

Kind regards
Deji
deji is offline   Reply With Quote

Reply

Tags
les, pisofoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LES of turbulent channel flows cedric_duprat OpenFOAM Running, Solving & CFD 220 November 18, 2019 05:19
Serious bug in LES interface fs82 OpenFOAM Bugs 21 November 16, 2009 09:15
Implementing a new LES Model in OpenFoam fs82 OpenFOAM 6 October 13, 2009 10:58
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56
LES at OpenFOAM Workshop grtabor OpenFOAM Running, Solving & CFD 0 March 25, 2008 05:36


All times are GMT -4. The time now is 01:24.