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

Cannot Load Custom Turbulence Model

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 2, 2014, 17:28
Default Cannot Load Custom Turbulence Model
  #1
Member
 
Eric R
Join Date: Jul 2012
Location: Mississippi State University
Posts: 73
Rep Power: 4
msuaeronautics is on a distinguished road
I have implemented a custom LES model for OpenFOAM 2.0.0 and have successfully compiled it. However, the terminal reports that it cannot read the .so file associated with it.

Quote:
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libmyIncompressibleLESModels.so"
The solver also reports "unknown LESModel type," certainly as it cannot seem to read the custom file.

How can it not recognize the file when there were no compilation errors?
msuaeronautics is offline   Reply With Quote

Old   February 3, 2014, 01:37
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,593
Rep Power: 24
ngj will become famous soon enoughngj will become famous soon enough
Hi Eric,

1. How do you try to load the additional library?
2. Are you sure that it is in a location that OpenFoam knows?

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   February 3, 2014, 01:43
Default
  #3
Member
 
Eric R
Join Date: Jul 2012
Location: Mississippi State University
Posts: 73
Rep Power: 4
msuaeronautics is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Eric,

1. How do you try to load the additional library?
2. Are you sure that it is in a location that OpenFoam knows?

Kind regards,

Niels
Hi,

I compiled using wmake, which created the library in my $FOAM_USER_LIBBIN path. I load it with the appropriate controlDict entry. It is worth noting that I have done the same with custom RANS models with no issue, which means OF recognizes this path. This seems to be an issue with custom LES models and I wonder if this is a bug.
msuaeronautics is offline   Reply With Quote

Old   February 3, 2014, 02:22
Default
  #4
Member
 
Eric R
Join Date: Jul 2012
Location: Mississippi State University
Posts: 73
Rep Power: 4
msuaeronautics is on a distinguished road
I might also mention that I am "linking" two LES models (much like the "mixedSmagorinsky" model uses scaleSimilarity and Smagorinsky) in order to develop this custom model. Would that be adding difficulty to the compilation?

Example:

Quote:
class mixedSmagorinsky
:
public scaleSimilarity,
public Smagorinsky

{
//Member functions etc
}
msuaeronautics is offline   Reply With Quote

Old   February 5, 2014, 16:55
Default
  #5
Member
 
Eric R
Join Date: Jul 2012
Location: Mississippi State University
Posts: 73
Rep Power: 4
msuaeronautics is on a distinguished road
To provide closure for this thread, I had an error in the header file that the compiler didn't throw.
msuaeronautics 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
SimpleFoam case with SpalartAllmaras turbulence model implemented nedved OpenFOAM Running, Solving & CFD 2 November 30, 2014 23:43
turbulence model for Refrigerator cicatrix Main CFD Forum 0 October 3, 2012 01:47
Wrong calculation of nut in the kOmegaSST turbulence model FelixL OpenFOAM Bugs 27 March 27, 2012 09:02
Low Reynolds k-epsilon model YJZ ANSYS 1 August 20, 2010 13:57
KOmega Turbulence model from wwwopenFOAMWikinet philippose OpenFOAM Running, Solving & CFD 30 August 4, 2010 10:26


All times are GMT -4. The time now is 07:57.