|
[Sponsors] |
November 10, 2010, 03:42 |
fixedMeanValue execution problem
|
#1 |
Member
Join Date: Sep 2010
Posts: 36
Rep Power: 17 |
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 |
|
November 10, 2010, 14:17 |
|
#2 |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17 |
Hi,
in general, you must not add the #inlude below the Code:
int main(int argc, char *argv[]) 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 |
|
November 11, 2010, 03:52 |
|
#3 |
Member
Join Date: Sep 2010
Posts: 36
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Incoherent problem table in hollow-fiber spinning | Gianni | FLUENT | 0 | April 5, 2008 11:33 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
problem with using colocated code | Jack | Main CFD Forum | 0 | December 15, 2002 01:15 |
convergence problem | Trushar | Phoenics | 5 | August 28, 2002 00:40 |