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

A problem with compilation of OlaFlow

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2023, 02:02
Default A problem with compilation of OlaFlow
  #1
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10
Mahdi_Kh is on a distinguished road
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
Mahdi_Kh is offline   Reply With Quote

Old   January 13, 2023, 13:43
Default
  #2
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
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"
to find where is installed (or if it installed in the first place).

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 \
       ...
Notice that you just have to include the path to the lnInclude folder, not the complete path to the header file. With that the compiler should be able to find it and continue with the process.

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.
crubio.abujas is offline   Reply With Quote

Old   January 13, 2023, 16:32
Default
  #3
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10
Mahdi_Kh is on a distinguished road
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.
Mahdi_Kh is offline   Reply With Quote

Old   January 15, 2023, 11:18
Default
  #4
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10
Mahdi_Kh is on a distinguished road
Quote:
Originally Posted by crubio.abujas View Post
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"
to find where is installed (or if it installed in the first place).

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 \
       ...
Notice that you just have to include the path to the lnInclude folder, not the complete path to the header file. With that the compiler should be able to find it and continue with the process.

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.
Thank you so much again for your reply. Do you know how long it should take to compile normally? I put it for compilation like for 16 hours, and it looked never ending.
Mahdi_Kh is offline   Reply With Quote

Old   January 16, 2023, 02:01
Default
  #5
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
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
crubio.abujas is offline   Reply With Quote

Reply

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
UDF compilation problem on Linux System Nitin Pathak Fluent UDF and Scheme Programming 6 September 29, 2018 20:26
[OpenFOAM.com] [v3.0+] Compilation problem in Debian 8.2 leguichet OpenFOAM Installation 1 May 29, 2016 14:28
OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem rkc.cfd OpenFOAM Installation 4 January 31, 2014 14:21
solver compilation problem, /bin/linux64GccDPOpt directory empty arnaud6 OpenFOAM Running, Solving & CFD 0 July 25, 2013 10:48
[swak4Foam] compilation problem ganeshv OpenFOAM Community Contributions 5 November 11, 2011 16:39


All times are GMT -4. The time now is 22:30.