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

How can I compile new solver(in my case hy2Foam) in OpenFOAM v8?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By PositronCascade
  • 1 Post By bhqasx

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2020, 22:08
Default How can I compile new solver(in my case hy2Foam) in OpenFOAM v8?
  #1
New Member
 
Hyeonggyu Kim
Join Date: Aug 2020
Posts: 3
Rep Power: 5
adorabat is on a distinguished road
Hi foamers!

I'm new in openfoam so I downloaded recent version of openfoam, v8.

I'm interested in hypersonic flow around blunt body, and i was recommended by some foamers to use hyFoam, hy2Foam etc..


So I downloaded hyfoam from github.
(https://github.com/vincentcasseau/hyStrath)


And I entered the directory where hyfoam is installed, and type 'wmake'
then following message appeared..


------------------------------------------------------------------------------------
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
wmakeLnInclude error: base directory /home/gyu/OpenFOAM/OpenFOAM-8/src/TurbulenceModels/turbulenceModels/ does not exist
Making dependency list for source file hy2Foam.C
could not open file laminarModel.H for source file hy2Foam.C due to No such file or directory
could not open file RASModel.H for source file hy2Foam.C due to No such file or directory
could not open file LESModel.H for source file hy2Foam.C due to No such file or directory
could not open file TurbulenceModel.H for source file hy2Foam.C due to No such file or directory
could not open file turbulenceModel.H for source file hy2Foam.C due to No such file or directory
could not open file compressibleTransportModel.H for source file hy2Foam.C due to No such file or directory
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -IBCs/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/fvOptions/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/sampling/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/ODE/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/transportModels/compressible/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/specie/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathSpecie/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathReactionThermo/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathChemistryModel/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathSpecie/transport/speciesDiffusion/diffusivityModels/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathSpecie/transport/speciesDiffusion/multiSpeciesTransportModels/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathSpecie/relaxationTimes/relaxationTimeModels/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathSpecie/rarefied/rarefactionParameters/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/thermophysicalModels/strath/strathSpecie/transport/mixingRules/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/TurbulenceModels/compressible/lnInclude -I/home/gyu/OpenFOAM/gyu-8/src/hTCModels/lnInclude -IlnInclude -I. -I/home/gyu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/gyu/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -c hy2Foam.C -o Make/linux64GccDPInt32Opt/hy2Foam.o
In file included from /home/gyu/OpenFOAM/gyu-8/src/TurbulenceModels/compressible/lnInclude/turbulentFluidThermoModel.H:46:0,
from /home/gyu/OpenFOAM/gyu-8/src/hTCModels/lnInclude/hTC2Model.H:39,
from /home/gyu/OpenFOAM/gyu-8/src/hTCModels/lnInclude/rho2HTCModel.H:40,
from hy2Foam_include.H:12,
from hy2Foam.C:40:
/home/gyu/OpenFOAM/gyu-8/src/TurbulenceModels/compressible/lnInclude/CompressibleTurbulenceModel.H:39:10: fatal error: TurbulenceModel.H: No such file or directory
#include "TurbulenceModel.H"
^~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/gyu/OpenFOAM/OpenFOAM-8/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/hy2Foam.o' failed
make: *** [Make/linux64GccDPInt32Opt/hy2Foam.o] Error 1
---------------------------------------------------------------------------------------------


I guess v8 and hy2foam are incompatible.. but my c++ skill is insufficient to fix this problem..

And I also think that your advice will help many foamers to compile new solver in openfoam v8!!


Anyone could give advice to my problem? Thanks in advance!!
adorabat is offline   Reply With Quote

Old   October 20, 2020, 06:44
Default
  #2
Member
 
Hasan Celik
Join Date: Sep 2016
Posts: 64
Rep Power: 9
PositronCascade is on a distinguished road
You need to look for where
Code:
 CompressibleTurbulenceModel.H
is in OFv8; I mean you need to find lnInclude folder that includes it and then you need to add it to your Make/options file. You may find some tutorials about that here or here
jbwulf likes this.
PositronCascade is offline   Reply With Quote

Old   October 20, 2020, 11:10
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Turbulence models have been renamed to momentumTransportModels (or something like this) in OpenFOAM-8. Also the names of the directories have been changed accordingly.
jherb is offline   Reply With Quote

Old   June 9, 2021, 22:18
Default Hi, I'm having a similar problem
  #4
New Member
 
Zach
Join Date: Jun 2021
Posts: 5
Rep Power: 4
bhqasx is on a distinguished road
Hi, I'm also compiling a application which needs the turbulenceModel.H. But I'm working on openFoam v8 and I can't find it. Have you fixed your problem?
bhqasx is offline   Reply With Quote

Old   June 14, 2021, 02:23
Default
  #5
New Member
 
Join Date: Apr 2019
Posts: 2
Rep Power: 0
Peruni is on a distinguished road
If you want to use hy2Foam you will most probably need to revert to ancient openfoam v1706. It is explained in the compatibility section in the download page. My suggestion is to use docker and with older linix distro and of1706
Peruni is offline   Reply With Quote

Old   October 26, 2021, 19:37
Default
  #6
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
Quote:
Originally Posted by bhqasx View Post
Hi, I'm also compiling a application which needs the turbulenceModel.H. But I'm working on openFoam v8 and I can't find it. Have you fixed your problem?

Hi,

did you manage to sort out the problem?


regards,
Sakun is offline   Reply With Quote

Old   October 26, 2021, 22:04
Default Use old version
  #7
New Member
 
Zach
Join Date: Jun 2021
Posts: 5
Rep Power: 4
bhqasx is on a distinguished road
Quote:
Originally Posted by Sakun View Post
Hi,

did you manage to sort out the problem?


regards,
Hi, I just installed a very old version (OF v2.3.1) and finished compiling the application successfully. It works fine till now.
Sakun likes this.
bhqasx is offline   Reply With Quote

Old   October 28, 2021, 14:48
Default
  #8
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Sakun View Post
Hi,

did you manage to sort out the problem?

Extreme incompatibilities introduced in the openfoam.org line of things. At some point they decided that since turbulence modelling is just a special means of describing an aspect of momentum transport that they would replace all "Turbulence" models with "Momentum", which makes it very interesting for the user to sort out.
If you use the openfoam.com line of things, you will have a much better chance. There turbulence is still called turbulence etc.
olesen is offline   Reply With Quote

Old   October 28, 2021, 15:29
Default
  #9
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
Hi,


so in latest versions of openfoam in openfoam.com still using old wordings ?


regards,
Sakun is offline   Reply With Quote

Old   October 28, 2021, 15:33
Default
  #10
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
Quote:
Originally Posted by olesen View Post
Extreme incompatibilities introduced in the openfoam.org line of things. At some point they decided that since turbulence modelling is just a special means of describing an aspect of momentum transport that they would replace all "Turbulence" models with "Momentum", which makes it very interesting for the user to sort out.
If you use the openfoam.com line of things, you will have a much better chance. There turbulence is still called turbulence etc.

Hi,

so in latest versions of openfoam in openfoam.com still using old wordings ?

regards,
Sakun is offline   Reply With Quote

Reply


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
Sandia Flame D OpenFoam tutorial case - bad result? Brandani OpenFOAM Programming & Development 8 January 18, 2022 13:29
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 21:01.