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

problem about combiling buoyantBoussinesqPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2014, 02:07
Default problem about combiling buoyantBoussinesqPimpleFoam
  #1
New Member
 
INOUE Naoaki
Join Date: Nov 2014
Posts: 2
Rep Power: 0
Ninou is on a distinguished road
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"
Following is the solver after modify.
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"
After modified, I tried to compile this solver.
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
Best Regards
Ninou is offline   Reply With Quote

Old   November 27, 2014, 04:58
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
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"
Which means that you need to add another "-I" compiler flag linking to the directory in which "turbulentHeatFluxTemperatureFvPatchScarlarfield.H " is contained. Something like
Code:
-I$YOUR_HEADER_DIR
should be added to EXE_INC or LIB_INC in Make/options.
floquation is offline   Reply With Quote

Old   November 28, 2014, 06:02
Default
  #3
New Member
 
INOUE Naoaki
Join Date: Nov 2014
Posts: 2
Rep Power: 0
Ninou is on a distinguished road
Quote:
Originally Posted by floquation View Post
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"
Which means that you need to add another "-I" compiler flag linking to the directory in which "turbulentHeatFluxTemperatureFvPatchScarlarfield.H " is contained. Something like
Code:
-I$YOUR_HEADER_DIR
should be added to EXE_INC or LIB_INC in Make/options.

Thank you very much !

Follow your advice, I have added
Code:
-I$(LIB_SRC)/transportModels/incompressible/RAS/derivedFvpatchFields/turbulentHeatFluxTemperature
to EXE_INC Make/options .

But I got the error message as follows
Code:
 linux64GccDPOpt/options:13: *** missing separator.  Stop.
Make/linux64GccDPOpt/options:13: *** missing separator.  Stop.
I am a beginer of OF, so I don't know very specific about how to link a directory. Can you give me a guide ?

Thanks again!
Ninou is offline   Reply With Quote

Old   November 28, 2014, 13:08
Default
  #4
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
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
Please post your Make/options and Make/files file here for us to see if the above was not your problem. Otherwise it is hard to diagnose it.
floquation is offline   Reply With Quote

Old   November 28, 2014, 16:34
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Code:
*** missing separator.  Stop.
error usually happened when I compiled OpenFOAM on OS X and have comments in Make/options or Make/files files.

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).
alexeym is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 21:51.