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

[swak4Foam] Error installing swak4Foam

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

Like Tree26Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2013, 06:24
Default
  #21
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
Quote:
Originally Posted by lohasz View Post
Sorry, the verison of swak4foam was given in the title

It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté

I have download this and do the comment,
//#define FOAM_LOOKUPCLASS_NO_CONST
it compiles okay in my foam 2.2.0.
And run funkySetFields -time 0
It works!
Thanks you all you guys especially Gschaider.you did a splenedid work.!



Well, I tried to make the velocity of alpha 0 field to be (0 -0.1 0)
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object funkySetFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

expressions
(
	internalFields 
	{
	field	alpha1;
	expression "1";    
	condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4";//f   x^2+(y-0.0015)^2<0.0015^2/4
	keepPatches	1;
	}
        
        internalFields 
	{
	field	U;
	expression "(0 -0.1 0)";
	condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4";//f   x^2+(y-0.0015)^2<0.0015^2/4
	keepPatches	1;
	}

);
ERROR:
Code:
Create time

Create mesh for time = 0


Time = 0
 Using funkySetFieldsDict 



Part: internalFields
 Modifying field alpha1 of type volScalarField

 Putting "1" into field alpha1 at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true
 Keeping patches unaltered

 Setting 284 of 8000 cells
 Writing to "alpha1"


Part: internalFields
 Modifying field U of type volVectorField

 Putting "(0 0 0)" into field U at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true



--> FOAM FATAL ERROR: 
 Parser Error for driver FieldValueExpressionDriver at "1.4" :"syntax error, unexpected number"
"(0 0 0)"
     ^
-----|

Context of the error:


- Driver constructed from scratch
  Evaluating expression "(0 0 0)"


    From function parsingValue
    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.

FOAM exiting
Does anyone know how to handle this?
Thanks in advanvce.

Last edited by sharonyue; March 21, 2013 at 09:18.
sharonyue is offline   Reply With Quote

Old   March 24, 2013, 13:16
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi sharonyue,
Quote:
Originally Posted by sharonyue View Post
...
Well, I tried to make the velocity of alpha 0 field to be (0 -0.1 0)
...
I suggest you start a new thread detailing what you are trying to do and the error you're getting, because this thread seems to be dedicated to installation issues

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 24, 2013, 17:52
Default
  #23
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 sharonyue View Post
I
Code:
 Putting "(0 0 0)" into field U at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true



--> FOAM FATAL ERROR: 
 Parser Error for driver FieldValueExpressionDriver at "1.4" :"syntax error, unexpected number"
"(0 0 0)"
     ^
-----|

Context of the error:


- Driver constructed from scratch
  Evaluating expression "(0 0 0)"


    From function parsingValue
    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.

FOAM exiting
Does anyone know how to handle this?
Thanks in advanvce.
Yep. By an advance technique called RTFM (Read the fine manual): http://openfoamwiki.net/index.php/Co...ulsedPitzDaily

(vectors, for technical reasons, have a different syntax in swak)

Quote:
Originally Posted by wyldckat View Post
I suggest you start a new thread detailing what you are trying to do and the error you're getting, because this thread seems to be dedicated to installation issues
Of course Bruno is right here: a new problem deserves a new thread
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 24, 2013, 22:58
Default
  #24
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Yep. By an advance technique called RTFM (Read the fine manual): http://openfoamwiki.net/index.php/Co...ulsedPitzDaily

(vectors, for technical reasons, have a different syntax in swak)


Of course Bruno is right here: a new problem deserves a new thread
Okay,I am sorry for that,and Thanks very much.I will try it a afterdays~
sharonyue is offline   Reply With Quote

Old   April 1, 2013, 14:51
Default
  #25
Member
 
angel
Join Date: May 2009
Location: Spain
Posts: 46
Rep Power: 16
anmartin is on a distinguished road
Hello,

First at all, I want to thanks you all you guys especially Gschaider.you did a splendid work.! and many tanks for your work in swak4foam.

I have update to latest version of OF (Version 2.2.0) and i have tried to install swak4foam as you mention
1º hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam
2º hg update port 2.0.x

3º copy swakConfiguration.example to swakConfiguration
4º comment the line //#define FOAM_LOOKUPCLASS_NO_CONST
5º Compile with this result file (allwmakelog file)

But when i try to use an example that run perfect in previous version of OF 2.0+swak4foam, I obtain the following error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file simpleFunctionObject/simpleFunctionObject.H at line 160.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::functionObjectList::movePoints(Foam:olyMes h const&) at ??:?
#3 Foam:olyMesh::movePoints(Foam::Field<Foam::Vecto r<double> > const&) at ??:?
#4 Foam::fvMesh::movePoints(Foam::Field<Foam::Vector< double> > const&) at ??:?
#5 Foam::solidBodyMotionFvMesh::update() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
Abortado (`core' generado)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The controldic is:
libs (
//"libOpenFOAM.so" // keeps paraFoam happy
"libtwoPhaseInterfaceProperties.so"
"libinterfaceProperties.so"
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
);
functions
{
liquid_Vol
{
type swakExpression;
valueType internalField;
accumulations (sum);
expression "alpha1*vol()";
//verbose true;
//autowrite true;
}
};


Does anyone know how to handle this?
Thanks in advance.

Angel,
Attached Files
File Type: gz allwmakelog.tar.gz (10.0 KB, 2 views)
anmartin is offline   Reply With Quote

Old   April 1, 2013, 18:10
Default
  #26
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 anmartin View Post
Hello,

First at all, I want to thanks you all you guys especially Gschaider.you did a splendid work.! and many tanks for your work in swak4foam.

I have update to latest version of OF (Version 2.2.0) and i have tried to install swak4foam as you mention
1º hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam
2º hg update port 2.0.x

3º copy swakConfiguration.example to swakConfiguration
4º comment the line //#define FOAM_LOOKUPCLASS_NO_CONST
5º Compile with this result file (allwmakelog file)

But when i try to use an example that run perfect in previous version of OF 2.0+swak4foam, I obtain the following error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file simpleFunctionObject/simpleFunctionObject.H at line 160.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::functionObjectList::movePoints(Foam:olyMes h const&) at ??:?
#3 Foam:olyMesh::movePoints(Foam::Field<Foam::Vecto r<double> > const&) at ??:?
#4 Foam::fvMesh::movePoints(Foam::Field<Foam::Vector< double> > const&) at ??:?
#5 Foam::solidBodyMotionFvMesh::update() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
Abortado (`core' generado)
The missing information was with which solver you're doing this. Obviously one that does mesh movement.

I think the problem is my fault. The new API requires that the functionObjects have methods that say "Hey. I know how to behave during mesh-movement". I said "OK. Fair enough. But I'm not sure if all my function objects are really up to it. So I'll include a dummy implementation that will blow up. So I'll know I'll have to check". And then I forgot about it. That's why it blew up in YOUR face.

Quick fix: go to the file Libraries/simpleFunctionObjects/simpleFunctionObject/simpleFunctionObject.H
search for the line
Code:
        notImplemented("simpleFunctionObject::updateMesh");
and rewrite it to
Code:
//        notImplemented("simpleFunctionObject::updateMesh");
Also do that with the similar line below it. Recompile. Then it should work
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 7, 2013, 07:31
Default swak4Foam installation
  #27
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 13
Claudio87 is on a distinguished road
Dear Foamers,

I have similar problems with the installation of swak4Foam, with the last version.
I create a new post here
http://www.cfd-online.com/Forums/ope...tml#post425801
if you prefer, or answer directly in this one.

I attached the log of ./Allwmake

Thank you in advance for your help!


Best regards,
Claudio
Attached Files
File Type: txt wmake.txt (1.4 KB, 20 views)
Claudio87 is offline   Reply With Quote

Old   July 21, 2013, 15:07
Default swak4foam installation
  #28
New Member
 
sebastian n
Join Date: Nov 2012
Posts: 17
Rep Power: 13
gruenertee is on a distinguished road
Hi Foamers,

i failed to install Swak4Foam_release_0.2.3 on my system. I am using Openfoam 2.2.0 on Ubuntu 12.04 LTS; i installed bison 2.5 and flex 2.5.35 and i did ./Allwmake; i added my wmake.txt file.

Best regards,

gruenertee
Attached Files
File Type: txt wmake.txt (9.1 KB, 17 views)
gruenertee is offline   Reply With Quote

Old   July 21, 2013, 15:14
Default
  #29
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings gruenertee,

According to your description, it looks like you did not read the warning sign
Quote:
Originally Posted by http://openfoamwiki.net/index.php/Contrib/swak4Foam#Downloading
Warning: seems like there is a crucial change in the API between 2.2.0 and 2.2.x which makes compilation on 2.2.0 fail. If you use that version you'll have to apply a change described in this forum post
In addition, the 0.2.4 version can be retrieved directly from the SVN, as instructed in the wiki page: http://openfoamwiki.net/index.php/Co...am#Downloading
If you do not know how or simply do not want to use SVN, then you can download the latest 0.2.4 from here: https://github.com/wyldckat/swak4foam/archive/OF22X.zip

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 22, 2013, 05:50
Default
  #30
New Member
 
sebastian n
Join Date: Nov 2012
Posts: 17
Rep Power: 13
gruenertee is on a distinguished road
wyldckat, I am very grateful for your pointing out the swak4foam version 0.2.4 for Openfoam 2.2.0; The installation process was successfully working.
gruenertee is offline   Reply With Quote

Old   July 23, 2013, 05:04
Default
  #31
New Member
 
Join Date: Apr 2013
Posts: 24
Rep Power: 12
mebinitap is on a distinguished road
Hi All,

I tried to install swak4foam from the link:
https://github.com/wyldckat/swak4foam/archive/OF22X.zip

However I got the following error:

I/opt/openfoam220/src/sampling/lnInclude -I/opt/openfoam220/src/meshTools/Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/funkySetFields.o -L/opt/openfoam220/platforms/linuxGccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/bin/funkySetFields
make[1]: Leaving directory `/home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetFields'
Making dependency list for source file replayTransientBC.C
make[1]: Entering directory `/home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'
SOURCE=replayTransientBC.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/cfdTools/lnInclude -I/opt/openfoam220/src/cfdTools/general/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/replayTransientBC.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/cfdTools/lnInclude -I/opt/openfoam220/src/cfdTools/general/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/replayTransientBC.o -L/opt/openfoam220/platforms/linuxGccDPOpt/lib \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/bin/replayTransientBC
make[1]: Leaving directory `/home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Libraries (most people will be fine without setting that variable)



It would be great if anybody can provide some help..

(I am using FOAM 2.2.0, Bison 2.5, Flex 2.5.35)
mebinitap is offline   Reply With Quote

Old   July 23, 2013, 05:40
Default
  #32
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 mebinitap View Post
Hi All,

I tried to install swak4foam from the link:
https://github.com/wyldckat/swak4foam/archive/OF22X.zip

However I got the following error:

Code:
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Libraries (most people will be fine without setting that variable)

It would be great if anybody can provide some help..

(I am using FOAM 2.2.0, Bison 2.5, Flex 2.5.35)
You mean that? If it was an error there would be something like "error", "abort", "failure", "fatal incident", "death from above" in the output not "most people will be fine". This is just a reminder (not even a warning) for people who want to write programs based on swak. For the the time being consider yourself to be in the "most people" category.

The rest of the output looks fine. If you want to be sure rerun Allwmake. You should only see a the lines about the libraries being created and the above message
immortality likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 23, 2013, 08:02
Default
  #33
New Member
 
Join Date: Apr 2013
Posts: 24
Rep Power: 12
mebinitap is on a distinguished road
Ok .. got it.. Thanx
mebinitap is offline   Reply With Quote

Old   July 29, 2013, 13:24
Default Compilation error
  #34
New Member
 
Join Date: Feb 2012
Posts: 11
Rep Power: 14
franzi_ is on a distinguished road
Hey! I tried to compile swak4foam but get a lot of errors. Tried the commenting in swak.H but did not work. Any other suggestions? I use OpenFoam2.2.x and swak4foam0.2.3!

I included a part here and attached the whole error message as word.
Hope somebody can help. Thanks a lot in advance!

Errormessage:

Quote:
bison: /disk1/users/fpfender/OpenFOAM/ThirdParty-2.2.x/platforms/linux64/bison-2.7/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
mv: cannot stat `*.tab.cc': No such file or directory
sed: can't read location.hh: No such file or directory
mv: cannot stat `location.hh': No such file or directory
mv: cannot stat `stack.hh': No such file or directory
mv: cannot stat `position.hh': No such file or directory
sed: can't read PatchValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: error: Make/linux64Gcc46DPOpt/PatchValueExpressionParser.C: No such file or directory
g++: fatal error: no input files
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/PatchValueExpressionParser.o] Error 1
make: *** Waiting for unfinished jobs....
bison: /disk1/users/fpfender/OpenFOAM/ThirdParty-2.2.x/platforms/linux64/bison-2.7/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
mv: cannot stat `*.tab.cc': No such file or directory
sed: can't read location.hh: No such file or directory
mv: cannot stat `location.hh': No such file or directory
mv: cannot stat `stack.hh': No such file or directory
mv: cannot stat `position.hh': No such file or directory
sed: can't read SubsetValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: error: Make/linux64Gcc46DPOpt/SubsetValueExpressionParser.C: No such file or directory
g++: fatal error: no input files
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/SubsetValueExpressionParser.o] Error 1
ExpressionResult/ExpressionResult.C: In member function 'void Foam::ExpressionResult::uglyDelete()':
ExpressionResult/ExpressionResult.C:216:20: warning: deleting 'void*' is undefined [enabled by default]
bison: /disk1/users/fpfender/OpenFOAM/ThirdParty-2.2.x/platforms/linux64/bison-2.7/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
mv: cannot stat `*.tab.cc': No such file or directory
sed: can't read location.hh: No such file or directory
mv: cannot stat `location.hh': No such file or directory
mv: cannot stat `stack.hh': No such file or directory
mv: cannot stat `position.hh': No such file or directory
sed: can't read FieldValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: error: Make/linux64Gcc46DPOpt/FieldValueExpressionParser.C: No such file or directory
g++: fatal error: no input files
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on
Attached Files
File Type: docx log.docx (17.9 KB, 1 views)
franzi_ is offline   Reply With Quote

Old   July 29, 2013, 14:26
Default
  #35
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 franzi_ View Post
Hey! I tried to compile swak4foam but get a lot of errors. Tried the commenting in swak.H but did not work. Any other suggestions? I use OpenFoam2.2.x and swak4foam0.2.3!

I included a part here and attached the whole error message as word.
Hope somebody can help. Thanks a lot in advance!

Errormessage:
At first: Use CODE instead of QUOTE for output. That way one can easily quote your error messages.

Anyway: the error message says that there is a installation problem with the bison-version in your ThirdParty-tools (did you add this bison yourself or does it come with the prepackaged ThirdParty-stuff?). Hard to tell what is actually the problem. I'd suggest to use the bison from the operating system
franzi_ and immortality like this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 10, 2013, 13:28
Default
  #36
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Just did a checkout via hg and bumped into the same issue. Is there a reason for keeping around that line?

Quote:
Originally Posted by gschaider View Post
The problem is a workaround for older versions of 1.6-ext that does not seem to be necessary anymore. In the file

Libraries/swak4FoamParsers/include/swak.H

comment out the line

Code:
#define FOAM_SYMMTENSOR_WORKAROUND
to

Code:
// #define FOAM_SYMMTENSOR_WORKAROUND
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   September 10, 2013, 18:55
Default
  #37
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 akidess View Post
Just did a checkout via hg and bumped into the same issue. Is there a reason for keeping around that line?
Nostalgia and old installations. But you're right: should be commented out by default.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 12, 2013, 17:03
Default
  #38
New Member
 
alex
Join Date: Jun 2009
Posts: 17
Rep Power: 16
oort is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Sorry. Overlooked it. The title is not included in the mails the system sends out (usually I read those, click on the link and start typing)



You have 2.2? (not 2.2.x - which I have). Seems there is a difference between the two. Could you try the following: edit Libraries/swak4FoamParsers/include/swak.H and comment out the line

#define FOAM_LOOKUPCLASS_NO_CONST

and retry. Thanks

Hi. What is suposed to change in this file?
I have comment it (with a //), I have maintained without change and never works. I have also patched with the swak2Foam_024_OF22x_49808a1c.gz file but the compilations always crashes...


Code:
...
../FieldValueExpressionParser.yy:5492:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5499:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5507:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5514:13: error: ‘yylloc’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on
What should I do?

Thanks,
Carlos
oort is offline   Reply With Quote

Old   September 12, 2013, 18:25
Default
  #39
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 oort View Post
Hi. What is suposed to change in this file?
I have comment it (with a //), I have maintained without change and never works.
I don't quite get that sentence. You mean compilation doesn't work with or without that change? With the same error message?

Quote:
Originally Posted by oort View Post
I have also patched with the swak2Foam_024_OF22x_49808a1c.gz file but the compilations always crashes...


Code:
...
../FieldValueExpressionParser.yy:5492:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5499:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5507:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5514:13: error: ‘yylloc’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on
What should I do?
That error is a problem in the code generated by bison. Which version of bison do you use? That information should be at the start of the compilation
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 1, 2013, 15:32
Default
  #40
New Member
 
Fernando
Join Date: Sep 2013
Posts: 4
Rep Power: 12
fernando_fec is on a distinguished road
Quote:
Originally Posted by gschaider View Post

Quote:
Originally Posted by oort View Post
I have also patched with the swak2Foam_024_OF22x_49808a1c.gz file but the compilations always crashes...


Code:
...
../FieldValueExpressionParser.yy:5492:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5499:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5507:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5514:13: error: ‘yylloc’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on
What should I do?

Thanks,
Carlos

That error is a problem in the code generated by bison. Which version of bison do you use? That information should be at the start of the compilation
I have the same problem, or similar at least, and I'm using bison 3.0 (the only one available in the repos of ArchLinux) The full error log is attached in the .zip

I'm using the version cloned from the wiki's SVN, patched and with the line mentioned on the above post commented out, and I've tried it with OpenFOAM 2.2.1 and 2.2.x
I've also tried the developement version, with no luck

Code:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
  File "./maintainanceScripts/makeSwakVersionFile.py", line 27
    print "Keeping the last real version number",verstring
                                               ^
SyntaxError: invalid syntax
Bison is version 3.0
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 2 Patch 1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
 
(...)
                                                                                                                                         
../FieldValueExpressionParser.yy:5499:13: nota: in expansion of macro ‘sameSize’
lnInclude/swakChecks.H:63:92: error: ‘yylloc’ no se declaró en este ámbito
 #define sameSize(a,b) {Foam::string err=Foam::swakAssertSameSize(a,b); if(err!="") { error(yylloc,err); YYERROR; }}
                                                                                            ^
../FieldValueExpressionParser.yy:5507:13: nota: in expansion of macro ‘sameSize’
lnInclude/swakChecks.H:63:92: error: ‘yylloc’ no se declaró en este ámbito
 #define sameSize(a,b) {Foam::string err=Foam::swakAssertSameSize(a,b); if(err!="") { error(yylloc,err); YYERROR; }}
                                                                                            ^
../FieldValueExpressionParser.yy:5514:13: nota: in expansion of macro ‘sameSize’
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on
Attached Files
File Type: zip make.log.zip (4.8 KB, 0 views)
fernando_fec is offline   Reply With Quote

Reply

Tags
compile error, swak4foam

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 12:59
[swak4Foam] and twoPhaseEulerFoam mnikku OpenFOAM Community Contributions 1 February 19, 2016 06:21
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 11:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 18:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00


All times are GMT -4. The time now is 04:48.