|
[Sponsors] |
April 14, 2023, 17:58 |
Failed to compile sprayFoam solver clone
|
#1 |
New Member
Xiang'en Kong
Join Date: Feb 2023
Posts: 4
Rep Power: 3 |
Hi,
I want to create a mySprayFoam solver on the base of sprayFoam solver. So I created $FOAM_USER_APPBIN/applications/solvers directory and copied to original solver into this directory. Changed the .C filename to mySprayFoam and updated the Make/files to : mySprayFoam.C EXE = $(FOAM_USER_APPBIN)/mySprayFoam and did not make any other changes. However when I try to compile the solver with wmake I get the following error: Making dependency list for source file mySprayFoam.C could not open file correctPhi.H for source file mySprayFoam.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. -I../reactingParcelFoam -I../../compressible/rhoPimpleFoam -I/home/xek/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/sampling/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/MomentumTransportModels/momentumTransportModels/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/MomentumTransportModels/compressible/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/ThermophysicalTransportModels/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/ThermophysicalTransportModels/psiReactionThermo/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/lagrangian/basic/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/lagrangian/intermediate/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/lagrangian/spray/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/lagrangian/distributionModels/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/specie/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/basic/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/thermophysicalProperties/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/reactionThermo/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/SLGThermo/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/chemistryModel/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/radiationModels/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/ODE/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/regionModels/regionModel/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/regionModels/surfaceFilmModels/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/combustionModels/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/dynamicFvMesh/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -IlnInclude -I. -I/home/xek/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/xek/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -c mySprayFoam.C -o Make/linux64GccDPInt32Opt/mySprayFoam.o mySprayFoam.C:116:26: fatal error: correctPhi.H: No such file or directory 116 | #include "correctPhi.H" | ^~~~~~~~~~~~~~ compilation terminated. make: *** [/home/xek/OpenFOAM/OpenFOAM-8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/mySprayFoam.o] Error 1 So what can I do with that? Best, Xiang'en |
|
February 13, 2024, 12:05 |
|
#2 |
Member
ASR
Join Date: Jan 2023
Location: Leeds, UK
Posts: 52
Rep Power: 3 |
Hi I have a similar issue using OpenFOAM-9 (LINUX distribution: OpenSUSE-15.4) but it is with compiling a new turbulence model for SSG and LRR. I followed same procedure as I did with compiling new turbulence model for two equation models such as kEpsilon and kOmega (which worked).
Did you manage to resolve this issue? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Failed to compile sprayFoam solver clone | blttkgl | OpenFOAM Programming & Development | 1 | October 9, 2017 05:04 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 17:08 |
Transient boundary conditions | Jarrod Sinclair (Sinclair) | OpenFOAM Running, Solving & CFD | 133 | May 6, 2015 07:21 |
DeardorffDiffStress turbulence model | Zuixy | OpenFOAM Running, Solving & CFD | 0 | November 14, 2011 09:44 |
[OpenFOAM] ParaView/Parafoam error when making animation | Disco_Caine | ParaView | 6 | September 28, 2010 10:54 |