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

Problems with IDDES in openfoam2.1.1

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree7Likes
  • 2 Post By wyldckat
  • 2 Post By wyldckat
  • 1 Post By wyldckat
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2013, 05:40
Default Problems with IDDES in openfoam2.1.1
  #1
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 5
Joanna Huang is on a distinguished road
Dear Foamers:
I am now trying to use IDDES to simulate the aerodynamic performance of high-speed train, but i got the errors shows below:

request for RASModel RASProperties from objectRegistry region0 failed
available objects of type RASModel are
0
(
)

Can any one help me with with.
Joanna Huang is offline   Reply With Quote

Old   April 26, 2013, 20:25
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Joanna Huang,

It would help if you could describe the steps you've taken to reach that error message.

From what I can figure out, there is an "IDDESDelta" class in OpenFOAM's source code at "src/turbulenceModels/incompressible/LES/SpalartAllmarasIDDES/IDDESDelta/", which is part of the incompressible LES turbulence library. The error you're getting is referring to the RAS model... so I can only guess that you'll need to switch to the LES model instead.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 29, 2013, 05:13
Default
  #3
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 5
Joanna Huang is on a distinguished road
Hi Bruno,
Thank you for your answer. So for IDDES simulation, I don't need RASProperties file in constant directory, the IDDES LES turbulence modle will activate RASmodel automaticlly to sovle the near wall region. Am I right?

Best Regards,
Joanna
Joanna Huang is offline   Reply With Quote

Old   April 29, 2013, 17:46
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Joanna,

You can only use LES or RAS, not both at the same time... or at least I don't think so.

Have a look at the tutorial "incompressible/pisoFoam/les/pitzDaily" to see how to set-up a case to simulate with LES.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 30, 2013, 05:55
Default
  #5
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 5
Joanna Huang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Joanna,

You can only use LES or RAS, not both at the same time... or at least I don't think so.

Have a look at the tutorial "incompressible/pisoFoam/les/pitzDaily" to see how to set-up a case to simulate with LES.

Best regards,
Bruno
Hi Bruno,
Thank you for your kindly answering. I am a little confused, the IDDES is a hybrid mehod of RANS and LES, how can I control it and separate it. Below I attach the Case I am doing(contains the 0,constant,system), Can you kindly tell me what is the problem. Thank you so much.
Attached Files
File Type: zip case.zip (4.1 KB, 41 views)
Joanna Huang is offline   Reply With Quote

Old   May 1, 2013, 05:00
Default Problems with IDDES in openfoam2.1.1
  #6
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 5
Joanna Huang is on a distinguished road
Dear Foamers:
I am now trying to use IDDES to simulate the aerodynamic performance of high-speed train, but i got the error showed below:

request for RASModel RASProperties from objectRegistry region0 failed
available objects of type RASModel are
0
(
)

Is anyone familar with this error, Can anyone help me with this.
Below I attach the file case(0, constant, sysytem),it will be really greatful if somebody could figue this out.

Best regards,
Joanna
Attached Files
File Type: zip case.zip (12.0 KB, 37 views)
Joanna Huang is offline   Reply With Quote

Old   May 1, 2013, 07:01
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Joanna,

I've moved the other thread into this new thread you created, so that the whole story was easily readable by others.

OK, I've given it a try and here's what I've managed to figure out:
  1. Just for reference, there is a thread on the topic of RANS and LES: LES vs RANS
  2. It looks like the "SpalartAllmaras" model is present on both the RAS and LES side.
  3. But "SpalartAllmarasDDES" and "SpalartAllmarasIDDES" are only present on the LES side. This is possibly because the OpenFOAM authors did not have yet a request to make these two models work on the RAS side.
  4. You can look at the source code in the following folders and try to implement the "SpalartAllmarasIDDES" model for the RAS side; run in the terminal the following commands, to see where the "SpalartAllmaras" models are located:
    Code:
    echo $FOAM_SRC/turbulenceModels/incompressible/RAS/SpalartAllmaras
    echo $FOAM_SRC/turbulenceModels/incompressible/LES/SpalartAllmaras
    The IDDES one can found by running:
    Code:
    echo $FOAM_SRC/turbulenceModels/incompressible/LES/SpalartAllmarasIDDES
  5. Nonetheless, if the case can be executed with LES, I've changed inside the file "constant/LESProperties" the following entry:
    Code:
    SpalartAllmarasIDDESCoeffs
    {
         delta  IDDESDelta;
    
         IDDESDeltaCoeffs
         {
             deltaCoeff       1;
    
             //according to src/turbulenceModels/incompressible/LES/SpalartAllmarasIDDES/IDDESDelta/IDDESDelta.C
             cw               0.15;
         }
    
         alphaNut         1.5;
         kappa            0.4187;
         Cb1              0.1355;
         Cb2              0.622;
         Cw2              0.3;
         Cw3              2.0;
         Cv1              7.1;
         Cv2              5.0;
         CDES             0.65;
         ck               0.07;
    
    //These are the default values
    //     sigmaNut        0.66666;
    //     kappa           0.41;
    //     Cb1             0.1355;
    //     Cb2             0.622;
    //     Cv1             7.1;
    //     Cv2             5;
    //     CDES            0.65;
    //     ck              0.07;
    //     Cw2             0.3;
    //     Cw3             2;
    //     fwStar          0.424;
    //     cl              3.55;
    //     ct              1.63;
    
    }
    The only difference is that I added the references to the default values that OpenFOAM uses.
Best regards,
Bruno
Alhasan and slint like this.
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 08:52
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Joanna,

I've found out a couple more helpful details:
  1. It looks like the DES and IDDES models are on the LES side, but it might look like they can work on both LES and RAS, simply by using them on the LES side.
  2. There is someone else also working with DES, but that forum member is using OpenFOAM 2.2: How to use DESModelRegions function object - instructions are provided there that help get the indication of how much is LES and RAS being used!
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 12:03
Default
  #9
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 5
Joanna Huang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Joanna,

I've found out a couple more helpful details:
  1. It looks like the DES and IDDES models are on the LES side, but it might look like they can work on both LES and RAS, simply by using them on the LES side.
  2. There is someone else also working with DES, but that forum member is using OpenFOAM 2.2: How to use DESModelRegions function object - instructions are provided there that help get the indication of how much is LES and RAS being used!
Best regards,
Bruno

Hi, Bruno
Yes, the IDDES should work both LES and RAS side, but I still didn't figue out how this error happens:

request for RASModel RASProperties from objectRegistry region0 failed
available objects of type RASModel are
0
(
)

it seems the RAS can't be activated for IDDES. Have you checked my case, is anywhere I set in a wrong way?

Thank you for the information above, it also helpful

Best regard,
Joanna.
Joanna Huang is offline   Reply With Quote

Old   May 2, 2013, 15:12
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Joanna,

Quote:
Code:
request for RASModel RASProperties from objectRegistry region0 failed
available objects of type RASModel are
0
(
)
Which solver did you use?



Either way, I've now proven that the trick is to set-up things to work in LES mode, using in "constant/turbulenceProperties":
Code:
simulationType  LESModel;

turbulenceModel SpalartAllmarasIDDES; 

turbulence      on;
And in "constant/LESProperties" use:
Code:
LESModel            SpalartAllmarasIDDES;

delta               cubeRootVol;

printCoeffs         on;
I've used the solver pisoFoam, based on the latest case you attached. Attached to this post you can find 2 test cases:
  • "case.211.tar.gz" - The case is prepared to run with OpenFOAM 2.1.1.
  • "case.22x.tar.gz" - The case is prepared to run with OpenFOAM 2.2.x. The detail on this case is that it is using the "DESModelRegions" which gives valuable information about how much of the domain is running in RAS and how much in LES, as explained here: How to use DESModelRegions function object - post #2
Both cases can be executed by running the following commands:
Code:
blockMesh -dict constant/polyMeshOrg/blockMeshDict
pisoFoam
Or for running in parallel:
Code:
blockMesh -dict constant/polyMeshOrg/blockMeshDict
decomposePar

foamJob -p pisoFoam
Best regards,
Bruno
Attached Files
File Type: gz case.211.tar.gz (4.6 KB, 55 views)
File Type: gz case.22x.tar.gz (4.6 KB, 114 views)
cfdonline2mohsen and slint like this.
__________________
wyldckat is offline   Reply With Quote

Old   May 3, 2013, 05:05
Default
  #11
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 5
Joanna Huang is on a distinguished road
Hi Bruno,

Thank you so much for your usefule information, these really help me lots. I am now testing the case you posted (still queuing in the cluster), I hope it works.

Thanks again and have a nice weekend then.

Best regards.
Joanna
Joanna Huang is offline   Reply With Quote

Old   October 6, 2013, 15:53
Default
  #12
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 8
cfdonline2mohsen is on a distinguished road
Dear Bruno
Thank you for your helpful comments in this post and also in How to use DESModelRegions function object
I have a more fundamental question:
is the IDDES model that is implemented in OpenFOAM a low-Re or High-Re model?
I mean what is the best range of the first point Yplus for the walls?
can it be used with wall functions for High-Re problems?or it needs very fine mesh near the wall?
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   October 6, 2013, 16:40
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mohsen,

Prepare to be amazed as I do the simplest of tricks! I shall look at the source code! https://github.com/OpenFOAM/OpenFOAM...DESDelta.H#L28
Quote:
IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model)
The min and max delta are calculated using the double distance of the min or
max from the face centre to the cell centre.
"And how did you do this?" I hear you ask!
I went to the online code documentation: http://www.openfoam.org/docs/cpp/ - which is accessible from the main OpenFOAM web site - http://www.openfoam.org - I looked at the menu, the "Documentation" entry and flew my mouse cursor over it and it showed me the "C++ Source Guide". I clicked on it and it took me to the page I speak of.

From there, I searched for "IDDES" and so it gave me this page: http://foam.sourceforge.net/docs/cpp/a00881.html (actually because I accessed from http://foam.sourceforge.net/docs/cpp/ )


But since this link will be outdated as soon as another OpenFOAM release is made, I looked at the "Detailed Description" section on that page and there were links to the source code (which don't work very well). I then went to the online repository at https://github.com/OpenFOAM/OpenFOAM-2.2.x/ and did a bit of magic (copy-paste-adapted the link given before) et voilà, the answer is shown again at the link I gave at first

Best regards,
Bruno
cfdonline2mohsen likes this.
__________________
wyldckat is offline   Reply With Quote

Old   October 7, 2013, 04:37
Default
  #14
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 8
cfdonline2mohsen is on a distinguished road
Thanks Bruno
But ANSYS FLUENT 12.0 Theory Guide section 4.10 (which I quote here) Says :
Quote:
DES models have been specifically designed to address high Reynolds number wall bounded flows, where the cost of a near-wall resolving Large Eddy Simulation would be prohibitive. The difference with the LES model is that it relies only on the required resolution in the boundary layers.
or:
Quote:
The DES models, often referred to as the hybrid LES/RANS models combine RANS modeling with LES for applications such as high-Re external aerodynamics simulations. In ANSYS FLUENT, the DES model is based on the one-equation Spalart-Allmaras model, the realizable k- model, and the SST k-ω model.
Well, as you see ANSYS FLUENT has more options for DES. the realizable k-e model is a High-Re model which requires larger Y+ near the wall for using wall functions.
I think we do not have such options in OpenFOAM.
Please let me know if you find more about this matter.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   October 7, 2013, 16:02
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mohsen,

I did a quick search with Google and had another look into the code documentation and here is what I found:
  1. http://www.openfoam.com/features/turbulence.php
    Quote:
    Detached eddy simulation (DES): Hybrid method that treats near-wall regions with a RAS approach and the bulk flow with an LES approach. DES models are found in the list of LES models.
  2. http://www.openfoam.com/features/LES.php
    Quote:
    SpalartAllmarasDDES - Spalart-Allmaras delayed detached eddy simulation (DDES) model
    SpalartAllmarasIDDES - Spalart-Allmaras improved DDES (IDDES) model
  3. https://github.com/OpenFOAM/OpenFOAM...AllmarasDDES.H
    Quote:
    Code:
     SpalartAllmaras DDES LES turbulence model for incompressible flows
    
    Reference:
    P.R. Spalart, S. Deck, S., M.L.Shur, K.D. Squires, M.Kh Strelets, and
    A. Travin. `A new version of detached-eddy simulation, resistant to
    ambiguous grid densities'. Theor. Comp. Fluid Dyn., 20:181-195, 2006.
  4. https://github.com/OpenFOAM/OpenFOAM...llmarasIDDES.H
    Quote:
    Code:
    SpalartAllmarasIDDES LES turbulence model for incompressible flows
For more information I suggest that you ask the people at OpenCFD directly, through their support page.

Best regards,
Bruno
cfdonline2mohsen and sfmoabdu like this.
__________________
wyldckat is offline   Reply With Quote

Old   October 7, 2013, 16:43
Default
  #16
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 8
cfdonline2mohsen is on a distinguished road
Thank you so much Bruno
Yeah, I've seen the sources of DDES & IDDES in OpenFOAM.
O.K. I will contact them.
Thanks
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   October 11, 2013, 18:03
Default
  #17
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mohsen,

Please do share the answer with us, if you get one from them!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 7, 2015, 15:51
Default
  #18
New Member
 
Alvin TS
Join Date: Oct 2013
Posts: 17
Rep Power: 4
alvinsim2013 is on a distinguished road
Quote:
Originally Posted by cfdonline2mohsen View Post
Dear Bruno
Thank you for your helpful comments in this post and also in How to use DESModelRegions function object
I have a more fundamental question:
is the IDDES model that is implemented in OpenFOAM a low-Re or High-Re model?
I mean what is the best range of the first point Yplus for the walls?
can it be used with wall functions for High-Re problems?or it needs very fine mesh near the wall?
Hi, I have some questions about SA - DDES model. Since your question is on SA IDDES which is somewhat related to mine, I feel it is quite close to the question that I wanted to ask.

My question is : Is the SA - DDES model implemented in OpenFoam 2.1.x a low-Re or high-Re model? what is the best range of the first point Yplus for the walls?
can it be used with wall functions for High-Re problems?or it needs very fine mesh near the wall?
alvinsim2013 is offline   Reply With Quote

Old   January 11, 2015, 16:21
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Alvin,

From what I can see, it's for High Reynolds:
As mentioned in post #13, only IDDES seems to be applicable to low-Reynolds.


As for the other questions, I don't know. But I do believe that you could try running a few simulations to diagnose this.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 3, 2015, 13:45
Default LES volume less than RAS volume IDDES case
  #20
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 196
Rep Power: 6
Alhasan is on a distinguished road
Dear All,

I am trying to run a IDDES simulation, well it seems to be running without any issues but the only problem I can find is the

Code:
# DES model region coverage (% volume)
# time     LES    RAS
0.353574    8.77114    91.2289
0.353578    8.76998    91.23
0.353581    8.76933    91.2307
0.353585    8.7692    91.2308
0.353589    8.76834    91.2317
0.353593    8.76737    91.2326
0.353596    8.76641    91.2336
That LES percentage is so less compared to the RANS, how can I resolve this issue ? any ideas ?

- I ran a URANS simulation and used one of the very well last converged time step to start this simulation !!! say 0.3576 time step

Would it be starting the simulation with the first time step of URANS making it more of a RANS simulation or something ?

What could be happening here, from what I know the RANS is suposed to be only close to the walls of the simulation and not the entire domain for IDDES,

This is my first IDDES simulation so please explain well,

Thanks for your time and effort,

Edit:
If the post here hasnt given enough information, I have also posted a similar question here Anyone using IDDES

Kind Regards,
Hasan K.J
__________________
"Real knowledge is to know the extent of one's ignorance." - Confucius

Last edited by Alhasan; December 15, 2015 at 14:40.
Alhasan is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 03:45
[ICEM] Flow channel meshing problems StefanG ANSYS Meshing & Geometry 19 May 15, 2012 06:44
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 0 August 5, 2011 16:02
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 06:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00


All times are GMT -4. The time now is 06:49.