|
[Sponsors] |
March 30, 2017, 17:05 |
Forcing a solver to use your custom library.
|
#1 |
New Member
Clint
Join Date: Sep 2015
Posts: 10
Rep Power: 11 |
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. |
|
Tags |
coalchemistryfoam, compile, lagrangian, library, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 08:54 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 17:08 |
Problems with running a custom solver: "Unknown psiCombustionModel" | AlexKam | OpenFOAM Programming & Development | 25 | November 23, 2015 21:51 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |