CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   how to link a new transport model (https://www.cfd-online.com/Forums/openfoam/213513-how-link-new-transport-model.html)

huie December 30, 2018 04:04

how to link a new transport model
 
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?

cyss38 December 30, 2018 19:53

add the library file in your FOAM_USER_LIBBIN directory :


cp liblibusertempdepppowerLaw.so $FOAM_USER_LIBBIN/.

huie December 30, 2018 20:11

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::open(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 December 30, 2018 20:13

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::open(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


All times are GMT -4. The time now is 03:27.