swak4foam building problem
Hi,
I've got ubuntu 10.10 with OF 1.7.1 installed on it. I have downloaded swak4Foam. Unfortunately, I am having trouble building swak4foam. Does anybody have a suggestion on how to get swak built? Below I give the compilation results. Thanks, George ~~~~ george@george-VirtualBox:~/Desktop/swak4Foam$ wmake all Making dependency list for source file SurfacesRepository.C Making dependency list for source file ExpressionResult.C Making dependency list for source file FieldValueExpressionParser.yy could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy Making dependency list for source file PatchValueExpressionParser.yy could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy Making dependency list for source file SubsetValueExpressionParser.yy could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy Making dependency list for source file CommonValueExpressionDriver.C Making dependency list for source file FieldValueExpressionLexer.ll could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll Making dependency list for source file FieldValueExpressionDriver.C could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C Making dependency list for source file PatchValueExpressionLexer.ll could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll Making dependency list for source file PatchValueExpressionDriver.C could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C Making dependency list for source file SubsetValueExpressionLexer.ll could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll Making dependency list for source file SubsetValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C Making dependency list for source file CellSetValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C Making dependency list for source file FaceSetValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C Making dependency list for source file CellZoneValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C Making dependency list for source file FaceZoneValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C Making dependency list for source file SampledSurfaceValueExpressionDriver.C could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C SOURCE=SurfacesRepository.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/sampling/lnInclude -I/opt/openfoam171/src/triSurface/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/SurfacesRepository.o SOURCE=ExpressionResult.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/sampling/lnInclude -I/opt/openfoam171/src/triSurface/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/ExpressionResult.o ExpressionResult.C: In member function ‘void Foam::ExpressionResult::uglyDelete()’: ExpressionResult.C:98: warning: deleting ‘void*’ is undefined SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/FieldValueExpressionParser.C ; sed -i.bak "s/position.hh/FieldValueExpressionParser_position.hh/" location.hh ; mv location.hh lnInclude/FieldValueExpressionParser_location.hh ; mv stack.hh lnInclude/FieldValueExpressionParser_stack.hh ; mv position.hh lnInclude/FieldValueExpressionParser_position.hh ; sed -i.bak "s/stack.hh/FieldValueExpressionParser_stack.hh/;s/location.hh/FieldValueExpressionParser_location.hh/" FieldValueExpressionParser.tab.hh ;mv *.hh lnInclude ; touch -r $SOURCE lnInclude/FieldValueExpressionParser*.hh ; 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/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o /bin/sh: bison: not found 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++: Make/linuxGccDPOpt/FieldValueExpressionParser.C: No such file or directory g++: no input files make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1 Making dependency list for source file groovyBCFvPatchFields.C could not open file PatchValueExpressionParser.tab.hh for source file groovyBCFvPatchFields.C Making dependency list for source file groovyBCPointPatchFields.C could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C could not open file PatchValueExpressionParser.tab.hh for source file groovyBCPointPatchFields.C could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C SOURCE=groovyBCFvPatchFields.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../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o In file included from groovyBCFvPatchField.H:48, from groovyBCFvPatchFields.H:37, from groovyBCFvPatchFields.C:36: ../swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60: fatal error: PatchValueExpressionParser.tab.hh: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1 Making dependency list for source file manipulateField.C could not open file FieldValueExpressionParser.tab.hh for source file manipulateField.C Making dependency list for source file manipulateFieldFunctionObject.C Making dependency list for source file expressionField.C could not open file FieldValueExpressionParser.tab.hh for source file expressionField.C Making dependency list for source file expressionFieldFunctionObject.C Making dependency list for source file clearExpressionField.C could not open file FieldValueExpressionParser.tab.hh for source file clearExpressionField.C Making dependency list for source file clearExpressionFieldFunctionObject.C Making dependency list for source file createSampledSurface.C Making dependency list for source file createSampledSurfaceFunctionObject.C SOURCE=manipulateField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/manipulateField.o In file included from manipulateField.C:30: ../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/manipulateField.o] Error 1 Making dependency list for source file general/swakExpressionFunctionObject.C could not open file timelineFunctionObject.H for source file general/swakExpressionFunctionObject.C Making dependency list for source file patch/patchExpressionFunctionObject.C could not open file patchFunctionObject.H for source file patch/patchExpressionFunctionObject.C could not open file PatchValueExpressionParser.tab.hh for source file patch/patchExpressionFunctionObject.C SOURCE=general/swakExpressionFunctionObject.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/george/OpenFOAM/george-1.7.1/Libraries/simpleFunctionObjects/lnInclude -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakExpressionFunctionObject.o In file included from general/swakExpressionFunctionObject.C:28: general/swakExpressionFunctionObject.H:40: fatal error: timelineFunctionObject.H: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/swakExpressionFunctionObject.o] Error 1 Making dependency list for source file expressionToCell.C could not open file FieldValueExpressionParser.tab.hh for source file expressionToCell.C Making dependency list for source file expressionToFace.C could not open file FieldValueExpressionParser.tab.hh for source file expressionToFace.C SOURCE=expressionToCell.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -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/expressionToCell.o In file included from expressionToCell.C:39: ../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/expressionToCell.o] Error 1 Making dependency list for source file expressionSource.C could not open file FieldValueExpressionParser.tab.hh for source file expressionSource.C SOURCE=expressionSource.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -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/expressionSource.o In file included from expressionSource.H:45, from expressionSource.C:33: ../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/expressionSource.o] Error 1 Making dependency list for source file funkySetFields.C could not open file FieldValueExpressionParser.tab.hh for source file funkySetFields.C SOURCE=funkySetFields.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 -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/funkySetFields.o In file included from funkySetFields.C:41: ../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/funkySetFields.o] Error 1 Making dependency list for source file funkySetBoundaryField.C could not open file PatchValueExpressionParser.tab.hh for source file funkySetBoundaryField.C SOURCE=funkySetBoundaryField.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 -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/funkySetBoundaryField.o In file included from funkySetBoundaryField.C:41: ../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60: fatal error: PatchValueExpressionParser.tab.hh: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/funkySetBoundaryField.o] Error 1 Making dependency list for source file replayTransientBC.C SOURCE=replayTransientBC.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/cfdTools/lnInclude -I/opt/openfoam171/src/cfdTools/general/lnInclude -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/replayTransientBC.o g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/cfdTools/lnInclude -I/opt/openfoam171/src/cfdTools/general/lnInclude -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 -Xlinker --add-needed Make/linuxGccDPOpt/replayTransientBC.o -L/opt/openfoam171/lib/linuxGccDPOpt \ -lfiniteVolume -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/george/OpenFOAM/george-1.7.1/applications/bin/linuxGccDPOpt/replayTransientBC ~~~~~~~~~~~~~~ |
Please look at this line of your error message:
Code:
/bin/sh: bison: not found |
Thank you! This solved the problem :-)
|
1 Attachment(s)
Roughly the same problem here, but I have bison installed - bison (GNU Bison) 2.4.1. It's located under /usr/bin/bison - how can I set the swak wmake to search for this location?
OF version - OpenFOAM-2.0.x swak location - $HOME/swak4Foam Thank you. |
Quote:
Bernhard |
I queried the location of bison with 'which bison'. I will check back if I can figure out this.
|
Swak4foam Error!
Hi Bernard
I have swake4foam in home directory and OpenFOAM 2 in root/opt.I tried to wmake all but it had error about reference . what should I do? |
Quote:
|
hi Bernard thanks for your reply
The following error occures: /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::DimensionedField<int, Foam::triSurfaceGeoMesh>::typeName' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSet::~sampledSet()' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSurface::magSf() const' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::writeStats(Foam::Ostream&) const' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()' /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests()' collect2: ld returned 1 exit status make: *** [/home/geeko/OpenFOAM/geeko-2.0.x/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1 linux:/home/geeko/swak4Foam # |
Quote:
-lmeshTools \ with -lmeshTools -ltriSurface -lPstream \ and see what happens. Also: what system have you got and what is the actual call to the linker (the last gcc/g++-call you see). Any: it seems to be a system-specific problem. Either the linker on your system behaves strangely or your OF-installation has a problem |
I think I had a similar error recently and solved it by installing some devel-package (if I remember correctly). Unfortunately I do not know any more which one. :-(
I would try for the binutils-devel first and then for g++-packages... |
I get the following error when I try to compile pimpleFoam solver with some changes using swak4Foam. I installed swak4Foam and it dint throw any errors.
Code:
Make/linux64GccDPOpt/pimpleFoam.o: In function `main': |
Quote:
|
Quote:
|
hi everybody
Now i need the swak4Foam but i can't download it with svn. Could you upload it here or sent it to my email box (768413407@qq.com). Thank you very much. Regards hussain |
hi Hussain
Write cnf svn in the command line and then copy the line( install ...) in the new line and press enter. After installing svn you can easily install swake4foam. |
thank you.As your said ,I have got it.
|
Quote:
I checked those packages and they were installed.? what should I do? now |
Quote:
|
Dear Bernhard
my OS is opensuse 11.4. |
Quote:
Try adding -ltriSurface and -lsampling to Make/options and see if the problem goes away |
sorry bernhard I don't know how to add ! where is the directory make/options? and also ltrisurface and lsampling libraries?
|
Greetings to all,
I had an openSUSE 11.4 x86_64 installed in a virtual machine (VM) so I had a go at it:
Soooo... I wasn't able to reproduce Mohammad's problem :( Therefore, Mohammad, please try the instructions I've written down. Best regards, Bruno |
the same error even with your method
1 Attachment(s)
Dear wyldckat
I did step 4 to 7. but I faced the same problem as can be seen in the log file. |
Hi Mohammad,
According to the log:
Code:
foam And do the commands in step #2 just in case something might be missing. Best regards, Bruno |
1 Attachment(s)
Hi all,
I am having some problems to build swak4Foam in OF 1.6 (Ubuntu Maverick) which I can't figure out. I attach the log file. I know that the easiest would probably be to use a newer version of OF (I actually compiled swak4Foam in OF 1.7.1, OS X 10.6.7, without problems) but our cluster has 1.6. Any experience building in OF 1.6? I have not seen threads claiming success building with OF lower than 1.6.ext . Any help is very appreciated, Hugo |
Quote:
You could try to replace that method-call with subDict (same parameter). If you're luck it will compile (you may have to insert some empty dictionaries called "value" in some parameter files) but I don't promise anything. Another solution would be to go back to an older version of swak. The feature that breaks your compilation was introduced one or two versions back. |
Thanks Bernhard! I wish I could get this faster though, I don't understand exactly how I can change the method like you say. Could you please be more specific?
As for the older versions, after a quick check of the project page I can't find a link to older versions. Where could I get them? Best regards, Hugo |
Quote:
Quote:
Clone the development repository: hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam go into that directory cd swak4Foam List the available tags hg tags Try to update to one of the older releases hg update release2011-04-20 and compile as usual. There is a similar way with the SVN-version but it is not as straightforward |
Quote:
On a side note, in the wiki page of swak, the link to your presentation at the last OF workshop is broken. Those slides have been of great source of documentation to learn how to use swak4Foam, at least for me (actually all the links to the workshop program appear to be broken in the website of the workshop). It would be a shame not to be able to see the talk anymore. thanks for such a great tool! Best regards, |
Quote:
Bernhard PS: Greetings to Karl, the Posting Policeman, who makes sure that nothing is posted after curfew |
After solving the building problem above (thanks Bernhard), I dare to pollute this threat with a question about the use and capabilities of swak: I want to sample data from a particular region of my domain, the main problem is that sampleDict does not allow to use expressions. In my case, I want to sample a plane of a certain radius within my domain. I try to use cellSet to define a zone using an expression (thanks to the use of swakTopoSources library) but apparently the sample utility does not recognize this set definition (I know I am assuming that a Set is equal to a Zone here though, but I cannot find how to convert one into the other either).
Is there any way to do this with swak in post processing? since funkyDoCalc uses the "accumulations" entry, it seems that I cannot get the value of a variable for each cell, but only the max, min, average or sum. any ideas? thanks, Hugo |
Quote:
- this can produce huge files - the order of the elements may be non-intuitive. Have to write for instance the cell-centers with a separate expression and join these two files to do some reasonable postprocessing - it is not very well tested - it does not work in parallel (I think) BTW: about your "how do I convert a set to a zone": if I tell you that there is a utility called setsToZones how long does it take you till you shout "That's too easy"? ;) |
Quote:
Anyways, I just tried defining the region of interest using an expression in cellSet, converting the set to a zone and using sampleDict with the "zone" option (I still use OF 1.6 so it also took me some time to realize that there was an ill-defined "zoneName" in the dictionary). This method works as I only needed to sample over a plane, but what if I wanted to sample over a volume? many planes? sounds to me like swak can do this (which you already answered) Still, there is an interesting result I get when I try to obtain the average (or min, max, sum) of a field over an arbitrary region using funkyDoCalc. For example, in my funkyDoCalcDict I define: Code:
TKE_AV Code:
Time = 66 Quote:
thanks Bernhard, Hugo |
Quote:
"TKE{cellSet'averagingRegion}=0.5*pow(mag(U-UMean),2);" the parser assumed that you're transferring the result to another entity and it can only do this uniformly (therefor the average). As you're calculating on the same entity if you write the variable as "TKE=0.5*pow(mag(U-UMean),2);" everything should be good. About the UMean: that is not defined in the dictionaries you posted, is it? Therefor I won't comment on that. Have look if the change above gives you the expected behaviour Quote:
Bernhard |
dumpSwakExpression in parallel
Quote:
ganesh |
Quote:
|
swak4foam compilation problem
Hello community,
I'm trying to compile swak4foam for OF2.1 on my RHEL 6.4 machine. I pasted in the log below. Has anyone of you experienced something similar? Is this message: could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll the beginning of the problem or is this optional? I was able to install the 1.7 version a while ago without problems. For now we have to switch to the 1.7 environment to use swak4foam. Any ideas are very welcome. Regards, Luk Code:
No 'swakConfiguration'. Python etc won't work |
Quote:
Anyway. The parallel calling of compilers mixes the error messages which makes it hard to analyze them. Switch of parallel compilation with Code:
export WM_NCOMPPROCS=1 |
Hello Bernhard,
I have a question about groovyBC. With groovyBC, is it possible to define the wave direction and the current direction different than each other? I am trying to model a boat traveling through waves (wave speed) with constant speed (boat speed). I want to see the performance of the boat with waves coming from different directions in different cases, so I need to define the direction of the waves and the current directions different than each other. Is it possible to do that with groovyBC? If yes, do you know a tutorial/example that I can go through? Thank you very much for your help in advance, Best, kilroy |
All times are GMT -4. The time now is 17:18. |