|
[Sponsors] |
December 30, 2018, 05:04 |
how to link a new transport model
|
#1 |
New Member
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8 |
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? |
|
December 30, 2018, 20:53 |
|
#2 |
Member
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11 |
add the library file in your FOAM_USER_LIBBIN directory :
cp liblibusertempdepppowerLaw.so $FOAM_USER_LIBBIN/. |
|
December 30, 2018, 21:11 |
|
#3 |
New Member
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8 |
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" |
|
December 30, 2018, 21:13 |
|
#4 |
New Member
Jiahui Liu
Join Date: Dec 2018
Posts: 5
Rep Power: 8 |
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 |
|
|
|
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 |