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

Failed to compile sprayFoam solver clone

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By blttkgl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2017, 03:33
Default Failed to compile sprayFoam solver clone
  #1
Member
 
Join Date: Oct 2015
Location: Finland
Posts: 39
Rep Power: 10
blttkgl is on a distinguished road
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
blttkgl is offline   Reply With Quote

Old   October 9, 2017, 04:04
Default
  #2
Member
 
Join Date: Oct 2015
Location: Finland
Posts: 39
Rep Power: 10
blttkgl is on a distinguished road
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
john myce likes this.
blttkgl 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
compile error on solver compressibleMixingPhaseChangeFoam simon95 OpenFOAM Programming & Development 9 February 27, 2024 09:35
The solver failed with a non-zero exit code of : 2 paul115 CFX 11 October 30, 2017 22:14
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Compile a new twoPhaseEulerFoam solver mingzhao OpenFOAM Programming & Development 2 April 17, 2015 12:36
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43


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