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

wmake new solver

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   August 24, 2014, 01:08
Default wmake new solver
  #1
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
hi formers
i have a problem in wmake a new solver that i write it
when i want wmake it, i have this error:
make: *** No rule to make target `/opt/openfoam211/src/OpenFOAM/lnInclude/debugName.H', needed by `buoyantBoussinesqCO2SimpleFoam.dep'. Stop.
imani is offline   Reply With Quote

Old   August 24, 2014, 05:09
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: UK
Posts: 125
Rep Power: 7
hk318i is on a distinguished road
It is linking problem,
You can fixed by adding -I$(LIB_SRC)/OpenFOAM/lnInclude to the solver options file. Then clean and recompile again.
hk318i is offline   Reply With Quote

Old   August 24, 2014, 05:24
Default
  #3
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
thanks alot
should i add comment "-I$(LIB_SRC" to solver?
imani is offline   Reply With Quote

Old   August 24, 2014, 05:45
Default
  #4
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: UK
Posts: 125
Rep Power: 7
hk318i is on a distinguished road
Quote:
Originally Posted by imani View Post
thanks alot
should i add comment "-I$(LIB_SRC" to solver?
What do you mean? You have to add it in Make/options.

Code:
EXE_INC = \
               -I$(LIB_SRC)/path to linked headers \
               -I$(LIB_SRC)/OpenFOAM/lnInclude
LIB_LIBS = \
    -lOpenFOAM \
    -l(used libraries names)
You shouldn't change anything inside your source code (solver.C or solver.H). It is linking problem.
hk318i is offline   Reply With Quote

Old   August 24, 2014, 07:31
Default
  #5
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
hi again and thanks for your response
i add it but now i have this problem


dell@ubuntu:~$ cd Desktop/imani-Solver/
dell@ubuntu:~/Desktop/imani-Solver$ of211
dell@ubuntu:~/Desktop/imani-Solver$ wmake
linux64GccDPOpt/options:7: *** missing separator. Stop.
Make/linux64GccDPOpt/options:7: *** missing separator. Stop.
dell@ubuntu:~/Desktop/imani-Solver$
imani is offline   Reply With Quote

Old   August 24, 2014, 07:41
Default
  #6
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: UK
Posts: 125
Rep Power: 7
hk318i is on a distinguished road
Quote:
Originally Posted by imani View Post
hi again and thanks for your response
i add it but now i have this problem


dell@ubuntu:~$ cd Desktop/imani-Solver/
dell@ubuntu:~/Desktop/imani-Solver$ of211
dell@ubuntu:~/Desktop/imani-Solver$ wmake
linux64GccDPOpt/options:7: *** missing separator. Stop.
Make/linux64GccDPOpt/options:7: *** missing separator. Stop.
dell@ubuntu:~/Desktop/imani-Solver$
could you please post a copy of your options file?
hk318i is offline   Reply With Quote

Old   August 24, 2014, 08:00
Default
  #7
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
thanks alot
now i have another problem

dell@ubuntu:~/Desktop/imani-Solver$ wclean
dell@ubuntu:~/Desktop/imani-Solver$ wmake
Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C
SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/path to linked headers -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o
g++: error: to: No such file or directory
g++: error: linked: No such file or directory
g++: error: headers: No such file or directory
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1
imani is offline   Reply With Quote

Old   August 24, 2014, 08:02
Default
  #8
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
yeah ....it is my option file

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \
-I$(LIB_SRC)/path to linked headers \
-I$(LIB_SRC)/OpenFOAM/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lsampling \
-lmeshTools \
-lfvOptions \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels -u incompressibleRASModelsLoad \
-lincompressibleTransportModels \
-lradiationModels \
-lOpenFOAM \
-l(used libraries names)
imani is offline   Reply With Quote

Old   August 24, 2014, 08:34
Default
  #9
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: UK
Posts: 125
Rep Power: 7
hk318i is on a distinguished road
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude
-I$(LIB_SRC)/OpenFOAM/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lsampling \
-lmeshTools \
-lfvOptions \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels -u incompressibleRASModelsLoad \
-lincompressibleTransportModels \
-lradiationModels \
-lOpenFOAM




Try this as your options but review this line
-lincompressibleRASModels -u incompressibleRASModelsLoad \
I think it is wrong
hk318i is offline   Reply With Quote

Old   August 24, 2014, 08:46
Default
  #10
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
now i add it but i have this error

dell@ubuntu:~/Desktop/imani-Solver$ wmake
linux64GccDPOpt/options:7: *** missing separator. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/dell/Desktop/imani-Solver
imani is offline   Reply With Quote

Old   August 24, 2014, 08:53
Default
  #11
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
oooh thanks that error was about "/"
when i put it and wmake again i for of230 it was correctly wmake
but for of211 i have these error
dell@ubuntu:~/Desktop/imani-Solver$ wmake
Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file basicThermo.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C
SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o
In file included from buoyantBoussinesqCO2SimpleFoam.C:51:0:
/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude/radiationModel.H:48:25: fatal error: basicThermo.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1
imani is offline   Reply With Quote

Old   August 24, 2014, 19:35
Default
  #12
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: UK
Posts: 125
Rep Power: 7
hk318i is on a distinguished road
Quote:
Originally Posted by imani View Post
oooh thanks that error was about "/"
when i put it and wmake again i for of230 it was correctly wmake
but for of211 i have these error
dell@ubuntu:~/Desktop/imani-Solver$ wmake
Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file basicThermo.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C
SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o
In file included from buoyantBoussinesqCO2SimpleFoam.C:51:0:
/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude/radiationModel.H:48:25: fatal error: basicThermo.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1
It seams that you included basicThermo.H in your solver but you didn't link it in your options file. You have to add -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude
and -lfluidThermophysicalModels

You have to make sure that each header file you included in your code is linked in your options file thus the compiler will be able to see it.
hk318i is offline   Reply With Quote

Old   August 24, 2014, 22:26
Default
  #13
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 84
Rep Power: 4
chrisb2244 is on a distinguished road
Not sure if this is related to your problem, but some of the OpenFOAM dependencies changed between OF-2.3.0 and OF-2.2.2 etc, so try using wclean before wmake, or alternatively manually removing the .dep files.
chrisb2244 is offline   Reply With Quote

Old   August 25, 2014, 00:48
Default
  #14
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
hi
thanks for your attention
i add it but now i have error

dell@ubuntu:~/Desktop/imani-Solver$ wmake
options:11:53: warning: backslash and newline separated by space [enabled by default]
Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C
SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o
buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1
dell@ubuntu:~/Desktop/imani-Solver$ wmake
SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o
buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1
dell@ubuntu:~/Desktop/imani-Solver$ wclean
dell@ubuntu:~/Desktop/imani-Solver$ wmake
options:11:53: warning: backslash and newline separated by space [enabled by default]
Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C
SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o
buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1
imani is offline   Reply With Quote

Old   August 25, 2014, 01:09
Default
  #15
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 84
Rep Power: 4
chrisb2244 is on a distinguished road
So your problem is not related to wmake looking for files in the wrong places, it is instead as hk318i already mentioned for one of your other files.

The lines you need to consider are near the top of your error message:

Quote:
Originally Posted by imani View Post
Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C
could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C

You need to find where these files are located, and include them in your 'Make/options' file. Also note, you can avoid the message about backslash and newline by removing the whitespace at the end of the lines, after the backslashes (\).

Last edited by chrisb2244; August 25, 2014 at 01:10. Reason: Quote tags
chrisb2244 is offline   Reply With Quote

Old   August 25, 2014, 02:16
Default
  #16
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
thanks
now i addd them
i add fvoption to option file
but now i have this error yet....

buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1


fvIOoptionList.H file was in fvoptionfile that was added in option file
imani is offline   Reply With Quote

Old   August 25, 2014, 02:30
Default
  #17
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 84
Rep Power: 4
chrisb2244 is on a distinguished road
So then I guess two questions - the first is, can you paste your current options file again?And secondly (and I'm sure you do, but just to check...), is your OF-2.1.1 installation in fact in /home/dell/OpenFOAM/OpenFOAM-2.1.1/ , and is it complete? You don't think you could possibly have deleted some files etc?
chrisb2244 is offline   Reply With Quote

Old   August 25, 2014, 02:42
Default
  #18
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
my openfoam installation is complete and i dont delete anything



EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/sampling/lnInclude -I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/fvOptions/lnInclude -I$(LIB_SRC)/turbulenceModels -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude -I$(LIB_SRC)/transportModels -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude -I$(LIB_SRC)/OpenFOAM/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lsampling \
-lmeshTools \
-lfvOptions \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels -u incompressibleRASModelsLoad \
-lincompressibleTransportModels \
-lradiationModels \
-lfluidThermophysicalModels \
-lOpenFOAM
imani is offline   Reply With Quote

Old   August 25, 2014, 03:02
Default
  #19
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 84
Rep Power: 4
chrisb2244 is on a distinguished road
So typing in a terminal
Code:
ls /home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude/fvIO*

returns something like
Code:
/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude/fvIOoptionList.C
/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude/fvIOoptionList.H
?


If so, I'm sorry but I have no idea as to where the problem is.
chrisb2244 is offline   Reply With Quote

Old   August 25, 2014, 03:29
Default
  #20
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 3
imani is on a distinguished road
excuse me
if i have problem in my openFoam. should i install it again or i can repair it?
thanks alot
imani is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a FORTRAN object to wmake compilation directives vitors OpenFOAM Programming & Development 1 April 9, 2014 14:25
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
compliing a new solver with wmake kirankarki OpenFOAM 18 October 26, 2010 17:59
Wmake problem interFoam solver feijooos OpenFOAM Running, Solving & CFD 4 December 8, 2008 12:01
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 03:34.