|
[Sponsors] |
How can I compile new solver(in my case hy2Foam) in OpenFOAM v8? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 19, 2020, 22:08 |
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 |
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!! |
|
October 20, 2020, 06:44 |
|
#2 |
Member
Hasan Celik
Join Date: Sep 2016
Posts: 64
Rep Power: 9 |
||
October 20, 2020, 11:10 |
|
#3 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
Turbulence models have been renamed to momentumTransportModels (or something like this) in OpenFOAM-8. Also the names of the directories have been changed accordingly.
|
|
June 9, 2021, 22:18 |
Hi, I'm having a similar problem
|
#4 |
New Member
Zach
Join Date: Jun 2021
Posts: 5
Rep Power: 4 |
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?
|
|
June 14, 2021, 02:23 |
|
#5 |
New Member
Join Date: Apr 2019
Posts: 2
Rep Power: 0 |
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
|
|
October 26, 2021, 19:37 |
|
#6 |
Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6 |
||
October 26, 2021, 22:04 |
Use old version
|
#7 |
New Member
Zach
Join Date: Jun 2021
Posts: 5
Rep Power: 4 |
||
October 28, 2021, 14:48 |
|
#8 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40 |
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. |
|
October 28, 2021, 15:29 |
|
#9 |
Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6 |
Hi,
so in latest versions of openfoam in openfoam.com still using old wordings ? regards, |
|
October 28, 2021, 15:33 |
|
#10 | |
Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6 |
Quote:
Hi, so in latest versions of openfoam in openfoam.com still using old wordings ? regards, |
||
|
|
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 |