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 29, 2012, 17:08
Default
  #21
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 15
Leech is on a distinguished road
I hope this is the last help in installing waveFoam i will need

I changed the interDyMFoam files as described in the wiki. I got them in a folder in the waves2Foam folder. But when i run wmake this happens:

Quote:
mstrlnx64@mstrlnx64-P5Q-DELUXE:~/waves2Foam/waveFoam$ ./Allwmake
+ wmake
linux64GccDPOpt/options:12: *** missing separator. Schluss.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/mstrlnx64/waves2Foam/waveFoam
+ wmake waveFoam
linux64GccDPOpt/options:12: *** missing separator. Schluss.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/mstrlnx64/waves2Foam/waveFoam
So i guess i messed something in changing the files? Or i changed the wmake-script wrong?
To show you how the files are changed i added them.

Thank you!
Attached Files
File Type: zip waveFoam.zip (10.0 KB, 15 views)
Leech is offline   Reply With Quote

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

Two things appear to be missing:

1. In Make/files: Do not make the executable named waveFoam, unless you want to overwrite the non-meshmoving solver. Furthermore, place the executable in FOAM_USER_APPBIN instead of FOAM_APPBIN.

2. In Make/options: You are missing some '\' between the lines. You have added some lines, but wmake does not recognise them, as it does not understand that the line continues unless you add those seperators: '\'.

Kind regards,

Niels
ngj is online now   Reply With Quote

Old   January 30, 2012, 08:55
Default
  #23
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 15
Leech is on a distinguished road
Sorry, i inserted the "\" as you mentioned. But still it cant compile as it says "cant find relaxationZone.H". So i guess there is still something wrong with the path. My make/options looks like that:

Quote:
EXE_INC = \
-I.. \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
-DOFVERSION=21 \
-I./../../../../src/lnInclude \

EXE_LIBS = \
-ltwoPhaseInterfaceProperties \
-lincompressibleTransportModels \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels \
-lincompressibleLESModels \
-lfiniteVolume \
-ldynamicMesh \
-lmeshTools \
-ldynamicFvMesh \
-ltopoChangerFvMesh \
-L$(FOAM_USER_LIBBIN) \
-lwaves2Foam
Are there still errors in it?
Leech is offline   Reply With Quote

Old   January 30, 2012, 10:21
Default
  #24
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Leech

The line

[CODE]
-I./../../../../src/lnInclude \
[\CODE]

lets the compiler search for all the files in waves2Foam/src/lnInclude relative to the location of the solver you are compiling. Thus, if you have placed your solver at a different level than the other solvers, then you have to add/remove some of the ../ to make it fit your choice in location relative to waves2Foam/src/lnInclude.

Kind regards,

Niels
ngj is online now   Reply With Quote

Old   January 30, 2012, 10:36
Default
  #25
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 15
Leech is on a distinguished road
Hi,

the first part worked now. But it says at createFields.H that the variable g is undefined. Should i worry about that?

And the bigger problem: It still can't find the fvCFD.H, allthough it is located at /finiteVolume/lnInclude? I found the .H there and in the options files is a line -I$(LIB_SRC)/finiteVolume/lnInclude.

?
Leech is offline   Reply With Quote

Old   January 30, 2012, 10:43
Default
  #26
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Leech

I do not know about fvCFD.H, however, the problem with g is simply that you have not done explicitly as stated on the wiki. The two includes MUST be directly below initContinuityErrs.H and above createFields.H (the latter part has just been added).

/ Niels
ngj is online now   Reply With Quote

Old   January 30, 2012, 13:50
Default
  #27
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 15
Leech is on a distinguished road
The problem concerning g is solved. Still the error:

Quote:
~/waves2Foam/waveFoam$ ./Allwmake
+ wmake
Making dependency list for source file waveFoam.C
SOURCE=waveFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -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 -I/opt/openfoam210/src/dynamicMesh/lnInclude -I/opt/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/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/waveFoam.o
/opt/openfoam210/src/finiteVolume/lnInclude/readTimeControls.H: In Funktion »int main(int, char**)«:
/opt/openfoam210/src/finiteVolume/lnInclude/readTimeControls.H:38:8: Warnung: Variable »maxDeltaT« wird nicht verwendet [-Wunused-variable]
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -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 -I/opt/openfoam210/src/dynamicMesh/lnInclude -I/opt/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/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/waveFoam.o -L/opt/openfoam210/platforms/linux64GccDPOpt/lib \
-ltwoPhaseInterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -ldynamicMesh -lmeshTools -ldynamicFvMesh -ltopoChangerFvMesh -L/home/mstrlnx64/OpenFOAM/mstrlnx64-2.1.0/platforms/linux64GccDPOpt/lib -lwaves2Foam -lOpenFOAM -ldl -lm -o /home/mstrlnx64/OpenFOAM/mstrlnx64-2.1.0/platforms/linux64GccDPOpt/bin/waveFoam
+ wmake waveFoam
g++ waveFoam.C -o waveFoam
waveFoam.C:35:19: schwerwiegender Fehler: fvCFD.H: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
make: *** [waveFoam] Fehler 1
comes up. I looked for the fvCFD.H. It is located at /opt/openfoam210/src/finiteVolume/lnInclude
And as I understand it this location stands in the make/options file?
Leech is offline   Reply With Quote

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

I am a bit lost about that error message, however, try to compile interDymFoam as it is into FOAM_USER_APPBIN. If you are not successful, this will tell a lot, and if you are successful, then try modifying interDymFoam as follows:

1. Only modify options to its final form, but leave *C *H untouched.

2. Add the line "#include "relaxationZone.H""

3. Add the gravity-include and remove it in createFields.H

4. Add readWaveProperties.H

5. Add the construction of relaxing in createFields.H

6. Add the line relaxing.update();

Between each of these steps do make a compile and when the compilation start to fail, you know where the problem is. Please start from a completely new copy of interDymFoam in order to avoid any changes you might have done.

The list above should compile in that order, as I see it.

Good luck,

Niels
ngj is online now   Reply With Quote

Old   January 31, 2012, 06:18
Default
  #29
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 15
Leech is on a distinguished road
Hi Niels,

as u suggested i copied thi InterFoam source files to a new folder and tried to compile them to FOAM_USER_APPBIN. This is what i get:

Quote:
+ wmake
Making dependency list for source file interFoam.C
SOURCE=interFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam200/src/transportModels -I/opt/openfoam200/src/transportModels/incompressible/lnInclude -I/opt/openfoam200/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam200/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam200/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/interFoam.o
/opt/openfoam200/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/opt/openfoam200/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam200/src/transportModels -I/opt/openfoam200/src/transportModels/incompressible/lnInclude -I/opt/openfoam200/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam200/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam200/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/interFoam.o -L/opt/openfoam200/platforms/linuxGccDPOpt/lib \
-ltwoPhaseInterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/ecoprototype/OpenFOAM/ecoprototype-2.0.0/platforms/linuxGccDPOpt/bin/interFoam
Make/linuxGccDPOpt/interFoam.o: In function `main':
interFoam.C.text.startup+0xb4c): undefined reference to `Foam::interfaceProperties::interfaceProperties(Fo am::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::IOdictionary const&)'
interFoam.C.text.startup+0x309b): undefined reference to `Foam::interfaceProperties::calculateK()'
collect2: ld returned 1 exit status
make: *** [/home/ecoprototype/OpenFOAM/ecoprototype-2.0.0/platforms/linuxGccDPOpt/bin/interFoam] Error 1
+ wmake interFoam
g++ interFoam.C -o interFoam
interFoam.C:40:19: fatal error: fvCFD.H: No such file or directory
compilation terminated.
make: *** [interFoam] Error 1
+ wmake interDyMFoam
Making dependency list for source file interDyMFoam.C
SOURCE=interDyMFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam200/src/transportModels -I/opt/openfoam200/src/transportModels/incompressible/lnInclude -I/opt/openfoam200/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam200/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/dynamicMesh/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -I/opt/openfoam200/src/dynamicFvMesh/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/interDyMFoam.o
/opt/openfoam200/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/opt/openfoam200/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam200/src/transportModels -I/opt/openfoam200/src/transportModels/incompressible/lnInclude -I/opt/openfoam200/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam200/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/dynamicMesh/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -I/opt/openfoam200/src/dynamicFvMesh/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/interDyMFoam.o -L/opt/openfoam200/platforms/linuxGccDPOpt/lib \
-ltwoPhaseInterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -ldynamicMesh -lmeshTools -ldynamicFvMesh -ltopoChangerFvMesh -lOpenFOAM -ldl -lm -o /opt/openfoam200/platforms/linuxGccDPOpt/bin/interDyMFoam
/usr/bin/ld: cannot open output file /opt/openfoam200/platforms/linuxGccDPOpt/bin/interDyMFoam: Permission denied
collect2: ld returned 1 exit status
make: *** [/opt/openfoam200/platforms/linuxGccDPOpt/bin/interDyMFoam] Error 1
The Allwmake script looks like this:

Quote:
wmake
wmake interFoam
wmake interDyMFoam
The line wmake interFoam was added by me.. Again it asks for fvCFD.H.
Confusing..
Leech is offline   Reply With Quote

Old   January 31, 2012, 07:31
Default
  #30
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
First of all: You are trying to compile interFoam twice, is that what you want? The compilation of interFoam crashes for some to me unknown reason, since using the OF files directly should not cause you problems.

Secondly: interDymFoam complains merely over missing permissions, so you have not changed the Make/files for interDymFoam, as it still tries to place it in $FOAM_APPBIN.

I do not have a 2.1 version, so I am not able to reproduce what you are doing in this end.

Kind regards,

Niels
ngj is online now   Reply With Quote

Old   February 1, 2012, 12:49
Default
  #31
Member
 
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 15
Leech is on a distinguished road
Hi,

i do not know excatly what i did but i reached finally to compile waveDyMFoam. Which is nice, cause i finally can continue my work.
Greets and thanks you so much for your time helping me to compile it, i know that helping linux-noobs isnt fun

So, I hope that i get the waves working. Guess ill shure have some questions about them later

Leech

Last edited by Leech; February 1, 2012 at 16:58.
Leech is offline   Reply With Quote

Old   February 2, 2012, 03:32
Default
  #32
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Congratulations - I hope that waves2Foam will prove useful for your research/consultancy. Please do not hesitate, in case you have suggestions for further improvements.

- Niels
ngj is online now   Reply With Quote

Old   February 7, 2012, 05:52
Default
  #33
New Member
 
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 14
lilinghan8 is on a distinguished road
Quote:
Originally Posted by Leech View Post
Hi,

i do not know excatly what i did but i reached finally to compile waveDyMFoam. Which is nice, cause i finally can continue my work.
Greets and thanks you so much for your time helping me to compile it, i know that helping linux-noobs isnt fun

So, I hope that i get the waves working. Guess ill shure have some questions about them later

Leech
Hi Leech,

Could you upload and let me have a look at your final waveDyMFoam file since I got the same problem as yours.

Regrads,
Lee
lilinghan8 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 07:47
Simple Water Tank Transient 88phil88 CFX 5 March 17, 2014 03:48
active wave absorb(about wave tank) zhaochuangang ANSYS 0 September 22, 2010 02:29
VOF-compression of air with rising water yavuz FLUENT 0 November 26, 2005 09:00
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 07:10


All times are GMT -4. The time now is 05:06.