|
[Sponsors] |
July 30, 2013, 06:23 |
|
#41 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Speaking of search engines: have you tried entering "groovyBC wave generation" into Google? There is a number of hits there were this is discussed (and I remember some presentations at past workshops were the use of groovyBC and its limitations for that purpose were discussed). Apart from that I don't quite understand what you mean with "wave direction" as opposed to "current wave direction"
__________________
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 |
||
July 30, 2013, 10:17 |
|
#42 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Bernhard,
I am sorry about the thread, I won't do that next time. I haven't tried to google that but I will. About my question, I meant lets say is it possible to define uniform velocity distribution from bottom to seaLevel in x-direction and at the same time is it possible to generate my waves traveling in y-direction? Best, kilroy |
|
July 30, 2013, 10:51 |
|
#43 |
New Member
Join Date: Feb 2012
Posts: 5
Rep Power: 14 |
Thanks for the quick answer and the advice with the parallel compilation. For completeness I attached the serial compilation log at the end.
With the current compiler I was able to compile other things. It was some OF related stuff. I will try to trigger the error with an other case to boil down the problem. I'll report the solution if I find one. Thanks, Luk Code:
No 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file /home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries Bison is version 2.4.1 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 1 Patch -1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H /home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers /home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/Make SOURCE=helpers/printSwakVersion.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/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/printSwakVersion.o In file included from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/localefwd.h:42:0, from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/string:45, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/string.H:51, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/word.H:42, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/int.H:39, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/label.H:61, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/labelList.H:47, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/UPstream.H:43, from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/Pstream.H:42, from helpers/printSwakVersion.H:43, from helpers/printSwakVersion.C:43: /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: 'uselocale' was not declared in this scope /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:45: error: invalid type in declaration before ';' token /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function 'int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)': /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:76:53: error: '__gnu_cxx::__uselocale' cannot be used as a function /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:101:33: error: '__gnu_cxx::__uselocale' cannot be used as a function make: *** [Make/linux64GccDPOpt/printSwakVersion.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 |
|
July 30, 2013, 13:55 |
|
#44 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
July 30, 2013, 13:59 |
|
#45 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
July 30, 2013, 16:08 |
|
#46 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Will do. Thank you for the help.
Best, kilroy |
|
March 30, 2015, 11:16 |
Swak4Foam set up issue
|
#47 |
New Member
Shayan
Join Date: Oct 2014
Posts: 6
Rep Power: 12 |
Hi all,
I am a new user on OpenFOAM. While software works fine with already installed libraries, it fails for Swak4Foam. The facts that I don't understands are: 1. Where do we need to copy the downloaded Swak4Foam folder? 2. What are the steps for installation of the library? I have copied it to the OpenFOAM folder itself OpenFOAM-2.2.0/swak4Foam/ and when I run wmake in the directory: OpenFOAM-2.2.0/swak4Foam/Utilities/funkySetFields/ I receive error of: SOURCE=funkySetFields.C ; g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/sshamip/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/Users/sshamip/OpenFOAM/OpenFOAM-2.2.0/src/sampling/lnInclude -I/Users/sshamip/OpenFOAM/OpenFOAM-2.2.0/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/sshamip/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/Users/sshamip/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/funkySetFields.o However, I am not sure if I'm missing any step before running wmake. Would appreciate your help. Best, Shayan |
|
April 3, 2015, 13:37 |
|
#48 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Shayan and welcome to posting on the forum!
Uhm... that's not an error message you've given, that's only information indicating that it is going to create the object file "funkySetFields.o" from the source code file "funkySetFields.C". Full details on how to install swak4Foam are given here:
Bruno |
|
April 4, 2015, 15:52 |
|
#49 |
New Member
Join Date: Apr 2015
Posts: 3
Rep Power: 11 |
Hi all,
I get the following error messages when trying to run Allwmake in swap4Foam: Code:
SOURCE=swakSetValues.C ; clang++ -m64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-unused-comparison -Wno-deprecated-register -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/Users/erikstenberg/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/Users/erikstenberg/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -I/Users/erikstenberg/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/Users/erikstenberg/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/erikstenberg/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/Users/erikstenberg/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -std=c++11 -c $SOURCE -o Make/darwinIntel64ClangDPOpt/swakSetValues.o In file included from swakSetValues.C:30: In file included from ./SwakSetValue.H:108: ./SwakSetValue.C:110:37: error: use 'template' keyword to treat 'resultIsTyp' as a dependent template name FieldValueExpressionDriver::resultIsTyp<volScalarField>(true) ^ template ./SwakSetValue.C:119:37: error: use 'template' keyword to treat 'getResult' as a dependent template name FieldValueExpressionDriver::getResult<volScalarField>(); ^ template ./SwakSetValue.C:161:37: error: use 'template' keyword to treat 'resultIsTyp' as a dependent template name FieldValueExpressionDriver::resultIsTyp<typename SwakSetValue<T>::resultField>() ^ template ./SwakSetValue.C:172:37: error: use 'template' keyword to treat 'getResult' as a dependent template name FieldValueExpressionDriver::getResult<typename SwakSetValue<T>::resultField>() ^ template swakSetValues.C:41:9: error: cannot define or redeclare 'typeName' here because namespace 'fv' does not enclose namespace 'SwakSetValue<double>' makeSwakFvOption(SwakSetValue, scalar); ^ Best regards, Bosse |
|
April 8, 2015, 04:32 |
|
#50 |
New Member
Shayan
Join Date: Oct 2014
Posts: 6
Rep Power: 12 |
Thanks Bruno for the help. I managed to install it using the guides. Just maybe one point regarding the installation that could be useful to new users is that Swak4Foam is only confirmed with bison 2.x and not later versions.
Best, Shayan |
|
April 12, 2015, 16:38 |
|
#51 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Bosse: Quote:
@Shayan: Quote:
Best regards, Bruno |
|||
April 12, 2015, 16:45 |
|
#52 |
New Member
Join Date: Apr 2015
Posts: 3
Rep Power: 11 |
||
April 12, 2015, 17:02 |
|
#53 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
I don't have experience using Clang to build OpenFOAM and swak4Foam, but my guess that there is some particular issue related to building OpenFOAM on Mac OS X that is interfering with swak4Foam being built properly.
I suggest that you ask the author of the installation instructions for installing OpenFOAM on Mac OS X, to see if that author has any experience with building swak4Foam under the same specific installation. |
|
April 21, 2015, 00:32 |
|
#54 |
New Member
Shayan
Join Date: Oct 2014
Posts: 6
Rep Power: 12 |
@Shayan:
Can you please suggest where this should be indicated? Hi Bruno, As explained in the following link, after installing m4, one should download and install Bison. I had a bug complaining about the version of Bison which was later than 2.7. After changing that to 2.7 version, the problem was solved. So if one follow the instructions from the below link, (s)he would be safe. https://openfoamwiki.net/index.php/I...g_dependencies Best, Shayan |
|
April 24, 2015, 17:02 |
|
#55 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Shayan,
Many thanks for the feedback. I've updated the page, by adding a few more indications about Bison 3 versions not being supported, although I'm not sure that this was what you had in mind. Best regards, Bruno |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with building 3ddp UDF in Ansys FLUENT 16.2 | SPH_CFD | Fluent UDF and Scheme Programming | 1 | July 20, 2016 05:08 |
[swak4Foam] Foam-extend-3.2 and swak4foam...problem with link to triSurface | ndev | OpenFOAM Community Contributions | 7 | February 14, 2016 17:00 |
[swak4Foam] problem with a parabolic velocity profile | Claudio87 | OpenFOAM Community Contributions | 5 | May 29, 2014 10:30 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
problem simulating flow around a building | xavier | FLUENT | 5 | January 3, 2007 06:16 |