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

Namespace

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 22, 2005, 05:13
Default Hi All, I am trying to use LE
  #1
Member
 
diablo80@web.de
Join Date: Mar 2009
Posts: 93
Rep Power: 8
sampaio is on a distinguished road
Hi All,
I am trying to use LES filter and simpleFilter in the main code (in the solver).

I tried many things, adding the corresponding include files, using namespaces (Foam::simpleFilter::simpleFilter simpleFilter_), but nothing seems to work.

Does anybody knows which lines i should add in my solver, so that i can use simpleFilter in the main program (solver)? (I imagine adding a couple of lines would do, right?)

Thanks,
Luiz
sampaio is offline   Reply With Quote

Old   April 22, 2005, 06:32
Default You need to add LESfilter.H an
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
You need to add LESfilter.H and you need to modify your Make/options file to pick up the filter headers and library, i.e.

EXE_INC = \
-I$(LIB_SRC)/LESmodels/LESfilters/lnInclude

LIB_LIBS = \
-lLESfilters
eugene is offline   Reply With Quote

Old   April 22, 2005, 12:44
Default Hi Eugene, That is what I was
  #3
Member
 
diablo80@web.de
Join Date: Mar 2009
Posts: 93
Rep Power: 8
sampaio is on a distinguished road
Hi Eugene,
That is what I was doing, but I get the following compilation error:

SOURCE_DIR=.
SOURCE=myles.C ; g++ -m32 -Dlinux -Wall -W -Wno-unused-parameter -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels/LESdeltas/lnInclude -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels/LESfilters/lnInclude -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/transportModels -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/cfdTools/incompressible -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/cfdTools/lnInclude -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/meshTools/lnInclude -I/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/sampling/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxOpt/myles.o
In file included from myles.C:66:
/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels/LESfilters/lnInclude/LESfilter .H: In function `int main(int, char**)':
/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels/LESfilters/lnInclude/LESfilter .H:47: error: unknown namespace `<declaration>'
/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels/LESfilters/lnInclude/LESfilter .H:46: error: expected primary-expression before "namespace"
/home/luizebs/OpenFOAM/OpenFOAM-1.1/src/LESmodels/LESfilters/lnInclude/LESfilter .H:46: error: expected `;' before "namespace"

Thanks,
Luiz
sampaio is offline   Reply With Quote

Old   April 22, 2005, 22:22
Default Thanks Eugene, I got it now.
  #4
Member
 
diablo80@web.de
Join Date: Mar 2009
Posts: 93
Rep Power: 8
sampaio is on a distinguished road
Thanks Eugene,
I got it now.
I was putting #include inside main, when it should be outside...
Thanks,
Luiz
sampaio is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 14:46.