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

foam-extend 5 compile error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2022, 07:16
Default foam-extend 5 compile error
  #1
Member
 
Hyun Ko
Join Date: Jun 2009
Posts: 35
Rep Power: 17
hyunko is on a distinguished road

Hi Foamers,

I have tried to compile foam-extend 5.0.
During the compiling, I have met following errors.
Does anyone know the reason of error and remedies?

It happens only for "dbnsFoam" and "dbnsTurbFoam".
For other applications, all the compiles seem to be successful.

Thanks.


Code:
SOURCE=MGridGenGAMGAgglomerate.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/hero/foam/foam-extend-5.0/src/finiteVolume/lnInclude     -I/Lib        -I/IMlib       -IlnInclude -I. -I/home/hero/foam/foam-extend-5.0/src/foam/lnInclude -I/home/hero/foam/foam-extend-5.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o
MGridGenGAMGAgglomerate.C:35:13: fatal error: mgridgen.h: No such file or directory
   35 | #   include "mgridgen.h"
      |             ^~~~~~~~~~~~
compilation terminated.
make: *** [MGridGenGAMGAgglomerate.dep:449: Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o] Error 1
+ wmake libso pairPatchAgglomeration
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libpairPatchAgglomeration.so' is up to date.
+ wmake libso engine
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libengine.so' is up to date.
+ wmake libso equationReader
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libequationReader.so' is up to date.
+ wmake libso multiSolver
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libmultiSolver.so' is up to date.
+ wmake libso solidModels
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libsolidModels.so' is up to date.
+ wmake libso dbns
SOURCE=multigrid/mgMeshLevel/mgMeshLevel.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/hero/foam/foam-extend-5.0/src/finiteVolume/lnInclude     -I/home/hero/foam/foam-extend-5.0/src/meshTools/lnInclude     -I/home/hero/foam/foam-extend-5.0/src/thermophysicalModels/basic/lnInclude     -I/home/hero/foam/foam-extend-5.0/src/turbulenceModels/compressible/turbulenceModel     -I/IMlib     -I/Lib -IlnInclude -I. -I/home/hero/foam/foam-extend-5.0/src/foam/lnInclude -I/home/hero/foam/foam-extend-5.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mgMeshLevel.o
multigrid/mgMeshLevel/mgMeshLevel.C:31:13: fatal error: mgridgen.h: No such file or directory
   31 | #   include "mgridgen.h"
      |             ^~~~~~~~~~~~
compilation terminated.
make: *** [multigrid/mgMeshLevel/mgMeshLevel.dep:430: Make/linux64GccDPInt32Opt/mgMeshLevel.o] Error 1
+ wmake libso immersedBoundary/immersedBoundary
hyunko is offline   Reply With Quote

Old   September 23, 2022, 06:39
Default
  #2
Member
 
Hyun Ko
Join Date: Jun 2009
Posts: 35
Rep Power: 17
hyunko is on a distinguished road
[solved]

This was related to dependancies not installed correctly.
I have successfully install following the instruction.

Thanks.
hyunko is offline   Reply With Quote

Old   March 27, 2023, 19:21
Default
  #3
New Member
 
H. C.
Join Date: Dec 2022
Posts: 5
Rep Power: 3
cfdforum4hyc is on a distinguished road
Hi, Hyun,
Hope you are doing well!
I'm trying to install foam-extend 5.0 now yet failed to find the installation instruction. Could you please share the instruction you used?
Thanks!
cfdforum4hyc is offline   Reply With Quote

Old   March 29, 2023, 01:01
Default
  #4
Member
 
Hyun Ko
Join Date: Jun 2009
Posts: 35
Rep Power: 17
hyunko is on a distinguished road
Hi cfdforum4hyc,

As I remember, I have followed the instruction from this link.
https://openfoamwiki.net/index.php/I...end-4.1/Ubuntu
hyunko is offline   Reply With Quote

Old   March 29, 2023, 11:13
Default
  #5
New Member
 
H. C.
Join Date: Dec 2022
Posts: 5
Rep Power: 3
cfdforum4hyc is on a distinguished road
Thank you so much for letting me know! I tried the same yet failed to find the fsiFoam in the source code so I assume I compiled it in the wrong way.
cfdforum4hyc is offline   Reply With Quote

Old   July 4, 2024, 06:45
Default
  #6
Member
 
Hyun Ko
Join Date: Jun 2009
Posts: 35
Rep Power: 17
hyunko is on a distinguished road
I have compiled again and got three fatal errors (metis.h, parmetis.h, scotch.h).

1. metis.h
>> sudo apt install libmetis-dev
2. parmetis.h
>> sudo apt install libparmetis-dev
3. scotch.h
>> sudo apt install libscotch-dev

All errors are cleared by those installation.
hyunko 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
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 19:11
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32


All times are GMT -4. The time now is 15:36.