|
[Sponsors] |
June 16, 2011, 03:04 |
|
#241 | ||||
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18 |
Quote:
Quote:
- $FOAM_USER_LIBBIN gives: libgroovyBC.so, libswak4FoamParsers.so, libswakSourceFields.so, libgroovyStandardBCs.so, libswakFunctionObjects.so, libswakTopoSources.so - $FOAM_SITE_LIBBIN: cannot be found. Quote:
- ldd $FOAM_USER_LIBBIN/libgroovyBC.so: Quote:
The working swak4Foam was (I think) 2010-09-13, First Release. The not working one is the actual one downloaded just yesterday. Arne Last edited by Arnoldinho; June 16, 2011 at 08:26. |
|||||
November 2, 2011, 16:05 |
|
#242 |
Member
Ovie Doro
Join Date: Jul 2009
Posts: 99
Rep Power: 17 |
Hi everyone,
I tried to compile groovyBC on a cluster with Bison version 1.875c. So I followed the bypass instructions on the wiki page, but when I run wmake libso this is the response I get: wmakeLnInclude: linking include files to ./lnInclude find: invalid predicate `-L' Making dependency list for source file PatchValueExpressionParser.yy Making dependency list for source file PatchValueExpressionLexer.ll Making dependency list for source file groovyBCPointPatchFields.C could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C Making dependency list for source file PatchResult.C SOURCE=PatchResult.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchResult.o PatchResult.C: In member function 'void Foam::PatchResult::uglyDelete()': PatchResult.C:95: warning: deleting 'void*' is undefined SOURCE=PatchValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/PatchValueExpressionParser.C Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linux64GccDPOpt/PatchValueExpressionParser.C ; mv *.tab.hh Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh ; mv *.hh Make/linux64GccDPOpt ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/PatchValueExpressionParser.C -o Make/linux64GccDPOpt/PatchValueExpressionParser.o PatchValueExpressionParser.yy:29.1-15: invalid directive: `%initial-action' PatchValueExpressionParser.yy:30.1-33.1: syntax error, unexpected "{...}" mv: cannot stat `*.tab.cc': No such file or directory mv: cannot stat `*.tab.hh': No such file or directory mv: cannot stat `*.hh': No such file or directory g++: Make/linux64GccDPOpt/PatchValueExpressionParser.C: No such file or directory g++: no input files make: *** [Make/linux64GccDPOpt/PatchValueExpressionParser.o] Error 1 Please could someone kindly suggest how to fix this? Thanks Ovie |
|
November 3, 2011, 04:52 |
|
#243 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
|
||||
November 3, 2011, 06:00 |
|
#244 |
Member
Ovie Doro
Join Date: Jul 2009
Posts: 99
Rep Power: 17 |
Thanks for your response.
Just to be sure, I copied a new compiled groovyBC version from my workstation to the cluster and double checked the bypass instructions on the wiki as you indicated in your response. These are the contents of my Make/files: PatchResult.C PatchValueExpressionParser.C PatchValueExpressionLexer.C PatchValueExpressionDriver.C groovyBCFvPatchFields.C groovyBCPointPatchFields.C LIB = $(FOAM_USER_LIBBIN)/libgroovyBC When I ran wmake libso again I get the same response as above i.e.: wmakeLnInclude: linking include files to ./lnInclude find: invalid predicate `-L' Making dependency list for source file PatchValueExpressionLexer.ll Making dependency list for source file groovyBCPointPatchFields.C could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C Making dependency list for source file groovyBCFvPatchFields.C Making dependency list for source file PatchValueExpressionDriver.C Making dependency list for source file PatchValueExpressionParser.yy Making dependency list for source file PatchResult.C SOURCE=PatchResult.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchResult.o PatchResult.C: In member function 'void Foam::PatchResult::uglyDelete()': PatchResult.C:95: warning: deleting 'void*' is undefined SOURCE=PatchValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/PatchValueExpressionParser.C Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linux64GccDPOpt/PatchValueExpressionParser.C ; mv *.tab.hh Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh ; mv *.hh Make/linux64GccDPOpt ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/share/home/01389/edoro/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/PatchValueExpressionParser.C -o Make/linux64GccDPOpt/PatchValueExpressionParser.o PatchValueExpressionParser.yy:29.1-15: invalid directive: `%initial-action' PatchValueExpressionParser.yy:30.1-33.1: syntax error, unexpected "{...}" mv: cannot stat `*.tab.cc': No such file or directory mv: cannot stat `*.tab.hh': No such file or directory mv: cannot stat `*.hh': No such file or directory g++: Make/linux64GccDPOpt/PatchValueExpressionParser.C: No such file or directory g++: no input files make: *** [Make/linux64GccDPOpt/PatchValueExpressionParser.o] Error 1 When run wmake libso a second time after this first error message above, I now get this message: make: *** No rule to make target `Make/linux64GccDPOpt/PatchValueExpressionParser.tab.hh', needed by `groovyBCPointPatchFields.dep'. Stop. I still have no idea what to make of these error messages. Could you please help. Thanks. |
|
November 3, 2011, 13:11 |
|
#245 |
Member
Ovie Doro
Join Date: Jul 2009
Posts: 99
Rep Power: 17 |
The problem had entirely to do with the version of Bison.
I managed to install a more recent version in my ~/ on the cluster and modified my $PATH accordingly. So the newer version is seen first before the older cluster supplied version. I recompiled without the bypass and everything seems ok. Hopefully testing a computation would confirm all is well. Thanks a lot for the response. |
|
January 12, 2012, 07:11 |
|
#246 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello Bernhard,
A Good Morning to you :-)! (ok.. its almost lunch time :-)!) I have been back trying some tricks using the fabled groovyBC.... or should we say, "grooving with groovyBC and swak4Foam" :-)! And I have come across an issue which we have already discussed before. Basically, it has to do with the combination: groovyBC + OpenFOAM-1.6-ext + Parallel Simulations When I try to calculate values on an another patch using "<variable>{patch'<patch Name>}" when running in parallel, I get the following warning: [See Attachment.....] Is this warning anything I should be worried about? The warning claims that the average value is being taken, but how is this average calculated? In my case, the patch on which I was calculating the value was only present on 1 of 3 processors of the parallel simulation, and groovyBC always took the right value (though it said that it was taking an average). What happens when parts of a patch are found on more than one processor? I was for some reason under the impression that this issue was fixed in 1.6-ext, and had something to do with pTraits? Have a great day ahead! Philippose (P.S.... I can't stop feeling a sense of awe each time when I find "yet another" use for groovyBC and swak4Foam :-)! Thanks a lot!) |
|
January 12, 2012, 08:54 |
|
#247 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Thanks for your kind words about swak. Your analysis is right: a) the warning can be ignored (see below) b) it has to do with pTraits and I remember that is was fixed some time ago Basically the problem are gMin and gMax. They return 0 if there is no face on that processor which "wins" against the values from the other processors (if they're on the wrong side) gAverage on the other hand does everything alright - this is the value that is actually used The original posting about this is found at http://www.cfd-online.com/Forums/ope...llel-runs.html So it should be fixed in 1.6-ext. If it isn't please be so nice and write a report on the openfoam-extend-Mantis so that it comes to Hrv's attention Bernhard |
||
January 12, 2012, 14:46 |
|
#248 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello again Bernhard,
As always, thank you very much for the quick response, and for confirming that I do not need to worrying about the warning :-)! The Simulation I was running while I posted on the thread today went through to the end without any problems, and also ended up with good results, so I can "re-"confirm that the warning is more informational than anything else. I shall try to see if the issue you pointed me to has been fixed or not.... I wish you a great evening ahead :-)! Philippose |
|
January 25, 2012, 06:37 |
|
#249 |
New Member
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 17 |
Hello everybody
I am working on the groovyWaveTank case and would like to introduce the global variables from swak4foam. This is how my entry in the controlDict looks like: Code:
defineSurfaceZ { type addGlobalVariable ; outputControl timeStep; // required by OpenFOAM outputInterval 1 ; // required by OpenFOAM gloalName surfZ; globalScope myWave ; valueType scalar ; value 0.0; }; Code:
globalScopes ( "myWave" ); expressions ( alpha1a { field alpha1; expression "0."; keepPatches; } alpha1b { field alpha1; expression "1."; condition "pos().z <= surfZ"; keepPatches; } ); Code:
Part: alpha1a Modifying field alpha1 of type volScalarField Putting "0." into field alpha1 at t = "0" if condition "true" is true Setting 8000 of 8000 cells Writing to "alpha1" Part: alpha1b Modifying field alpha1 of type volScalarField Putting "1." into field alpha1 at t = "0" if condition "pos().z <= surfZ" is true swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM FATAL ERROR: Parser Error at "1.12-16" :"field surfZ not existing or of wrong type" "pos().z <= surfZ" " ^^^^^" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 724. FOAM exiting I would be happy about any hints. Best regards Silvan |
|
January 25, 2012, 06:57 |
|
#250 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
January 25, 2012, 08:53 |
|
#251 |
New Member
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 17 |
Thanks for the fast reply. Unfortunately I get the next error:
Code:
Part: alpha1b Modifying field alpha1 of type volScalarField Putting "1." into field alpha1 at t = "0" if condition "pos().z <= surfZ" is true swak4Foam: Allocating new repository for sampledGlobalVariables --> FOAM Warning : From function GlobalVariablesRepository::get in file GlobalVariablesRepository.C at line 93 There is no scope wave1 in the list of global scopes 0 ( ) when looking for surfZ [...] --> FOAM FATAL ERROR: Parser Error at "1.12-16" :"field surfZ not existing or of wrong type" "pos().z <= surfZ" " ^^^^^" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 724. FOAM exiting Code:
functions { defineSurfaceZ { type addGlobalVariable ; outputControl timeStep; outputInterval 1; globalScope wave1; globalVariables { surfZ { valueType scalar; value 0.0; } } }; }; libs ( "libOpenFOAM.so" "libgroovyBC.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ); |
|
January 25, 2012, 08:58 |
|
#252 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Don't get used to it
Quote:
|
||
January 27, 2012, 10:12 |
|
#253 |
New Member
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 17 |
Good hint :-)
Another point: To me it looks like the newest version of swak4Foam is compatible with 2.1.0, but not with 2.0.0. When I compile with 2.0.0 I get the following: Code:
Bison is version 2.5 No 'swakConfiguration'. Python etc won't work OpenFOAM-version: Major 2 Minor 0 Patch 0 [...] SOURCE=groovyBCCommons.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/OpenFOAM/OpenFOAM-2.0.0/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCCommons.o SOURCE=groovyBCFvPatchFields.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/OpenFOAM/OpenFOAM-2.0.0/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCFvPatchFields.o SOURCE=groovyBCDirectionFvPatchFields.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/OpenFOAM/OpenFOAM-2.0.0/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCDirectionFvPatchFields.o SOURCE=groovyBCFixedValueFvPatchFields.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/OpenFOAM/OpenFOAM-2.0.0/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCFixedValueFvPatchFields.o SOURCE=groovyBCJumpFvPatchFields.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/OpenFOAM/OpenFOAM-2.0.0/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/groovyBCJumpFvPatchFields.o In file included from groovyBCJumpFvPatchFields.H:37:0, from groovyBCJumpFvPatchFields.C:36: groovyBCJumpFvPatchField.H:46:35: fatal error: fixedJumpFvPatchField.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/groovyBCJumpFvPatchFields.o] Error 1 |
|
January 27, 2012, 14:02 |
|
#254 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
February 4, 2012, 08:49 |
|
#255 |
Senior Member
|
Dear Bernhard,
I have a question in setting a special BC in dynamic mesh and I'm not sure whether the groovyBC can handle that or not: suppose T is a tensor and I wanna set "div(T).n= a surface field" over the boundary. n is the unit normal vector of boundary faces. Would you please explain if it's possible? Bests,
__________________
Amir |
|
February 4, 2012, 20:26 |
|
#256 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
February 5, 2012, 05:53 |
|
#257 | |
Senior Member
|
Quote:
Bests,
__________________
Amir |
||
April 24, 2012, 11:07 |
Run groovyWaveTank
|
#258 |
New Member
Rita Carvalho
Join Date: Apr 2012
Posts: 6
Rep Power: 14 |
Hi
I wish I could also enjoy swak4Foam. I need some help. I have experience in CFD and I start to use open Foam a few months ago. I has ubuntu 10.10 and openFoam 1.7 in one computer and evrything OK. I passed the last days trying to use groovybc. I instaled in a different computer vmware, ubuntu 11.10, openFoam2.0.1, bison2.5 flex2.5.35 m4.1.4.10 Apparentely it was everything OK but not with swak4Foam. I read a lot of questions/answers but I still have problems. I did the same however with "wmake all" and ".Allwmake", I have some messages with "not found" and "could not open file" and finally make: Target `application' not remade because of errors. I wonder if you can help me checking if the version I used are ok and in which directory the comands to install swak4Foam: 1- openFoam directory svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/ or hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam 2- home directory wmake all or (.Allwmake doesn't work) 3- make install |
|
April 24, 2012, 20:01 |
|
#259 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
April 25, 2012, 07:31 |
|
#260 | |
New Member
Rita Carvalho
Join Date: Apr 2012
Posts: 6
Rep Power: 14 |
Quote:
Perhaps Bison is not correctely installed. 1 - I download swak4Foam withot problems. In which directhory it should be placed ? 2 - Moving to the swak4Foam directory - Doing "./Allwmake" - Appears: No 'swakConfiguration'. Python etc won't work Checking swak4Foam- version and generating file ./Allwmake: 9: ... not found ./Allwmake: 17: ... not found ./Allwmake: 19: bison: not found Bison is version ... Can you give me a opinion what to do ? Kind regards, Rita |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ship resistance shows wiggles when using Overset mesh and dynamic mesh in Fluent | Qingsong | FLUENT | 2 | March 21, 2022 16:08 |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
[ICEM] Dynamic mesh setup with ICEM | David121284 | ANSYS Meshing & Geometry | 0 | April 11, 2014 05:19 |
Dynamic Mesh "Shadow Wall" | thezack | FLUENT | 0 | June 4, 2013 23:09 |
dynamic mesh for drop interface | IndrajitW | FLUENT | 0 | March 30, 2013 09:03 |