|
[Sponsors] |
[swak4Foam] Problem with compiling funkySetFields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2011, 03:20 |
Problem with compiling funkySetFields
|
#1 |
New Member
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17 |
Hi at all,
I tried to compile funkySetFields for OF 1.7 on Ubuntu 10.04 I always get following error-message: Making dependency list for source file ValueExpressionParser.C Making dependency list for source file ValueExpressionLexer.C SOURCE=ValueExpressionParser.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ValueExpressionParser.o In file included from location.hh:44, from ValueExpressionParser.tab.hh:65, from ValueExpressionParser.tab.cc:68: position.hh: In function ‘bool ve:perator==(const ve:osition&, const ve:osition&)’: position.hh:136: warning: suggest parentheses around ‘&&’ within ‘||’ ValueExpressionParser.yy: In member function ‘virtual int ve::ValueExpressionParser:arse()’: ValueExpressionParser.yy:202: error: ‘class ValueExpressionDriver’ has no member named ‘getVectorField’ ValueExpressionParser.yy:251: error: ‘class ValueExpressionDriver’ has no member named ‘getFaceScalarField’ ValueExpressionParser.yy:269: error: ‘class ValueExpressionDriver’ has no member named ‘getFaceVectorField’ ValueExpressionParser.yy:339: error: ‘class ValueExpressionDriver’ has no member named ‘getScalarField’ ValueExpressionParser.tab.cc: In member function ‘unsigned char ve::ValueExpressionParser::yytranslate_(int)’: ValueExpressionParser.tab.cc:3177: warning: use of old-style cast make: *** [Make/linuxGccDPOpt/ValueExpressionParser.o] error 1 Does anyone know where the problem is? I am quite new to OpenFoam and Ubuntu, so I donnot know how to solve this problem. Thanks a lot for any advice! Victor |
|
July 19, 2011, 05:36 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Which version of FSF do you use? I see that it is an "old-school" standalone version, but where did you get it from? BTW: old-school FSF is not in active development anymore. For the brightest and shiniest version of FSF use swak4Foam |
||
July 19, 2011, 15:57 |
|
#3 |
New Member
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17 |
Hi gschaider, thank you very much for your quick reply.
I tried to install swak4foam the last days, but it didn't work all the time, so i tried to use this old version - i used it in a lab-course - to compile FSF. Now i tried swak4foam in order to post the error message in this thread, but know it works!!!! I really do not know what has been the problem So anyhow, thank you very much! |
|
July 19, 2011, 16:31 |
|
#4 |
New Member
Victor Fleischer
Join Date: Nov 2009
Posts: 21
Rep Power: 17 |
Here I am again:
After testing FSF i experienced something strange: All the time when i used FSF, either with a FSF-dict or with a simple command (funkySetFields -expression 0 -time 0), FSF created a .gz file of the field that had to be changed. For example, i have a field a in my 0-folder and want to use the FSF two times (a1,a2): expressions ( a1 { field a; expression "8.418e-5"; valuePatches (PROCESSOR EXCHANGE_SURFACE COOLER); create false; } a2 { field a; expression "1.12e-6"; condition "(sqr(pos().x-0.015)/sqr(0.003)+sqr(pos().y-0.0045)/sqr(0.0007)+sqr(pos().y-0.003)/sqr(0.001))<1"; keepPatches true; create false; } ); After that, i got a a.gz in my 0-folder and only the first expression (a1) has been done. Isn't it strange? Thanks a lot for any help in advance! |
|
July 19, 2011, 17:34 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
About the second expression: it should be executed. Check the output in the terminal. If the output is there and the field is unmodified then maybe the condition needs some debugging |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem during compiling UDF | ned.musab | Fluent UDF and Scheme Programming | 1 | October 11, 2017 11:48 |
Problem in compiling UDF with ANSYS Fluent 17.1 and Visual Studio 14.0 | Spiker54321 | Fluent UDF and Scheme Programming | 2 | October 27, 2016 10:09 |
Problem with compiling new solver | palazi88 | OpenFOAM Programming & Development | 2 | December 24, 2013 20:52 |
[swak4Foam] Problem with compiling funkySetFields in OpenFOAM 2.1. | sfigato | OpenFOAM Community Contributions | 1 | January 17, 2013 13:22 |
COMPILING PROBLEM | ammi | FLUENT | 1 | December 7, 2006 05:07 |