|
[Sponsors] |
Is it possible to call a library from a different version of OF? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 13, 2018, 09:47 |
Is it possible to call a library from a different version of OF?
|
#1 |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Dear All,
This may sound weird to you, but the situation is that we have invested a lot to develop a solver based on an old version of OF. Now we want to use some new features from latest OF, e.g., the new wall distance calculation. Upgrading our solver to the latest OF version will be very time consuming and we are super lazy. So here is what we want to do: In our solver (OF24), call this new wallDist function (OF50) and return the wall distance field. Is it possible? Ideally, if I can compile a completely standalone library from OF50 and call it from OF24, that will work. But as I know, it is hard to do that. Any ideas? Thanks very much in advance! Regards, Jack |
|
March 14, 2018, 04:39 |
|
#2 |
New Member
Marius Bünker
Join Date: Oct 2017
Posts: 13
Rep Power: 8 |
Have you tried copying the library (with adjusted Make/files and /options) and recompiling it? Without looking at it, maybe some adjustements have to be made, but i would guess you could follow the errors, wmake will give you
|
|
March 14, 2018, 09:10 |
|
#3 | |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Quote:
Jack. |
||
March 16, 2018, 14:32 |
|
#4 |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Any ideas? Thanks!
|
|
March 20, 2018, 06:50 |
|
#5 |
New Member
Marius Bünker
Join Date: Oct 2017
Posts: 13
Rep Power: 8 |
Well, I would suggest you try it. I really cannot tell you how many differences there are or how much work it will be. But I cannot think of any method, which will be any less work.
|
|
March 21, 2018, 04:35 |
|
#6 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29 |
Unless you are doing strange things, updating your solver will be less time consuming and is a worthy investment compared to back-porting the library.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
March 21, 2018, 12:41 |
|
#7 | |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Quote:
Thanks for your reply. But yes, we are doing the strange thing... The scenario is that our solver needs to call functions from more than two versions of OpenFOAM, developed by different groups of people. Say, our solver is based on OF240, we need to call functions from OF-V1 (developed by group A), OF-V2 (developed by group B), OF-V3 (developed by group C). All these groups implemented a lot of their own stuff, so it is impossible to just upgrade to one version while having all the functions we need. Anyway, that is why we need a trick to call functions from different versions of OpenFOAM. Thanks, Jack |
||
April 3, 2018, 22:07 |
|
#8 |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14 |
Any ideas? Thanks. Jack.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 21:00 |
Run OpenFoam in 2 nodes of a cluster | WhiteW | OpenFOAM Running, Solving & CFD | 16 | December 20, 2016 00:51 |
Workbench 16.0 - Memory Allocation Factor | 196235 | CFX | 3 | August 11, 2016 02:05 |
[OpenFOAM] Paraview Free/Delete all memory | eric_albin | ParaView | 9 | September 15, 2015 11:33 |
[General] Plotting data from memory | Woltan | ParaView | 0 | March 13, 2013 04:56 |