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

fixedMeanValue execution problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2010, 02:42
Unhappy fixedMeanValue execution problem
  #1
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 16
siddharameshwara is on a distinguished road
Hi to every one,


I am trying to include fixedMeanValue boundary condition to cavitating Foam solver when i execute it .It is showing the following error could any one help me in this regard

Making dependency list for source file cavitatingFoam.C
SOURCE=cavitatingFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/transportModels -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/transportModels/incompressible/lnInclude -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/transportModels/interfaceProperties/lnInclude -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/turbulenceModels/incompressible/turbulenceModel -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/barotropicCompressibilityModel/lnInclude -IlnInclude -I. -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/appl/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc43DPOpt/cavitatingFoam.o
In file included from cavitatingFoam.C:46:
fixedMeanValueFvPatchField.H: In function ‘int main(int, char**)’:
fixedMeanValueFvPatchField.H:42: error: ‘namespace’ definition is not allowed here
In file included from fixedMeanValueFvPatchField.H:176,
from cavitatingFoam.C:46:
fixedMeanValueFvPatchField.C:32: error: ‘namespace’ definition is not allowed here
/appl/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/appl/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable ‘nCorr’
/appl/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInc
siddharameshwara is offline   Reply With Quote

Old   November 10, 2010, 13:17
Default
  #2
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17
herbert is on a distinguished road
Hi,

in general, you must not add the #inlude below the
Code:
 
int main(int argc, char *argv[])
if you want to define a new class.

BTW: It would be better if you would create a own library out of fixedMeanValue and include this lib in your system/controlDict. That will prevent problems using paraview for postprocessing.

Regards,
Stefan
herbert is offline   Reply With Quote

Old   November 11, 2010, 02:52
Smile
  #3
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 16
siddharameshwara is on a distinguished road
HI stefen,

I am new to this openfoam. I do not know the procedure you have explained.Could you please elaborate step wise with some what in detail.Because i don't know how to create lib and add to system controldict that you have explained.I would be grateful to you.

Thanks in advance
siddharameshwara 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
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 10:33
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
problem with using colocated code Jack Main CFD Forum 0 December 15, 2002 00:15
convergence problem Trushar Phoenics 5 August 27, 2002 23:40


All times are GMT -4. The time now is 15:06.