CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Forcing a solver to use your custom library.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2017, 16:05
Default Forcing a solver to use your custom library.
  #1
New Member
 
Clint
Join Date: Sep 2015
Posts: 10
Rep Power: 7
cdunn6754 is on a distinguished road
I have been making changes to the lagrangian/intermediate library in openFoam 3.0.x. I have made the changes I want and compiled and saved the binary to $FOAM_USER_LIBBIN with a new name. The changes I made concern the particle tracking in general and not any specific model that is referenced in the solver setup. As such I do not know how to force the solver to use my library rather than the generic one, even though it is dynamically linked in the controldict.

My current solution is to make my own coalChemistryFoam solver as well. Before I compile the solver I do one of two things. I replace the link in "Make/option" to the generic library with a link to my library in $FOAM_USER_LIBBIN. Or I just delete the link to the generic intermediate library and link mine dynamically at runtime through the controldict.

The problem with both of these approaches is that when I want to evaluate the changes I have made in my custom library I need to compile the new solver in addition to my library. It seems needlessly circuitous. I would like to just compile the library.

I should note that I would think the second option from above (delete original from Make/option and dynamically link mine at runtime) would solve the problem and allow my to just compile the library but it doesn't seem to. If I don't recompile the solver after making changes to my library, the changes are not implemented.
cdunn6754 is offline   Reply With Quote

Reply

Tags
coalchemistryfoam, compile, lagrangian, library, wmake

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 07:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
Problems with running a custom solver: "Unknown psiCombustionModel" AlexKam OpenFOAM Programming & Development 25 November 23, 2015 20:51
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 06:59.