|
[Sponsors] |
problem about combiling buoyantBoussinesqPimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 27, 2014, 02:07 |
problem about combiling buoyantBoussinesqPimpleFoam
|
#1 |
New Member
INOUE Naoaki
Join Date: Nov 2014
Posts: 2
Rep Power: 0 |
I want to use heatflux as boundary condition on LES.
In OpenFOAM, I want to use turbulentHeatFluxTemperature function to set patch field. So, I tried to modify the solver of buoyantBoussinesqPimpleFoam available to LES model. Following is part of the solver before modify. Code:
#include "fvCFD.H" #include "singlePhaseTransportModel.H" //#include "turbulenceModel.H" #include "LESModel.H" //#include "RASModel.H" #include "pimpleControl.H" I added the last line. Code:
#include "fvCFD.H" #include "singlePhaseTransportModel.H" //#include "turbulenceModel.H" #include "LESModel.H" //#include "RASModel.H" #include "pimpleControl.H" #include "turbulentHeatFluxTemperatureFvPatchScarlarfield.H" But following error message is displayed. Code:
SOURCE=buoyantBoussinesqPimpleFoamCustom3.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../buoyantBoussinesqSimpleFoam -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/turbulenceModels -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/turbulenceModels/incompressible/LES/lnInclude -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/transportModels -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqPimpleFoamCustom3.o buoyantBoussinesqPimpleFoamCustom3.C:54:61: error: turbulentHeatFluxTemperatureFvPatchScarlarfield.H: No such file or directory /home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’: /home/usr0/14M29044/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ make: *** [Make/linux64GccDPOpt/buoyantBoussinesqPimpleFoamCustom3.o] Error 1 |
|
November 27, 2014, 04:58 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
Check this post out:
http://www.cfd-online.com/Forums/ope...tml#post514783 Your error seems to be the first one: Code:
myExe.c:2:17: fatal error: foo.h: No such file or directory #include "foo.h" Code:
-I$YOUR_HEADER_DIR |
|
November 28, 2014, 06:02 |
|
#3 | |
New Member
INOUE Naoaki
Join Date: Nov 2014
Posts: 2
Rep Power: 0 |
Quote:
Thank you very much ! Follow your advice, I have added Code:
-I$(LIB_SRC)/transportModels/incompressible/RAS/derivedFvpatchFields/turbulentHeatFluxTemperature But I got the error message as follows Code:
linux64GccDPOpt/options:13: *** missing separator. Stop. Make/linux64GccDPOpt/options:13: *** missing separator. Stop. Thanks again! |
||
November 28, 2014, 13:08 |
|
#4 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
I haven't seen that error before (nor do I have access to OF right now to reproduce it), but my guess is the following:
In order to write one thing on two lines, you need to let Make/options "know" that they are one thing written on two lines. This is done by finishing with a "\" if there will be another line. For example (note the "\" in bold): Code:
EXE_INC = \ -I../fooLib \ -I$(LIB_SRC)/transportModels/incompressible/RAS/derivedFvpatchFields/turbulentHeatFluxTemperature |
|
November 28, 2014, 16:34 |
|
#5 |
Senior Member
|
Hi,
Code:
*** missing separator. Stop. And thread starter doesn't contain the error (i.e. you've posted the "Error 1" words, though they have nothing to do with original error). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 05:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 14:52 |