CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Adding self written mesh to runtimeselection (

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/" works just fine. Now I've put the following lines into dynamicMeshDict:

dynamicFvMeshLib "";
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,

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?



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 ("");

It should work that way.


All times are GMT -4. The time now is 09:44.