CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   error when Compile groovyBC (http://www.cfd-online.com/Forums/openfoam/96962-error-when-compile-groovybc.html)

lilinghan8 February 6, 2012 07:41

error when Compile groovyBC
 
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::operator==(const pve::position&, const pve::position&)’:
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

gschaider February 6, 2012 13:23

Quote:

Originally Posted by lilinghan8 (Post 342917)
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 (Post 342917)
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::operator==(const pve::position&, const pve::position&)’:
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

lilinghan8 February 6, 2012 13:53

Quote:

Originally Posted by gschaider (Post 342971)
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

gschaider February 6, 2012 18:33

Quote:

Originally Posted by lilinghan8 (Post 342973)
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

zxj160 February 9, 2012 05:51

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 February 9, 2012 06:34

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

gschaider February 9, 2012 07:44

Quote:

Originally Posted by zxj160 (Post 343530)
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

zxj160 February 9, 2012 08:28

Many thanks. It works.


All times are GMT -4. The time now is 08:30.