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/)
-   -   modifying turbulentHeatFluxTemperature BC (https://www.cfd-online.com/Forums/openfoam-programming-development/108575-modifying-turbulentheatfluxtemperature-bc.html)

Nikunj.R October 26, 2012 15:16

modifying turbulentHeatFluxTemperature BC
 
Hello All!

I am trying to use the turbulentHeatFluxTemperature BC to use with buoyantBoussinesqPimpleFoam solver, by replacing all the 'alphaEff' in the BC with 'kappaEff'. however, while doing so, I am getting the following error:


wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file heatFluxAFvPatchScalarField.C
could not open file RASModel.H for source file heatFluxAFvPatchScalarField.C
SOURCE=heatFluxAFvPatchScalarField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/turbulenceModels -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/lnInclude -I/opt/openfoam211/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/heatFluxAFvPatchScalarField.o
heatFluxAFvPatchScalarField.C:30:22: fatal error: RASModel.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/heatFluxAFvPatchScalarField.o] Error 1

my Make/options file looks like this:

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/transportModels
LIB_LIBS = \
-lfiniteVolume

Please help me with the same.

Thanks,
Nikunj.

wolfindark March 11, 2013 21:25

Quote:

Originally Posted by Nikunj.R (Post 388748)
Hello All!


wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file heatFluxAFvPatchScalarField.C
could not open file RASModel.H for source file heatFluxAFvPatchScalarField.C
SOURCE=heatFluxAFvPatchScalarField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/turbulenceModels -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/lnInclude -I/opt/openfoam211/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/heatFluxAFvPatchScalarField.o
heatFluxAFvPatchScalarField.C:30:22: fatal error: RASModel.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/heatFluxAFvPatchScalarField.o] Error 1

Nikunj.

RASModel.H file cannot be linked by the compiler. Put the path of RASModel.H file into options file as like : -I$(LIB_SRC)/path/

may be you solved the problem long time ago, but I also work on these issues nowadays... :)


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