CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Wave tank - what to do against the rising water?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2012, 13:01
Default Wave tank - what to do against the rising water?
  #1
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
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
Leech is offline   Reply With Quote

Old   January 25, 2012, 13:33
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
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
Phicau is offline   Reply With Quote

Old   January 25, 2012, 16:03
Default
  #3
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
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
Leech is offline   Reply With Quote

Old   January 25, 2012, 16:23
Default
  #4
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
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
Phicau is offline   Reply With Quote

Old   January 26, 2012, 05:07
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   January 26, 2012, 07:41
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   January 26, 2012, 10:44
Default
  #7
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
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
Leech is offline   Reply With Quote

Old   January 26, 2012, 10:54
Default
  #8
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   January 26, 2012, 17:06
Default
  #9
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
Thank you Niels.
I'll try to get it compiled tomorrow and will tell about my progress here!
Leech is offline   Reply With Quote

Old   January 27, 2012, 04:57
Default
  #10
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Quote:
Originally Posted by ngj View Post
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
Hi,

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
Phicau is offline   Reply With Quote

Old   January 27, 2012, 05:45
Default
  #11
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
Quote:
Originally Posted by ngj View Post
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
Hi,

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
Leech is offline   Reply With Quote

Old   January 29, 2012, 05:10
Default
  #12
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   January 29, 2012, 11:39
Default
  #13
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
Quote:
Originally Posted by ngj View Post
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

When i run the allwmake-script from waves2Foam i get the following:
Quote:
make[2]: *** [/opt/openfoam210/platforms/linux64GccDPOpt/bin/relaxationZoneLayout] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[1]: *** [relaxationZoneLayout] Fehler 2
make[2]: Betrete Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveField'
Making dependency list for source file setWaveField.C
could not open file readEnvironmentalProperties.H for source file setWaveField.C
make[2]: Verlasse Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[2]: Betrete Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveField'
SOURCE=setWaveField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -DOFVERSION=21 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveField.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -DOFVERSION=21 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/setWaveField.o -L/opt/openfoam210/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveField
/usr/bin/ld: cannot open output file /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveField: Permission denied
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [/opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveField] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[1]: *** [setWaveField] Fehler 2
make[2]: Betrete Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
Making dependency list for source file setWaveParameters.C
could not open file readEnvironmentalProperties.H for source file setWaveParameters.C
make[2]: Verlasse Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[2]: Betrete Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
SOURCE=setWaveParameters.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -DOFVERSION=21 -I/opt/openfoam210/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setWaveParameters.o
setWaveParameters.C: In Funktion »int main(int, char**)«:
setWaveParameters.C:108:31: Warnung: Der Rückgabewert von »int system(const char*)«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -DOFVERSION=21 -I/opt/openfoam210/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/setWaveParameters.o -L/opt/openfoam210/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lgsl -lgslcblas -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveParameters
/usr/bin/ld: cannot open output file /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveParameters: Permission denied
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [/opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveParameters] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: *** [setWaveParameters] Fehler 2
make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make[1]: Verlasse Verzeichnis '/home/mstrlnxwindows/waves2Foam/applications/utilities/preProcessing'
make: *** [preProcessing] Fehler 2
make: Das Target »application« wurde wegen Fehlern nicht aktualisiert.

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:
mstrlnxwindows@mstrlnxwindows-VirtualBox:~/waves2Foam$ wmake
SOURCE=waveDyMFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -DOFVERSION=<The first two digits in the OF-version number> -I./../../../../src/lnInclude -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
/bin/sh: cannot open The: No such file
make: *** [Make/linux64GccDPOpt/waveDyMFoam.o] Fehler 2
Leech is offline   Reply With Quote

Old   January 29, 2012, 12:14
Default
  #14
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
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:
/usr/bin/ld: cannot open output file /opt/openfoam210/platforms/linux64GccDPOpt/lib/libwaves2Foam.so: Permission denied
collect2: ld gab 1 als Ende-Status zurück
make: *** [/opt/openfoam210/platforms/linux64GccDPOpt/lib/libwaves2Foam.so] Fehler 1
./Allwmake: Zeile 43: cd: applications/solvers/solvers21: Datei oder Verzeichnis nicht gefunden
make[1]: Betrete Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/misc'
make[2]: Betrete Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/misc/matlab'
make[2]: Für das Ziel »application« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/misc/matlab'
make[1]: Verlasse Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/misc'
make[1]: Betrete Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing'
make[2]: Betrete Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -DOFVERSION=21 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/relaxationZoneLayout.o -L/opt/openfoam210/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/openfoam210/platforms/linux64GccDPOpt/bin/relaxationZoneLayout
/usr/bin/ld: cannot open output file /opt/openfoam210/platforms/linux64GccDPOpt/bin/relaxationZoneLayout: Permission denied
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [/opt/openfoam210/platforms/linux64GccDPOpt/bin/relaxationZoneLayout] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[1]: *** [relaxationZoneLayout] Fehler 2
make[2]: Betrete Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing/setWaveField'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/finiteVolume/lnInclude -DOFVERSION=21 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/setWaveField.o -L/opt/openfoam210/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveField
/usr/bin/ld: cannot open output file /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveField: Permission denied
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [/opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveField] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing/setWaveField'
make[1]: *** [setWaveField] Fehler 2
make[2]: Betrete Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -DOFVERSION=21 -I/opt/openfoam210/src/finiteVolume/lnInclude -I./../../../../src/lnInclude -I./../../../../src/lnInclude -I/usr/local/include -I/include -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/setWaveParameters.o -L/opt/openfoam210/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lgsl -lgslcblas -lwaves2Foam -lOpenFOAM -ldl -lm -o /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveParameters
/usr/bin/ld: cannot open output file /opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveParameters: Permission denied
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [/opt/openfoam210/platforms/linux64GccDPOpt/bin/setWaveParameters] Fehler 1
make[2]: Verlasse Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: *** [setWaveParameters] Fehler 2
make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make[1]: Verlasse Verzeichnis '/home/mstrlnx64/waves2Foam/applications/utilities/preProcessing'
make: *** [preProcessing] Fehler 2
make: Das Target »application« wurde wegen Fehlern nicht aktualisiert.

For me it looks like he isnt able to locate or create some files or libraries?
Leech is offline   Reply With Quote

Old   January 29, 2012, 12:55
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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='
It will replace all entries that are causing the issues. Now try building it again

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 29, 2012, 13:07
Default
  #16
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
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?
Leech is offline   Reply With Quote

Old   January 29, 2012, 13:47
Default
  #17
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
and

Code:
waves2Foam $ which libwaves2Foam.so
/home/ngj/OpenFOAM/ngj-1.6-ext/lib/linux64GccDPOpt/libwaves2Foam.so
With respect to the 'locate' command, the first library does not exist, whereas the 'which' finds the correct library. I am really confused, so I hope you are able to shed a light onto this.

Kind regards,

Niels
ngj is offline   Reply With Quote

Old   January 29, 2012, 14:04
Default
  #18
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
instead of

Code:
-lwaves2Foam
Now it compiles. Enjoy the rest of your weekend

/ Niels

P.S. The SVN-repository for waves2Foam will be updated shortly.
ngj is offline   Reply With Quote

Old   January 29, 2012, 14:28
Default
  #19
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Leech

Type

Code:
svn update
in the waves2Foam folder, and you will get the most recent version. Furthermore, in the application you are trying to compile, the line in Make/options

Code:
-DOFVERSION=<The first two digits in the OF-version number> \
should not read that explicitly, but you have to replace <...> by whatever you current version is; e.g. 2.0.1 gives
Code:
-DOFVERSION=20 \
and version 2.1.x gives
Code:
 -DOFVERSION=21 \
Good luck

Niels
ngj is offline   Reply With Quote

Old   January 29, 2012, 17:46
Default
  #20
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16
Leech is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Leech

Type

Code:
svn update
in the waves2Foam folder, and you will get the most recent version. Furthermore, in the application you are trying to compile, the line in Make/options

Code:
-DOFVERSION=<The first two digits in the OF-version number> \
should not read that explicitly, but you have to replace <...> by whatever you current version is; e.g. 2.0.1 gives
Code:
-DOFVERSION=20 \
and version 2.1.x gives
Code:
 -DOFVERSION=21 \
Good luck

Niels
Thanks for your great support!
Wmake worked now
Now i got to get this solver compiled..
Leech is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:52.