CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Adding self written mesh to runtimeselection

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 12, 2007, 10:28
Default Hi all, I've got a problem wi
  #1
bfa
Member
 
Björn Fabritius
Join Date: Mar 2009
Location: Freiberg, Germany
Posts: 31
Rep Power: 8
bfa is on a distinguished road
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
bfa is offline   Reply With Quote

Old   June 26, 2007, 08:18
Default Hi Bjoern! Same problem her
  #2
Senior Member
 
Thomas Jung
Join Date: Mar 2009
Posts: 100
Rep Power: 8
tehache is on a distinguished road
Hi Bjoern!

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

Regards,

Thomas
tehache is offline   Reply With Quote

Old   June 26, 2007, 09:02
Default Hello Thomas, I actually fo
  #3
bfa
Member
 
Björn Fabritius
Join Date: Mar 2009
Location: Freiberg, Germany
Posts: 31
Rep Power: 8
bfa is on a distinguished road
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
bfa is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a node in 2D mesh (gambit) Ralf Schmidt FLUENT 0 August 24, 2006 01:32
adding a note in 2D mesh (gambit) Ralf Schmidt Main CFD Forum 1 August 23, 2006 07:19
Problems importing written gambit .neu mesh file jemteo FLUENT 3 February 20, 2006 02:42
F(1) over-written error Olof Liungman Phoenics 5 October 27, 2005 13:52
Adding cells during mesh motion Serkan Cetin CD-adapco 1 December 23, 2002 04:22


All times are GMT -4. The time now is 15:45.