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

dynamicSmagorinsky doesn't work when I load multiple libraries in controlDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2021, 23:05
Default dynamicSmagorinsky doesn't work when I load multiple libraries in controlDict
  #1
New Member
 
Yi Wang
Join Date: Mar 2019
Location: Shenzhen, China
Posts: 4
Rep Power: 7
wangy11756010 is on a distinguished road
The dynamicSmagrinsky code is downloaded from Github (https://github.com/AlbertoPa/dynamicSmagorinsky) and it works when I run the test case. But when I want to use this model in my own case, I have met some problems. In controlDict file, I add these shared library files complied in FOAM_USER_LIBBIN as shown below.


libs
(
"libScaledMappedVelocityBCDelta.so"
"libOpenFOAM.so"
"libdynamicSmagorinskyModel.so"
);


When I run my simulation, I got these errors:


From void *Foam::dlLibraryTable:penLibrary(const Foam::fileName &, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "libdynamicSmagorinskyModel.so"
libdynamicSmagorinskyModel.so: cannot open shared object file: No such file or directory

But I ensure that the library is complied smoothly and I can run the test case. I think the reason is that I include two irrelavant library files simultaneously ("libScaledMappedVelocityBCDelta.so" and "libdynamicSmagorinskyModel.so"), maybe there are conflicts between them. Can anyone suggeet how can I resolve this problem?

Thanks in advance.
wangy11756010 is offline   Reply With Quote

Old   August 29, 2023, 13:01
Default
  #2
Senior Member
 
alainislas's Avatar
 
Alain Islas
Join Date: Nov 2019
Location: Mexico
Posts: 142
Rep Power: 7
alainislas is on a distinguished road
Did you find a solution? I'm facing the same trouble. I'm using OpenFOAM v8
alainislas is offline   Reply With Quote

Old   August 29, 2023, 13:46
Default
  #3
Senior Member
 
alainislas's Avatar
 
Alain Islas
Join Date: Nov 2019
Location: Mexico
Posts: 142
Rep Power: 7
alainislas is on a distinguished road
This is from the OpenFOAM user guide (CFD direct), but it doesn't work. I believe it only reads my 1st library
Attached Images
File Type: jpg Capture.jpg (106.0 KB, 20 views)
alainislas is offline   Reply With Quote

Reply

Tags
complilation, les model, openfoam-v2012


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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 05:01
Loading Libraries (e.g. new boundary conditions) Stored Locally in ControlDict dancfd OpenFOAM Running, Solving & CFD 3 May 15, 2022 14:53
First order in fvSchemes does not seem to work gerritgroot OpenFOAM Running, Solving & CFD 0 September 30, 2015 21:06
Are OSIG TurboMachinery libraries able to work under OpenFOAM-1.6-ext? alkochevsky OpenFOAM Installation 26 June 8, 2014 16:22
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45


All times are GMT -4. The time now is 04:47.