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

error when Compile groovyBC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 6, 2012, 07:41
Default error when Compile groovyBC
  #1
New Member
 
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 4
lilinghan8 is on a distinguished road
hello,

I downloaded groovyBC from (http://openfoamwiki.net/index.php/Co...groovyWaveTank)

My bison version is 2.4.1 and openfoam is 2.1.0
When I did the second step about compilation and installation, it seems that I did not succeed.

here is the details:
wmakeLnInclude: linking include files to ./lnInclude
SOURCE=PatchValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
In file included from Make/linux64GccDPOpt/location.hh:44:0,
from PatchValueExpressionParser.tab.hh:65,
from PatchValueExpressionDriver.H:59,
from PatchValueExpressionDriver.C:34:
position.hh: In function ‘bool pve:perator==(const pve:osition&, const pve:osition&)’:
position.hh:136:69: warning: suggest parentheses around ‘&&’ within ‘||’
PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const pve::location&, const std::string&)’:
PatchValueExpressionDriver.C:192:11: error: expected unqualified-id before ‘::’ token
PatchValueExpressionDriver.C:192:11: error: expected ‘;’ before ‘::’ token
PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const std::string&)’:
PatchValueExpressionDriver.C:202:11: error: expected unqualified-id before ‘::’ token
PatchValueExpressionDriver.C:202:11: error: expected ‘;’ before ‘::’ token
make: *** [Make/linux64GccDPOpt/PatchValueExpressionDriver.o] Error 1

Anyone know how to fix it?

Regards,
Lee
lilinghan8 is offline   Reply With Quote

Old   February 6, 2012, 13:23
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,837
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lilinghan8 View Post
hello,

I downloaded groovyBC from (http://openfoamwiki.net/index.php/Co...groovyWaveTank)
Just to clarify: you read the words "Note: Active development of groovyBC now takes place in swak4Foam so please have a look there for more up-to-date versions. Support for this version of groovyBC is discontinued with 2.0." at the top of that page. Didn't you?

Quote:
Originally Posted by lilinghan8 View Post
My bison version is 2.4.1 and openfoam is 2.1.0
When I did the second step about compilation and installation, it seems that I did not succeed.

here is the details:
wmakeLnInclude: linking include files to ./lnInclude
SOURCE=PatchValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
In file included from Make/linux64GccDPOpt/location.hh:44:0,
from PatchValueExpressionParser.tab.hh:65,
from PatchValueExpressionDriver.H:59,
from PatchValueExpressionDriver.C:34:
position.hh: In function ‘bool pve:perator==(const pve:osition&, const pve:osition&)’:
position.hh:136:69: warning: suggest parentheses around ‘&&’ within ‘||’
PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const pve::location&, const std::string&)’:
PatchValueExpressionDriver.C:192:11: error: expected unqualified-id before ‘::’ token
PatchValueExpressionDriver.C:192:11: error: expected ‘;’ before ‘::’ token
PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const std::string&)’:
PatchValueExpressionDriver.C:202:11: error: expected unqualified-id before ‘::’ token
PatchValueExpressionDriver.C:202:11: error: expected ‘;’ before ‘::’ token
make: *** [Make/linux64GccDPOpt/PatchValueExpressionDriver.o] Error 1

Anyone know how to fix it?
At a first glance I'd say that the problem is that you're using the non-swak-version of groovyBC so please confirm that you use the swak-version (if you don't: try that version. It is the only one that will work with 2.x)

If the problem persists please report the compiler-version

Bernhard
gschaider is online now   Reply With Quote

Old   February 6, 2012, 13:53
Default
  #3
New Member
 
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 4
lilinghan8 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Just to clarify: you read the words "Note: Active development of groovyBC now takes place in swak4Foam so please have a look there for more up-to-date versions. Support for this version of groovyBC is discontinued with 2.0." at the top of that page. Didn't you?



At a first glance I'd say that the problem is that you're using the non-swak-version of groovyBC so please confirm that you use the swak-version (if you don't: try that version. It is the only one that will work with 2.x)

If the problem persists please report the compiler-version

Bernhard
Hi, thanks for your reply.
As I am not a English speaker and totally new in this area, I would like to ask do you mean the groovyBC will not work successfully with My openfoam210 version?
And what is swak-version, is that short for swak4Foam (http://openfoamwiki.net/index.php/Contrib/swak4Foam)? I downloaded this one and it seems that it is installed successfully.

I wanna simulate simple wave in tank so I need setup the time-dependent boundary condition for wave-maker side, can you link me any tutorial about how to do this?

Many thanks
Lee
lilinghan8 is offline   Reply With Quote

Old   February 6, 2012, 18:33
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,837
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lilinghan8 View Post
Hi, thanks for your reply.
As I am not a English speaker and totally new in this area, I would like to ask do you mean the groovyBC will not work successfully with My openfoam210 version?
And what is swak-version, is that short for swak4Foam (http://openfoamwiki.net/index.php/Contrib/swak4Foam)? I downloaded this one and it seems that it is installed successfully.

I wanna simulate simple wave in tank so I need setup the time-dependent boundary condition for wave-maker side, can you link me any tutorial about how to do this?

Many thanks
Lee
Hi!

Short answer:
- the version you downloaded won't work with OpenFOAM 2.0 and higher
- Yes. swak is short for swak4Foam. Get that one. It has groovyBC (amongst other stuff)

Longer:
Usually I refer to the version of groovyBC as "classic groovyBC". The version that comes with swak4Foam I call the "swak-version of groovyBC". The classic version was "maintained" in parallel to the swak-version until OpenFOAM 1.7 to ease the transition for those who were using groovyBC (especially as swak4Foam only works for OF 1.6 and higher)

PS: some kind soul updated the Wiki-page so that 2.x-users are pointed to swak4Foam in the download-section of the groovyBC-page
gschaider is online now   Reply With Quote

Old   February 9, 2012, 05:51
Default
  #5
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 107
Rep Power: 4
zxj160 is on a distinguished road
Hello, I also try to use groovyBC. I have download swak4Foam.
svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

But I do not know how to install it and make it usable. Could you give me some help?
zxj160 is offline   Reply With Quote

Old   February 9, 2012, 06:34
Default
  #6
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 107
Rep Power: 4
zxj160 is on a distinguished road
Hello, the error message is as follows,
jian@jian-VirtualBox:~/OpenFOAM/jian-2.1.0/groovyBC$ wmake libso
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file groovyBCCommons.C
Making dependency list for source file groovyBCFvPatchFields.C
could not open file PatchValueExpressionDriver.H for source file groovyBCFvPatchFields.C
Making dependency list for source file groovyBCDirectionFvPatchFields.C
could not open file PatchValueExpressionDriver.H for source file groovyBCDirectionFvPatchFields.C
Making dependency list for source file groovyBCFixedValueFvPatchFields.C
could not open file PatchValueExpressionDriver.H for source file groovyBCFixedValueFvPatchFields.C
Making dependency list for source file groovyBCJumpFvPatchFields.C
could not open file PatchValueExpressionDriver.H for source file groovyBCJumpFvPatchFields.C
Making dependency list for source file groovyBCPointPatchFields.C
could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionDriver.H for source file groovyBCPointPatchFields.C
could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C
SOURCE=groovyBCCommons.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCCommons.o
SOURCE=groovyBCFvPatchFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o
In file included from groovyBCFvPatchFields.H:37:0,
from groovyBCFvPatchFields.C:36:
groovyBCFvPatchField.H:48:40: fatal error: PatchValueExpressionDriver.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1
jian@jian-VirtualBox:~/OpenFOAM/jian-2.1.0/groovyBC$ wmake
SOURCE=groovyBCFvPatchFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o
In file included from groovyBCFvPatchFields.H:37:0,
from groovyBCFvPatchFields.C:36:
groovyBCFvPatchField.H:48:40: fatal error: PatchValueExpressionDriver.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1
zxj160 is offline   Reply With Quote

Old   February 9, 2012, 07:44
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,837
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by zxj160 View Post
Hello, I also try to use groovyBC. I have download swak4Foam.
svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

But I do not know how to install it and make it usable. Could you give me some help?
You've got to build swak4Foam as a whole (it is not possible to just pick groovyBC - well it is, but it is not that easy).

In the directory of the sources do

wmake all

and everything should be built
gschaider is online now   Reply With Quote

Old   February 9, 2012, 08:28
Default
  #8
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 107
Rep Power: 4
zxj160 is on a distinguished road
Many thanks. It works.
zxj160 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC - compile error? rieuk OpenFOAM Pre-Processing 7 June 15, 2011 11:06
groovyBC and Eqn.setReference() benk OpenFOAM 3 June 2, 2011 08:49
groovyBC does not compile Marc_r OpenFOAM Running, Solving & CFD 5 November 4, 2010 14:29
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 09:54.