How to use DESModelRegions function object
Hi! I'm doing some DES simulations, and I would like to see which parts of my flow field are in RANS mode and which are in LES mode. I see the new OF release (2.2.0) introduced a new function object called DESModelRegions, which outputs this data. The thing is, I don't know which lines to put in the controlDict in order to activate this object, and which library to load.
Have any of you used this function object before, and do you know which libs to load etc? best regards, Håkon Line |
Greetings Håkon,
Without an example case, I can't test any further than the following instructions:
edit: I do have an example case now and is used here: http://www.cfd-online.com/Forums/ope...tml#post424797 - post #10 Best regards, Bruno |
It works perfectly, thanks! Now I've learned the general syntax for function objects as well. =)
|
Dear Foamers,
can you help me to use 'DESModelRegions' with OF30X? I fear, it is not implemented in OF30X. But how could you determine the RANS content of a DES? Using an older version (like OF231) for postprocessing does not work, 'cos the constant/turbulenceProperties-file changed since this version. Even this thread HTML Code:
http://www.cfd-online.com/Forums/openfoam-solving/104123-les-content-detached-eddy-simulation-openfoam.html I would be happy to hear your ideas! Regards, Peter EDIT: According to a hint I installed OpenFOAM-v1606+ from openfoam.com and this perfectly works for postprocessing cases simulated with OF301 :-) |
Quote:
I am also trying to find my LES and RANS regions for my DES simulations. Can you guide me how you used 1606+ to find those regions. Thanks |
Sure, inside
system/controlDict.functions you need to add Code:
functions Code:
execFlowFunctionObjects -time 0.4 | tee log.desField Good luck! |
Quote:
|
Hmmm, I installed v1606+ but it says "execFlowFunctionObjects: command not found".
My OpenFOAM 2.4.0 installation can be used for "execFlowFunctionObjects" but for this the folder and file structure has changed too much since, so it doesn't work. Anything I am missing here? |
Quote:
Or maybe you had OpenFOAM 4.0 or 4.1 active in your shell? Because it was replaced by in 4.0 by postProcess, along with (almost) all solvers having their one "-postProcess" argument as well. |
Thanks for the quick reply. I think something went wrong with the installation. Will try again :)
edit: So, you were right. Not everything was installed during the 1606+ installation. I was able to run wmake for the execFlowFunctionObjects myself and now it is working :) |
Dear Foamer,
I have done IDDES simulation in OpenFoam 5x. But when I try to use DESModelRegions function for post-processing in OpenFoam 5x. It is not recognised. Anyone can help me to find the region that used RANS and LES using OpenFOAM 5x? Thank you. |
Quick answer: https://bugs.openfoam.org/view.php?id=2763
|
Quote:
Is there any other function that can differentiate between RANS and LES region? |
Greetings hanis_rda,
I was curious about this and was inspired to work on this. I've managed to create the function object for OpenFOAM 5 and 6, but I have not fully tested it. The repository is provided here: https://github.com/wyldckat/DESModelRegions And you can find download and build instructions on that page as well. Please report back here if this works or not and with which OpenFOAM version it worked and with which DES-type turbulence model! Best regards, Bruno |
Quote:
Thank you very much for your help. I run for IDDES turbulence model in OpenFOAM5x. But I got this error message: Code:
|
Quick answer: Sorry about that, I forgot to properly re-test after adapting the missing features that were in the original function object.
I've now fixed it and is available at the repository. To update your build:
|
Now it is running for IDDES simulation in OpenFOAM5x. Thank you very much.
# DES model region coverage (% volume) # Time LES RAS 1.4001 5.134440e+01 4.865560e+01 1.4002 5.134438e+01 4.865562e+01 1.4003 5.134434e+01 4.865566e+01 |
Receiving error: Attempt to cast type cubeRootVol to type IDDESDelta
Hello, I am trying to run a SpalartAllmarasIDDES simulation in OpenFoam v5.0. However, I receive the error "Attempt to cast type cubeRootVol to type IDDESDelta". Since you were able to successfully run IDDES in v5, please could you provide some assistance. cubeRootVol is the delta notation in my LESProperties file.
This is how my LESProperties file looks: Code:
simulationType LES; Many thanks. Quote:
|
Quote:
I have changed all 'cubeRootVol' to 'IDDESDelta' in my LESProperties. Hope it will help you. |
Thank you very much, Hanis. This worked!! Many thanks & best wishes.
Quote:
|
Quote:
Thank you for that hint. I did a simulation with interfoam and now get the following error after executing "execFlowFunctionObjects -time 1.5 | tee log.desField": Code:
Create time Code:
phases (water air); Thanks a lot! |
Quick question @ch_jaehnel: Which OpenFOAM version are you using?
|
Quote:
Sorry forgot to mention: I use OF 2.3.1 I have also acces to OF5.0, the result is the same. |
Quote:
Is there any way to make this code work for the k-Omega SST DES model? I got this error when I used it for k-Omega SST DES : "No DES turbulence model found in database" |
Quick answers:
@ch_jaehnel: Sorry for the very late reply: Quote:
With OpenFOAM 5, use the "-postProcess" option with the solver, which will load in the necessary properties and fields. See the User Guide for more details. ---------- @saiguruprasad: Quote:
|
Quick question: What is the exact line you used to define the turbulence model in the file "turbulenceProperties"?
|
Code:
|
Quick answer @saiguruprasad: Many thanks for all of the details, because I'm not very familiar with DES and how it's implemented.
After taking a better look, I roughly remembered things and then noticed what I wrote back when I created the repository and I quote: https://github.com/wyldckat/DESModel...#how-to-use-it Quote:
In more detail, with the SpalartAllmarasDES models, the calculation of the model regions field is calculated as indicated here: https://cpp.openfoam.org/v5/SpalartA...ce.html#l00379 But the problem is that it's not clear how it should be calculated for "kOmegaSSTDES", not even back in OpenFOAM 2.3. If you do some research on the topic and figure out how it should be calculated, we can then work on implementing that calculation. |
DESModelRegions Usage
1 Attachment(s)
Quote:
Firstly thanks a lot for providing this utility for OF 5. I want to test this function in a tutorial case pitzDaily using SpalartAllmarasDES model. But the results show that Code:
DESModelRegions desField write: I attached my case here. Could you help me to test it? Thanks! |
Quick answer:
Quote:
If you downloaded the ZIP file, then please do another download and build again, because I have committed the bug fix just now. If you downloaded using Git, then go into the folder where you've placed the "DESModelRegions" source code and run: Code:
git pull |
Thanks a lot!
It works fine now. |
Implementation for kwSST-DES
Quote:
Thanks again for this contribution, Carlos |
Quick answer:
|
All times are GMT -4. The time now is 16:43. |