|
[Sponsors] |
Wave tank - what to do against the rising water? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 25, 2012, 13:01 |
Wave tank - what to do against the rising water?
|
#1 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi,
i just played around with the groovyBC. I got a wave tank pretty similar to the old "groovyWaveTank" tutorial. But as the waves progress and the time goes by, alpha1 is injected and the water is beginning to rise in the tank.. What possibilities do i have to keep the water height almost constant but to still generate some waves? I guess ill need a tricky outletBC? Thanks! Greetings Leech |
|
January 25, 2012, 13:33 |
|
#2 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi,
very true, this is the result of the net in-flux of water, due to the excess of mass in the wave crests. Active wave absorption linked with your generation BC is what you need. We are preparing to release a wave generation and absorption BC bundle, which I hope will be available as soon as some papers are accepted. Regards Pablo |
|
January 25, 2012, 16:03 |
|
#3 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi Pablo,
thanks for your answer! Will this boundle be released with the OpenFOAM package or will it be extra? Where do i have to look to get it? Anyway: is there a way to realise this functionality with the OpenFOAM 2.1.0 release? (+ swak4foam) Thanks! Greets Leech |
|
January 25, 2012, 16:23 |
|
#4 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hello,
it is an external boundary condition, as for example GroovyBC, there is only the need to compile it and it is ready to go. Unfortunately it cannot be released yet. I will post it when it is ready, but some results will be posted in advance for sure, as soon as a couple of papers get accepted. I have never used swak4foam, I guess it is not capable of such a thing, as it must support water level measurement in front of the patch. Regards Pablo |
|
January 26, 2012, 05:07 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Leech
There is another possibility, as I have recently released a wave generation/absorption toolbox into OpenFoam. You can find the necessary information here: http://openfoamwiki.net/index.php/Contrib/waves2Foam @Pablo: In stead of having two 'competing' software lines, we might consider working together on one common toolbox. If you are interested, feel free to contact me, when the release date approaches. Kind regards, Niels |
|
January 26, 2012, 07:41 |
|
#6 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Leech
To answer your question posed by email: Yes, waves2Foam does indeed work with interDymFoam, however, the solver is not distributed along with waves2Foam, thus you need to modify interDymFoam into e.g. waveDymFoam by following the description on the wiki. Kind regards, Niels |
|
January 26, 2012, 10:44 |
|
#7 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi,
thanks again for your fast answer. Last 2 questions before i will try to get waveDyMFoam. (1) In the wiki is a section 3.2 (how to modify interFoam). I guess this is the routine ill have to follow, as the wmake-script only works with interFoam? (2) In the compatibility-section only Foams up to the version 1.7.1 are mentioned. Anyways i red threads of users how got Foam 2.0 working. And in section 3.2 is described the way for more recent Foam-versions. Can i use Foam 2.0.0 or 2.1.0 and follow 3.2 to get waveDyMFoam? If you dont know, as it is not official, do you know if somebody already tried is? Thank you! Greets Leech |
|
January 26, 2012, 10:54 |
|
#8 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Ad. 1: Yes, follow the Wiki but use interDymFoam as baseline instead.
Ad. 2: It is not by me officially released for 2.0/2.1 as I have neither, but people can compile it without any problems as of SVN revision no. 1934. That is the reason I added the "How-To", so the users could make make waveFoam for themselves. - Niels |
|
January 26, 2012, 17:06 |
|
#9 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Thank you Niels.
I'll try to get it compiled tomorrow and will tell about my progress here! |
|
January 27, 2012, 04:57 |
|
#10 | |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Quote:
I've been talking to my boss and, when the time comes, we will be willing to collaborate between both departments. We'll keep in touch. Regards |
||
January 27, 2012, 05:45 |
|
#11 | |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Quote:
i am actually trying to install wavesDyMFoam. I changed the interDyMFoam files the way it is described in the wiki. I got them in a folder. I installed GSL (the version that was mentioned in the README from the svn checkout). I checked out waves2foam 1935 by svn. Now i got the start the allwmake script? But how can it know were my modified interDyMFOam files are located? How do i get sure it is using these files? Thank you! Leech |
||
January 29, 2012, 05:10 |
|
#12 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi
@Pablo: Great! Good luck with the review process. @Leech: I am not quite sure what you are asking, however, the step by step is: 1. Instal GSL (DONE!) 2. Download waves2Foam (DONE!) 3. Run the Allwmake-script. This will compile libraries and the utilities but not the solvers, soforth you are using 2.0/2.1. 4. Locate interDymFoam and copy all the solver-files to e.g. a folder in your waves2Foam-installation. 5. Change the files as listed on the wiki - including Make/options and Make/files, where especially the output name in Make/files should be changed to avoid overwriting the original interDymFoam. 6. Type wmake in the waveDymFoam folder. Good luck, Niels |
|
January 29, 2012, 11:39 |
|
#13 | |||
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Quote:
When i run the allwmake-script from waves2Foam i get the following: Quote:
I guess it doesn't worked, problem is that the error messages aren't that clear to me.. Nonetheless i copied the changed files from interDyMFOam to the waves folder and tried to run the script and then i get the following: Quote:
|
||||
January 29, 2012, 12:14 |
|
#14 | |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
I tried the whole procedure again on a fresh installed Kubuntu-machine.
1. I installed GSL libgsl0-dev (by sudo apt-get) 2. I cheked out waves2foam 3. i typed wmake all He got the same error message. When i try then to run the script again the following is printed: Quote:
For me it looks like he isnt able to locate or create some files or libraries? |
||
January 29, 2012, 12:55 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
That's a simple mistake people tend to make when developing software for OpenFOAM: one should never make the packages build by default onto the main OpenFOAM library and application folders! Always use the "user" ones namely "FOAM_USER_LIBBIN" and "FOAM_USER_APPBIN". Using the main folders sort-of implies that you are distributing the code along with the original code, which isn't the usual scenario. The fix should be quite simple... OK, first go into the master folder of the "waves2Foam" source code and then run this command: Code:
find . -name files | xargs sed -i -e 's=FOAM_LIBBIN=FOAM_USER_LIBBIN=' find . -name files | xargs sed -i -e 's=FOAM_APPBIN=FOAM_USER_APPBIN=' Best regards, Bruno
__________________
|
|
January 29, 2012, 13:07 |
|
#16 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi Bruno,
i runned your suggested commands directly in the waves2foam folder (means no subfolder). But it didnt help I still get the same error messages when running wmake all... Could it be a problem that i allready runned the script and it crashed? Do I need a complete fresh beginning? |
|
January 29, 2012, 13:47 |
|
#17 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Bruno
Thanks for your comment. You go directly into one of my TODO's, but I have up to now not been able to successfully compile waves2Foam with "USER". The strange thing is that even though $FOAM_USER_LIBBIN is present in both $PATH and $LD_LIBRARY_PATH, then I cannot successfully compile, as it complains over the missing library, which is placed in $FOAM_USER_LIBBIN. I do not know if the following help, but the status is: Code:
waves2Foam $ locate libwaves2Foam.so /home/ngj/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libwaves2Foam.so /home/ngj/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libwaves2Foam.so Code:
waves2Foam $ which libwaves2Foam.so /home/ngj/OpenFOAM/ngj-1.6-ext/lib/linux64GccDPOpt/libwaves2Foam.so Kind regards, Niels |
|
January 29, 2012, 14:04 |
|
#18 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Bruno and Leech
Problem solved - I had a look at the SVN-rep, and what I was missing is the following in the options file, as it should read Code:
-L$(FOAM_USER_LIBBIN) \ -lwaves2Foam Code:
-lwaves2Foam / Niels P.S. The SVN-repository for waves2Foam will be updated shortly. |
|
January 29, 2012, 14:28 |
|
#19 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Leech
Type Code:
svn update Code:
-DOFVERSION=<The first two digits in the OF-version number> \ Code:
-DOFVERSION=20 \ Code:
-DOFVERSION=21 \ Niels |
|
January 29, 2012, 17:46 |
|
#20 | |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Quote:
Wmake worked now Now i got to get this solver compiled.. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Filling Tank with Water | leff | CFX | 7 | August 21, 2017 08:47 |
Simple Water Tank Transient | 88phil88 | CFX | 5 | March 17, 2014 04:48 |
active wave absorb(about wave tank) | zhaochuangang | ANSYS | 0 | September 22, 2010 03:29 |
VOF-compression of air with rising water | yavuz | FLUENT | 0 | November 26, 2005 10:00 |
uptodate water distribution network | fredius,magige,tanzanian,(e.a) | Main CFD Forum | 0 | January 27, 2002 08:10 |