|
[Sponsors] |
wallShearStress function - OpenFOAM 9 - Error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2024, 10:57 |
wallShearStress function - OpenFOAM 9 - Error
|
#1 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hi,
I was able to successfully compile wallShearStress for multiphase (multiphaseEulerFoam) in OpenFOAM 9, simply by looking at the code from version 11 and adapting it. It worked. I was able to compile. However, I have been getting the error "Unable to find turbulence model in the database". This tool could help the community, it's nothing major, but I can't understand this error on my own. The function for compilation is attached. Thanks |
|
October 22, 2024, 06:45 |
|
#2 |
Member
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9 |
Hello,
I am not entirely sure of the why you get this error. I can try to point out the issues, which I think the source of the error could be. From your error I understand that the solver cannot find the multiphase turbulence model and it cannot read it. The important point to note here is that the turbulence models used in Euler-Euler solvers are different when compared to the single phase turbulence models Check here: https://cpp.openfoam.org/v9/dir_d104...0cb84c48f.html When you use multiphaseEulerFoam, you use the phaseCompressible models in the above link. In the functionObject code from v12, it is clear that the lookup fails - see lines 191-212 https://cpp.openfoam.org/v12/wallShe...8C_source.html So, I think there could be something wrong with the header files and inherited classes. See how the phaseCompressible momentum transport models are inherited in the header files you add and try to understand what differs there between v9 and v12. If possible also try to go through the commits on git. My other suggestion is to see the code of another functionObject in v9, which uses multiphase turbulence models. Examples of these would be the scalarTransport or the phaseScalarTransport functionObject. Here, see the header files that are included and try to find out why the multiphase turbulence models work there but not in your case where the lookup for turbulence models gives an error. Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error compiling modified applications | yvyan | OpenFOAM Programming & Development | 21 | March 1, 2016 05:53 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |