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

how to link a new transport model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2018, 05:04
Default how to link a new transport model
  #1
New Member
 
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8
huie is on a distinguished road
I defined a new viscosity model,after wmake, I get liblibusertempdepppowerLaw.so,now I want add this model while using interfacesolver



to use the new model,in a case I did this in the controldict
maxCo 1;
maxAlphaCo 1;

maxDeltaT 1;
libs
(
"liblibusertempdeppowerLaw.so"
);
// ************************************************** *********************** //

after setfields,my computer told me like this

dlopen error : liblibusertempdeppowerLaw.so: cannot open shared object file: No such file or directory
what should I do to link the new viscosity model to the case?
huie is offline   Reply With Quote

Old   December 30, 2018, 20:53
Default
  #2
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
add the library file in your FOAM_USER_LIBBIN directory :


cp liblibusertempdepppowerLaw.so $FOAM_USER_LIBBIN/.
cyss38 is offline   Reply With Quote

Old   December 30, 2018, 21:11
Default
  #3
New Member
 
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8
huie is on a distinguished road
I did as you told,then another mistake happened,whta's wrong?


dlopen error : /home/huie/OpenFOAM/huie-6/platforms/linux64GccDPInt32Opt/libusertempdeppowerLaw.so: undefined symbol: _ZN4Foam14viscosityModel30dictionaryConstructorTab lePtr_E
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 105
could not load "/home/huie/OpenFOAM/huie-6/platforms/linux64GccDPInt32Opt/libusertempdeppowerLaw.so"
huie is offline   Reply With Quote

Old   December 30, 2018, 21:13
Default
  #4
New Member
 
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8
huie is on a distinguished road
I did as you told me ,then another mistake happened,whta's wrong?
FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1234
dlopen error : /home/huie/OpenFOAM/huie-6/platforms/linux64GccDPInt32Opt/libusertempdeppowerLaw.so: undefined symbol: _ZN4Foam14viscosityModel30dictionaryConstructorTab lePtr_E
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 105
could not load "/home/huie/OpenFOAM/huie-6/platforms/linux64GccDPInt32Opt/libusertempdeppowerLaw.so"
Create mesh for time = 0
huie 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
Species Transport model sbkashif Main CFD Forum 4 September 4, 2015 12:21
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
question about composition PDF transport model lisa_china FLUENT 3 November 23, 2014 20:59
DPM vs Species transport model osh FLUENT 0 August 19, 2005 23:15
About Composition PDF Transport Model cfdfans FLUENT 0 October 25, 2004 07:00


All times are GMT -4. The time now is 21:26.