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

[swak4Foam] error when Compile groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2012, 08:41
Default error when Compile groovyBC
  #1
New Member
 
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 14
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, 14:23
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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 offline   Reply With Quote

Old   February 6, 2012, 14:53
Default
  #3
New Member
 
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 14
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, 19:33
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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 offline   Reply With Quote

Old   February 9, 2012, 06:51
Default
  #5
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
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, 07:34
Default
  #6
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
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, 08:44
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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 offline   Reply With Quote

Old   February 9, 2012, 09:28
Default
  #8
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
Many thanks. It works.
zxj160 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
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 04:30
[swak4Foam] groovyBC - compile error? rieuk OpenFOAM Community Contributions 7 June 15, 2011 12:06
[swak4Foam] groovyBC does not compile Marc_r OpenFOAM Community Contributions 5 November 4, 2010 14:29
[swak4Foam] how to compile groovyBC to OpenFoam v1.6? tamsilian OpenFOAM Community Contributions 1 May 27, 2010 04:15
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


All times are GMT -4. The time now is 13:56.