CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Adding self written mesh to runtimeselection (http://www.cfd-online.com/Forums/openfoam/60921-adding-self-written-mesh-runtimeselection.html)

bfa June 12, 2007 10:28

Hi all, I've got a problem wi
 
Hi all,
I've got a problem with a mesh I've derived from topoChangerFvMesh. I used (or think have) the function
addToRuntimeSelectionTable(topoChangerFvMesh, myFvMesh, IOobject)
correctly. Compiling and linking into "$USER_LIB_BIN/libmyFvMesh.so" works just fine. Now I've put the following lines into dynamicMeshDict:

dynamicFvMeshLib "libmyFvMesh.so";
dynamicFvMesh myFvMesh;

When I run the case with icoDyMFoam I end up with the message

--> FOAM FATAL ERROR : Unknown dynamicFvMesh type myFvMesh

Is it possible, that the solver doesn't use $USER_LIB_BIN to search for libraries or is there a major brain-bug in my code (I thought about the problem being the derivation from topoChangerFvMesh which itself derives from dynamicFvMesh, but I thought autoptr would take care of that)??

Suggestions are welcome,
Bjoern

tehache June 26, 2007 08:18

Hi Bjoern! Same problem her
 
Hi Bjoern!

Same problem here ...
Did you find a solution in the mean time?

Regards,

Thomas

bfa June 26, 2007 09:02

Hello Thomas, I actually fo
 
Hello Thomas,

I actually found my mistake.
In the dynamicMeshDict you have to enclose the library name in brackets like this:
dynamicFvMeshLibs ("libmyFvMesh.so");

It should work that way.

Regards,
Bjoern


All times are GMT -4. The time now is 20:48.