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

wallShearStress function - OpenFOAM 9 - Error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Severus

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2024, 10:57
Default wallShearStress function - OpenFOAM 9 - Error
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
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
Attached Files
File Type: zip functionObjects.zip (5.3 KB, 3 views)
gu1 is offline   Reply With Quote

Old   October 22, 2024, 06:45
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9
Severus is on a distinguished road
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
gu1 likes this.
Severus is offline   Reply With Quote

Reply


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
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


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