|
[Sponsors] |
October 9, 2017, 04:33 |
Failed to compile sprayFoam solver clone
|
#1 |
Member
Join Date: Oct 2015
Location: Finland
Posts: 39
Rep Power: 11 |
Hey,
I want to create a sprayFoam solver clone and make modifications afterwards. 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: g++ -std=c++0x -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam4/src/meshTools/lnInclude -I. -I../reactingParcelFoam -I/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -I/opt/openfoam4/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam4/src/TurbulenceModels/compressible/lnInclude -I/opt/openfoam4/src/lagrangian/basic/lnInclude -I/opt/openfoam4/src/lagrangian/intermediate/lnInclude -I/opt/openfoam4/src/lagrangian/spray/lnInclude -I/opt/openfoam4/src/lagrangian/distributionModels/lnInclude -I/opt/openfoam4/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam4/src/transportModels/compressible/lnInclude -I/opt/openfoam4/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam4/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam4/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam4/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam4/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam4/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/opt/openfoam4/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam4/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam4/src/thermophysicalModels/chemistryModel/lnInclude -I/opt/openfoam4/src/thermophysicalModels/radiation/lnInclude -I/opt/openfoam4/src/ODE/lnInclude -I/opt/openfoam4/src/regionModels/regionModel/lnInclude -I/opt/openfoam4/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam4/src/combustionModels/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c mysprayFoam.C -o Make/linux64GccDPInt32Opt/mysprayFoam.o /opt/openfoam4/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/mysprayFoam.o' failed mysprayFoam.C:54:33: fatal error: createFieldRefs.H: No such file or directory compilation terminated. Do i need to change the Make/options folder too? I don't understand why it cannot find createFieldRefs.H. Best, Bulut |
|
October 9, 2017, 05:04 |
|
#2 |
Member
Join Date: Oct 2015
Location: Finland
Posts: 39
Rep Power: 11 |
For anyone who'll face the same problem, it is because sprayFoam solver reads some portions of its source code from reactingParcelFoam, which is defined in the options file as:
-I../reactingParcelFoam \ Just add the following and it will compile: -I$(FOAM_APP)/solvers/lagrangian/reactingParcelFoam \ Bulut |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
compile error on solver compressibleMixingPhaseChangeFoam | simon95 | OpenFOAM Programming & Development | 9 | February 27, 2024 10:35 |
The solver failed with a non-zero exit code of : 2 | paul115 | CFX | 11 | October 30, 2017 23:14 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Compile a new twoPhaseEulerFoam solver | mingzhao | OpenFOAM Programming & Development | 2 | April 17, 2015 13:36 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |