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? |
add the library file in your FOAM_USER_LIBBIN directory :
cp liblibusertempdepppowerLaw.so $FOAM_USER_LIBBIN/. |
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" |
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. |