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

Error in compilation interFoam in openfoam7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2020, 22:21
Default Error in compilation interFoam in openfoam7
  #1
New Member
 
Cláudio Corrêa
Join Date: Jun 2017
Location: Brazil
Posts: 14
Rep Power: 9
claudiocor is on a distinguished road
Hi,


I'm tryed edited interfoam for create new solver with additon temperature equation, but I just changed the name for interTempFoam and compiled. During the compilation appear many errors:


Making dependency list for source file interTempFoam.C
could not open file createAlphaFluxes.H for source file interTempFoam.C due to No such file or directory
could not open file setRDeltaT.H for source file interTempFoam.C due to No such file or directory
could not open file alphaCourantNo.H for source file interTempFoam.C due to No such file or directory
could not open file alphaEqnSubCycle.H for source file interTempFoam.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 -I../VoF -I/opt/openfoam7/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam7/src/transportModels -I/opt/openfoam7/src/transportModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam7/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam7/src/finiteVolume/lnInclude -I/opt/openfoam7/src/dynamicFvMesh/lnInclude -I/opt/openfoam7/src/meshTools/lnInclude -I/opt/openfoam7/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam7/src/OpenFOAM/lnInclude -I/opt/openfoam7/src/OSspecific/POSIX/lnInclude -fPIC -c interTempFoam.C -o Make/linux64GccDPInt32Opt/interTempFoam.o
interTempFoam.C:61:14: fatal error: createAlphaFluxes.H: Arquivo ou diretório inexistente
61 | #include "createAlphaFluxes.H"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.


The openFoam7 is located in SSD and my /home is located in HD. I understand why not being able to acess the files, but I don't know how can I do it.



Could someone help me solve the problem?

Last edited by claudiocor; January 22, 2020 at 22:33. Reason: Error in the text.
claudiocor is offline   Reply With Quote

Old   January 23, 2020, 05:23
Default
  #2
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by claudiocor View Post
Hi,


I'm tryed edited interfoam for create new solver with additon temperature equation, but I just changed the name for interTempFoam and compiled. During the compilation appear many errors:


Making dependency list for source file interTempFoam.C
could not open file createAlphaFluxes.H for source file interTempFoam.C due to No such file or directory
could not open file setRDeltaT.H for source file interTempFoam.C due to No such file or directory
could not open file alphaCourantNo.H for source file interTempFoam.C due to No such file or directory
could not open file alphaEqnSubCycle.H for source file interTempFoam.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 -I../VoF -I/opt/openfoam7/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam7/src/transportModels -I/opt/openfoam7/src/transportModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam7/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam7/src/finiteVolume/lnInclude -I/opt/openfoam7/src/dynamicFvMesh/lnInclude -I/opt/openfoam7/src/meshTools/lnInclude -I/opt/openfoam7/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam7/src/OpenFOAM/lnInclude -I/opt/openfoam7/src/OSspecific/POSIX/lnInclude -fPIC -c interTempFoam.C -o Make/linux64GccDPInt32Opt/interTempFoam.o
interTempFoam.C:61:14: fatal error: createAlphaFluxes.H: Arquivo ou diretório inexistente
61 | #include "createAlphaFluxes.H"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.


The openFoam7 is located in SSD and my /home is located in HD. I understand why not being able to acess the files, but I don't know how can I do it.



Could someone help me solve the problem?
I think the problem is you did not include the source files into your Options via libraries in Make folder or in your folder
ndtrong 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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 16:26
Question about interFoam Solver Kahnbein.Kai OpenFOAM Running, Solving & CFD 2 August 26, 2019 16:36
interFoam (HELYX-OS) pressure boundary conditions SFr OpenFOAM Running, Solving & CFD 8 June 23, 2016 17:36
k-e & GAMG interFoam Schemitisation Stability Issue JFM OpenFOAM Running, Solving & CFD 3 December 1, 2015 06:58
Modified interFoam compilation fails voingiappone OpenFOAM Programming & Development 6 October 1, 2013 04:47


All times are GMT -4. The time now is 20:12.