CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Cannot compile new solver (https://www.cfd-online.com/Forums/openfoam-programming-development/183050-cannot-compile-new-solver.html)

lpz.michele January 25, 2017 12:36

Cannot compile new solver
 
Hello!

I am dealing with the implementation of the Zwart Model of cavitation in interPhaseChangeFoam.

Following many tutorials and papers, I've created a new solver's directory, copied the previous interPhaseChangeFoam and then i started modifying the code.


Here is the link to the whole solver: https://mega.nz/#!b4QmDIjY

here is what I get, after wmake:

Code:

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/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam4/src/transportModels -I/opt/openfoam4/src/transportModels/incompressible/lnInclude -I/opt/openfoam4/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam4/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam4/src/TurbulenceModels/incompressible/lnInclude -I/libpolibaPhaseChangeTwoPhaseMixtures/lnInclude -I/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -I/opt/openfoam4/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude  -fPIC -c polibaInterPhaseChangeFoam.C -o Make/linux64GccDPInt32Opt/polibaInterPhaseChangeFoam.o
polibaInterPhaseChangeFoam.C:51:46: fatal error: polibaPhaseChangeTwoPhaseMixture.H: File o directory non esistente
 #include "polibaPhaseChangeTwoPhaseMixture.H"
                                              ^
compilation terminated.

Could anyone please help me?

NOTE: I am using OF4.1 using Bash for Windows

dviam February 10, 2018 17:49

Hi Michele,

I was wondering if you ever got this working. This is something I am interested in doing as well. Could you post here or forwards the tutorial documents you are using which document how to do this? I will try to give it a try myself.


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