Ok, I have already read the ma
Ok, I have already read the manual... ;-)
I am using OpenFOAM 1.4 in Linux (gcc 4.2.0).
I implemented my own finite volume surface interpolation schema and I created a lib called mylib (using the manual's instructions).
When I try rebuild libfoamUser to include mylib, it compiles without errors.
A file libmylib.so is created in the $FOAM_USER_LIBBIN directory.
Then I rebuild the foamUser lib (again, using the manual's instructions).
The problem is:
the resulting $FOAM_USER_LIBBIN/libfoamUser.so file is exactly equal the original file that existed before (in $FOAM_LIBBIN).
The diff command doesnt return any difference and
the ldd command does not "sees" mylib in the resulting libfoamUser file.
My mylib ./Make/files content:
LIB = $(FOAM_USER_LIBBIN)/libmylib
My foamUser ./Make/files file content:
LIB = $(FOAM_USER_LIBBIN)/libfoamUser
My foamUser ./Make/options file content:
LIB_LIBS = -L$(FOAM_USER_LIBBIN)
(Im using -L$(FOAM_USER_LIBBIN) because if I use -lmylib, it doesn find the library)
What am I doing wrong? It compiles without errors. (using wmake libso)
Is there any method i can use to verify if a solver is really using my interpolation schema ?
Thanks for your attention,
Problem solved: My foamUser
My foamUser ./Make/options file content was wrong.
It should be:
LIB_LIBS = -L$(FOAM_USER_LIBBIN) -lmylib
Hi, I cannot find the foamU
I cannot find the foamUser directory anywhere. I checked where the user manual says: src/foamUser.
I also checked on the OpenFoam website where it lists all the files, and it is not there.
I guess the directory may be c
I guess the directory may be changed.Try to get the new place by
I've tried searching with 'fin
I've tried searching with 'find . -name foamUser' and the file is nowhere in my OpenFOAM directory.
Has there been a change for OpenFOAM 1.4.1 to remove the foamUser feature? If so, I can I link my libraries?
Hi Tim, The foamUser featur
The foamUser feature does not exist anymore (in 1.4.1 at least). See the release notes :
" - foamUser and foamUtil libraries replaced by the more general dlopen method in which any libraries may be included at run-time using the optional 'libs' entry in the case controlDict, e.g. to replicate previous automatic inclusion of the foamUser and foamUtil libraries include
libs ("libfoamUser.so" "libfoamUtil.so");
in controlDict. "
You can also link the solver you would like to use with your new library by recompiling the solver with a link to your library (in the make/option file of the solver). For a good example, see how the tractionDisplacement boundary condition is integreted to the solver solidDisplacement (~/OpenFOAM/OpenFOAM-1.4.1/applications/solvers/stressAnalysis/solidDisplacement Foam)
|All times are GMT -4. The time now is 23:18.|