|
[Sponsors] |
January 13, 2023, 03:02 |
A problem with compilation of OlaFlow
|
#1 |
New Member
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10 |
Hi everyone,
I am getting this error while compiling Olaflow with openfoam9. The compilation fails at the end. Can anyone help with some brief explanation of steps for compilation? Thank you all. In file included from incompressibleInterPhaseTransportModel.H:46, from incompressibleInterPhaseTransportModel.C:26: /opt/openfoam9/src/twoPhaseModels/incompressibleTwoPhaseMixture/lnInclude/incompressibleTwoPhaseMixture.H:38:10: fatal error: kinematicTransportModel.H: No such file or directory 38 | #include "kinematicTransportModel.H" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [/opt/openfoam9/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/incompressibleInterPhaseTransportModel.o] Error 1 make[1]: Leaving directory '/home/mahdi/olaFlow/solvers/olaFlowOF_org_latest/incompressibleInterPhaseTransportModel' make: *** [/opt/openfoam9/wmake/makefiles/apps:39: incompressibleInterPhaseTransportModel] Error 2 olaFlow solvers compilation failed |
|
January 13, 2023, 14:43 |
|
#2 |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 11 |
Probably the solver is not originaly written for Openfoam9. If you're lucky the changes may be minor and you can try finding where the libraries are placed in the new version.
1. Finding the file in your system: you can try the following command Code:
find $FOAM_SRC -name "kinematicTransportModel.H" In my case I find it in "src/transportModels/lnInclude/kinematicTransportModel.H" 2. Telling the solver where the header is: Now just modify the file Make/options in your custom solver to add it. for example: Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/transportModels/lnInclude \ ... However, nothing ensures you that the code inside that library has suffer further changes and more errors may appear while compiling. Cross your fingers and happy foaming. |
|
January 13, 2023, 17:32 |
|
#3 |
New Member
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10 |
Hi Crubio,
Thank you so much for the solution. From your guidance, I realized that there are several folders in the "Solver" folder of Olaflow which are named for different versions of the Openfoam. Version 9 was not there, but there was a folder named "OF_latest version". I renamed that to "OF9", and then compiled it again, and now those errors are not appearing anymore. It is being compiled now to see how it will go. Thank you. |
|
January 15, 2023, 12:18 |
|
#4 | |
New Member
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10 |
Quote:
|
||
January 16, 2023, 03:01 |
|
#5 |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 11 |
I don't know about the specific of this solver. Depending on the machine y may take more or less, but I would say thats a long compiling process (or not the best machine for CFD).
Please, consider asking on the dedicated threat of olaFlow. The OLAFLOW Thread |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compilation problem on Linux System | Nitin Pathak | Fluent UDF and Scheme Programming | 6 | September 29, 2018 21:26 |
[OpenFOAM.com] [v3.0+] Compilation problem in Debian 8.2 | leguichet | OpenFOAM Installation | 1 | May 29, 2016 15:28 |
OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem | rkc.cfd | OpenFOAM Installation | 4 | January 31, 2014 15:21 |
solver compilation problem, /bin/linux64GccDPOpt directory empty | arnaud6 | OpenFOAM Running, Solving & CFD | 0 | July 25, 2013 11:48 |
[swak4Foam] compilation problem | ganeshv | OpenFOAM Community Contributions | 5 | November 11, 2011 17:39 |