turbulentDFSEMInlet boundary condition for LES
Hi all,
For LES it is suggested that the DFSEM (Divergence-free synthetic eddy method) should be used as the boundary condition at the inlet. After google it, I found that it is available starting from OpenFOAM1606 (the one downloaded from www.openfoam.com). Check this link for example, https://www.openfoam.com/releases/op...conditions.php. However, it seems like this BC is not supported in OpenFOAM downloaded from www.openfoam.org, even for the latest version OpenFOAM 6.0. I also tried to copy the source and header files from the .com one to the .org one and then compile the BC (after some minor cleaning of the code of course), but got error messages like this Code:
In file included from lnInclude/eddy.H:253:0, Thank you in advance. |
It seems that the random number used in eddy.H ("cachedRandom.H") is not implemented in the openfoam.org version.
|
Hi mAlletto,
Thank you for your input, and you are absolutely right. The random number class used in the .org version and .com version have different member functions, and the .org one has a couple of more member functions. Initially I was going to modify the random number class in the .org version (I mainly work on this one) according to the .com one, but soon found out that the coding will need substantial efforts instead of minor changes. As for now my plan is to implement my own turbulentDFSEMInlet boundary condition (in a much simplified way, if I can) in the .org version. I still have questions about why the .org version doesn't implement this type of boundary condition, is the code not running very well or not good enough? Or I simply missed it in the .org version? Thank you again for reading my post. Ruiyan |
Actually I have no idea why this boundary condition is not implemented in the .org version.
But maybe if you are able to get a version which is running also in the .org version you can try to submit it and look if it is accepted :) |
I will definitely try that and see how it goes.
|
Having a first look on the DFSE method in the .com version I saw that the two base classes from which the boundary condition is derived from are also present in the .org version.
So i would guess it is not to complicated to take the sources of the .com version and try to compile it with the .org version. After that one has to check if the two base classes are implemented in the same way. If this is the case one has to check if the header files included in the .com version are present in the .org version. If not as a first step i would put them together in a subfolder and link against to them. After that try to compile it. If you proceed in this way and post the errors you get maybe i can help you out. |
Sounds great! I'll work on it and get back to you.
|
Hi Alletto,
Just want to get back to you on the discussions we had before. After trying to compile the DFSEM B.C. in the .org version of OF for a while I found it being very hard for me. Instead, I searched through this forum and found a similar B.C.-the inflowGenerator developed at Rostock. Right now I've been testing this B.C. for a while and it works well. I think these two B.C. both adopt the idea of synthetic eddies. The DFSEM is divergence free but the inflowGenerator may be not. Thanks. Ruiyan |
I think the method of the guys of Rostock is divergence free. I die not check the equations implemented in the github code but they pubished a divergencefree Methode a while ago
https://www.researchgate.net/publica...vortex_dipoles It is however only made for isotropic turbulence. A Mord general method is published but not availabel online (at least what I could Figuren out) https://www.researchgate.net/publica...ary_Anisotropy |
Thank you for the information Michael, I will definitely check these out!
|
A by the way, did you compile the github version of the inflow generator with a newer OF version of the 2.4?
|
Sorry Michael for the late response.
I am using OF-4.x, and I compiled the inflow generator in LEMOS-2.4.x, which you can find here: https://github.com/LEMOS-Rostock/LEMOS-2.4.x. It is in folder LEMOS-2.4.x/libLEMOS-2.4.x/boundaryConditions/inflowGenerator/ Cheers, Ruiyan |
Quote:
|
Quote:
Could you please tell me, how to use this? in U, "decayingTurbulenceInfowGenerator", not found among BCs,Do I have to create my own dummy solver with links to the newly compiled libray? I tried running pimpleFoam, it did not work |
Quote:
Hi I've made it compilable in OpenFOAM-7. Here is my code and reference case: https://github.com/ZhangYanTJU/boundaryConditions |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 07:26. |