CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Failed to compile sprayFoam solver clone

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

Like Tree1Likes
  • 1 Post By Shawn Kong

LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2023, 16:58
Default Failed to compile sprayFoam solver clone
New Member
Xiang'en Kong
Join Date: Feb 2023
Posts: 4
Rep Power: 3
Shawn Kong is on a distinguished road

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 :


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?


sr786 likes this.
Shawn Kong is offline   Reply With Quote

Old   February 13, 2024, 11:05
Join Date: Jan 2023
Location: Leeds, UK
Posts: 50
Rep Power: 3
sr786 is on a distinguished road
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?
sr786 is offline   Reply With Quote

Old   February 14, 2024, 03:14
Senior Member
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Make sure to use the OpenFoam distribution for which sprayFoam was developed?

Not sure which version of OpenFoam this is.
dlahaye is offline   Reply With Quote


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
Failed to compile sprayFoam solver clone blttkgl OpenFOAM Programming & Development 1 October 9, 2017 04:04
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
Transient boundary conditions Jarrod Sinclair (Sinclair) OpenFOAM Running, Solving & CFD 133 May 6, 2015 06:21
DeardorffDiffStress turbulence model Zuixy OpenFOAM Running, Solving & CFD 0 November 14, 2011 08:44
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 09:54

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