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

Problem in Compiling the solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2010, 08:44
Default Problem in Compiling the solver
  #1
Member
 
m.maneshi's Avatar
 
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17
m.maneshi is on a distinguished road
Dear all
Here i added one of the Header files to the solver files and compile it and i encounter this error which i cant understand it. would any one please help me what it does mean ?

In file included from mdFoam.C:67:
/home/mehdi/OpenFOAM/OpenFOAM-1.6/src/lagrangian/molecularDynamics/molecule/lnInclude/temperatureEquilibration.H: In function ‘int main(int, char**)’:
/home/mehdi/OpenFOAM/OpenFOAM-1.6/src/lagrangian/molecularDynamics/molecule/lnInclude/temperatureEquilibration.H:37: error: ‘targetTemperature’ was not declared in this scope
make: *** [Make/linuxGccDPOpt/mdFoam.o] Error 1

Regards
m.maneshi is offline   Reply With Quote

Old   November 2, 2010, 17:08
Default Options file in Make folder?
  #2
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Did you set up your Options file in your make folder to include another header from a source outside your solver folder?

if I wanted to include something from the lagrangian basic and intermediate class, i would add the folder containing the header i wanted on the include path

Code:
EXE_INC = \
  ...other include files here\
    -I$(LIB_SRC)/lagrangian/basic/lnInclude \
    -I$(LIB_SRC)/lagrangian/intermediate/lnInclude
chegdan is offline   Reply With Quote

Old   November 2, 2010, 18:01
Default
  #3
Member
 
m.maneshi's Avatar
 
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17
m.maneshi is on a distinguished road
well, i didnt understand the point you mentioned completely. i do this by adding the # include <temperatureEquilibration.H> to the solver file and when trying to compile it such error happens... What is the reason for it?
m.maneshi is offline   Reply With Quote

Old   November 2, 2010, 18:41
Default that variable is undefined
  #4
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
try adding the header file readmdEquilibrationDict.H before the temperatureEquilibration.H file. The temperatureEquilibration.H file needs the variable targetTemperature to be defined...and that what it is complaining about. Im looking in the solver mdEquilibrationFoam in openfoam-1.5-dev...but this is probably relevant to other MD solvers in OF.

Dan
chegdan is offline   Reply With Quote

Old   November 3, 2010, 03:07
Default
  #5
Member
 
m.maneshi's Avatar
 
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17
m.maneshi is on a distinguished road
Thanks alot.
m.maneshi 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 05:43
problem with developing new LES solver Edison_Ge OpenFOAM 2 June 18, 2009 02:26
CFX 11 x64 solver? problem Attesz CFX 6 June 7, 2009 09:37
Problem in compiling property(density) UDF satish2968 FLUENT 3 October 31, 2008 16:06
Problem in tesing the icoFoam solver liuzhw OpenFOAM Running, Solving & CFD 0 November 2, 2005 23:33


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