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

Waves2Foam Related Topics

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree111Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   January 16, 2014, 11:58
Default
  #681
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hi Sophie,

The compilation do look good enough.

Try type the following, before you use the ldd:

Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/polaris_liv1/livyl/OpenFOAM/gsl/lib
This should set the library path, such that it contains the path to the GSL-library.

Good luck,

Niels
tfuwa likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 16, 2014, 12:40
Default
  #682
Member
 
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 5
sophie_l is on a distinguished road
Hi Niels,

It works! Thank you so much indeed!

Sophie
sophie_l is offline   Reply With Quote

Old   January 18, 2014, 07:53
Default
  #683
Member
 
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 4
mary mor is on a distinguished road
Hi Niels,
I'm going to use your wave generation toolbox for my thesis. I've got some questions,I would be grateful if you answer them.
Can I add turbulence properties to waveFlume case and run it for RASmodel? Does it work well?
I'm going to use developed solvers like shipFoam or navalFoam. Is there a guide that how I can integrate these solvers with your toolbox? I've seen the guide for making waveDyMFoam solver. Should I follow the same steps?
Also, why it's needed to put all the wave properties in the waveProperties file when it's given firstStokes? Isn't Height, time Period, depth enough as inputs?

Best regards
Maryam
mary mor is offline   Reply With Quote

Old   January 20, 2014, 18:00
Default
  #684
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hi Maryam,

The turbulence modelling is already available in waveFoam, but OpenFoam does not provide a useful set of turbulence models for two-phase (incompressible) flows. I would recommend you to read our article cited on the Wiki (Jacobsen et al, 2012).

With respect to a guide on coupling with either shipFoam or NavalPack, then I have not really worked with any of these packages/solvers, but I think it should be straightforward. Especially, if you also look into the guide on interDyMFoam.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 23, 2014, 06:00
Default
  #685
Member
 
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 4
mary mor is on a distinguished road
Hi Niel,

I had a look at your paper. You used k-w turbulence model which I think is not provided by openFoam. In tutorioals, I couln't find any case with turbulence model. They were all laminar. So I couldn't understand, how I should add turbulence to the cases.

I followed the instruction at first to make waveDyMFoam. The instruction wasn't compelely working. At last by changing some things, I could make the solver. But after runing it for a case it gives the error below:

Code:
-> FOAM Warning : 
    From function dlLibraryTable::open(const dictionary& dict, const word& libsEntry, const TablePtr tablePtr)
    in file lnInclude/dlLibraryTableTemplates.C at line 68
    library "libwaves2Foam.so" did not introduce any new entries



--> FOAM FATAL ERROR: 
Unknown function type surfaceElevation

Valid functions are : 

3
(
surfaces
sets
probes
)



    From function functionObject::New(const word& name, const Time&, const dictionary&)
    in file db/functionObjects/functionObject/functionObject.C at line 89.

FOAM exiting
Do you know what's it due to?
Thanks so much for your consideration.
Best regards,
Maryam
mary mor is offline   Reply With Quote

Old   January 24, 2014, 04:58
Default
  #686
Member
 
YS
Join Date: Jan 2010
Posts: 79
Rep Power: 8
Ya_Squall2010 is on a distinguished road
Hi Niel,

Just updated the waves2Foam to the latest version (r2025), but encountered some issues when compiling under OF2.1.1 and OF-extend-3.0. For the later, I realize there're some compability issues. But for OF2.1.1 the compiling still fails which surprises me. Attached please find the log file. I am compiling everything as it is, nothing changed.

log_Allwmake.txt

Regards,
Ya_Squall2010 is offline   Reply With Quote

Old   January 24, 2014, 09:02
Default
  #687
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 4
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Neils,

As far as I understood, the bejiBattjes tutorial is a validation case. If so, would you please share the surface elevation comparison of the simulation and ideal (reported by each gauge). Or let me know how can I make the comparative results.

Best,
Behrang

Last edited by Behrang; January 24, 2014 at 11:55.
Behrang is offline   Reply With Quote

Old   January 24, 2014, 12:46
Default
  #688
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hallo all,

@Maryam: I believe you need to link to libwaves2FoamSampling as well.
Furthermore, none of the tutorials are run with a turbulence model, because none of the standard (incompressible) turbulence models in OF can (my personal opinion) be used for free surface flows, because the diffusion across the free surface is too large, when the density is not accounted for. I have never come around to put corrected turbulence model(s) into waves2Foam, so for now, I recommend that you create your own, e.g. according to our article or any other turbulence model of your preference.

@Behrang: If you execute the file in the matlab-directory in the bejiBattjes tutorial, then it will produce the comparison. The experimental data is placed in the folder called experimentalData.

@YS: I will return to you on this error.

Kind regards,

Niels
tfuwa and mo_na like this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 24, 2014, 14:41
Default
  #689
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 4
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi Neils,

Thank you for your kind response, I checked the Matlab directory and there is only a file (processData. m) which is not executable.
Would you please guide me more.

Thanks in advance.

Behrang
Behrang is offline   Reply With Quote

Old   January 24, 2014, 17:54
Default
  #690
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
It is because to need to have Matlab installed to run the script. If you do not have Matlab, you can make you own script in any language you would prefer. You can use the Matlab script as inspiration.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 25, 2014, 09:00
Default
  #691
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hi YS,

I have installed OF-2.1.1 today and taken a fresh snapshot of waves2Foam (r2025) and I did not have any problems with the compilation.

I believe something must have gone wrong with the update, and I suspect that your are at least missing the file:

Code:
src/waves2FoamProcessing/preProcessing/setWaveProperties/irregular/waveSpectra/phases/phases.C
which was added in revision 2020. This is the description taken from the Wiki:

Code:
2013-09-15 09:37:28: (r2020) Added phase focusing as an option for irregular waves.
Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 27, 2014, 00:23
Default
  #692
Member
 
YS
Join Date: Jan 2010
Posts: 79
Rep Power: 8
Ya_Squall2010 is on a distinguished road
Hi Niels,

By adding the following lines into the Make/files, the problem's gone:

phases=phases
$(waveProp)/$(irregular)/$(dws)/$(phases)/phases.C
$(waveProp)/$(irregular)/$(dws)/$(phases)/focusingPhase/focusingPhase.C
$(waveProp)/$(irregular)/$(dws)/$(phases)/randomPhase/randomPhase.C

Thanks a lot for the hint!
YS
Ya_Squall2010 is offline   Reply With Quote

Old   January 27, 2014, 16:15
Default
  #693
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 4
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hello Neils,

I tried to modify the waveFlume tutorial in order to simulate waves with H=0.2, h=1, L=2 (H/L=0.1) and stokesSecond wave theory.
the result shows damping of the waves after 1 or two wave length as well as very very small breaking while the breaking limit due to Fenton equation is H/L=0.14

What do you think about it?

Best,
Behrang
Behrang is offline   Reply With Quote

Old   January 27, 2014, 16:50
Default
  #694
New Member
 
behrang chenari
Join Date: Nov 2013
Location: Coimbra, Portugal
Posts: 11
Rep Power: 4
Behrang is on a distinguished road
Send a message via Skype™ to Behrang
Hi again,

I have also defined three different geometries in order to model different types of wave breakers (spilling, plunging and surging).
I want to compare the simulation wave run-up against theoretical run-up using the equation of hunt and battjes R2%=H*C*(surf similarity)
Do you have any suggestion for how to get the simulation results?

Best,
Behrang
Behrang is offline   Reply With Quote

Old   January 28, 2014, 17:11
Default
  #695
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hallo Behrang,

With respect to the dissipation, have you remembered to change the water depth in the computational domain?

Secondly, with respect to mesh requirements to capture correct breaking and avoid immature breaking, I will kindly refer you to our paper (Jacobsen et al, 2012).

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 28, 2014, 17:15
Default waveDyMFoam
  #696
New Member
 
Paulo Roberto
Join Date: Apr 2013
Posts: 6
Rep Power: 5
p.roberto is on a distinguished road
Hi

I installed successfully waves2foam in OF221, and now i'm trying to compile waveDyMFoam but when i type wmake it gives me the error below:

SOURCE=waveDyMFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/transportModels/twoPhaseMixture/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/transportModels -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/transportModels/incompressible/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/transportModels/interfaceProperties/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/finiteVolume/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/dynamicMesh/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/meshTools/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/fvOptions/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/sampling/lnInclude -IlnInclude -I. -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude -I/home/tiago/OpenFOAM/OpenFOAM-2.2.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o
waveDyMFoam.C:44:28: erro fatal: relaxationZone.H: Ficheiro ou directoria inexistente
compilação terminada.
make: ** [Make/linux64GccDPOpt/waveDyMFoam.o] Erro 1

can anyone help me please?
p.roberto is offline   Reply With Quote

Old   January 28, 2014, 17:56
Default
  #697
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hi Roberto,

You are using a not updated guide on the wiki, which is also stated explicitly.

This means that your Make/options file is not correct. Consult e.g. the corresponding file for the waveFoam solver.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 28, 2014, 19:18
Default
  #698
New Member
 
Paulo Roberto
Join Date: Apr 2013
Posts: 6
Rep Power: 5
p.roberto is on a distinguished road
Hi Niels, thanks for your reply

I've try to compare the corresponding file for the waveFoam solver and i know that the problem is in:
-I./../../../../../src/lnInclude

but i don't know how i have to change that line

My Options file is:

EXE_INC = \
-I.. \
-I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
-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)/dynamicFvMesh/lnInclude \
-I./../../../../../src/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude

EXE_LIBS = \
-ltwoPhaseMixture \
-linterfaceProperties \
-ltwoPhaseProperties \
-lincompressibleTransportModels \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels \
-lincompressibleLESModels \
-lfiniteVolume \
-ldynamicMesh \
-ldynamicFvMesh \
-ltopoChangerFvMesh \
-lmeshTools \
-lfvOptions \
-lsampling \
-L$(WAVES_LIBBIN) \
-lwaves2Foam
p.roberto is offline   Reply With Quote

Old   January 29, 2014, 15:55
Default
  #699
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,693
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Hi Roberto,

For OF221, you want to add the following to the EXE_INC part:

Code:
    -DOFVERSION=221 \
    -DEXTBRANCH=0 \
    -DXVERSION=$(WAVES_XVERSION) \
    -I$(WAVES_SRC)/waves2Foam/lnInclude \
    -I$(WAVES_SRC)/waves2FoamSampling/lnInclude
and the following to the EXE_LIBS part:

Code:
    -L$(WAVES_LIBBIN) \
    -lwaves2Foam \
    -lwaves2FoamSampling
That should do it, but remember to add the needed newline characters '\'.

Kind regards,

Niels
p.roberto and daouba like this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 30, 2014, 08:24
Default waves2foam on OF 2.2.2
  #700
New Member
 
Nick Krgs
Join Date: Jan 2014
Posts: 12
Rep Power: 4
Nick_civ is on a distinguished road
Hi Neils,

I am a new linux and OF user and i am trying to install waves2foam on OF 2.2.2.
I followed wiki instruction (svn co http://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.6/other/waves2Foam ) and a waves2foam folder has been created outside the OFfolder.
Then I followed the instructions for interfoam modifications and created waveFoam and waveDymfoam for 2.2.2. according to your 2.2.1 solver and wiki instructions.

-DOFVERSION=222 \ -DEXTBRANCH=0 \ -DXVERSION=$(WAVES_XVERSION) \ -I$(WAVES_SRC)/waves2Foam/lnInclude \ -I$(WAVES_SRC)/waves2FoamSampling/lnIncludewhen i apply wmake it shows me error although I tried
export WAVES_DIR=$HOME/waves2Foam
nikos@nikos:~$
nikos@nikos:~$ cd waves2Foam/
nikos@nikos:~/waves2Foam$ ./Allwmake

=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
WAVES_APPBIN=/home/nikos/OpenFOAM/nikos-2.2.2/platforms/linux64GccDPOpt/bin
WAVES_DIR=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/nikos/OpenFOAM/nikos-2.2.2/platforms/linux64GccDPOpt/lib
WAVES_POST=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam/applications/solvers/solvers222
WAVES_SRC=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam/src
WAVES_TUT=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=222


FATAL ERROR.
The directory path /home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam does not exist.
Correct the path in bin/bashrc

This means that you should correct the environmental variable $WAVES_DIR
such that it is pointed (in absolute sense) to the path, where waves2Foam
is located.

Please note that once bin/bashrc is created, bin/bashrc.org is only an
inactive file. The latter is also the only of the two files, which is
updated through the SVN-repository.

EXITING

nikos@nikos:~/waves2Foam$ export WAVES_DIR=$HOME/waves2Foam
nikos@nikos:~/waves2Foam$ ./Allwmake

FATAL ERROR.
The directory path /home/nikos/OpenFOAM/nikos-2.2.2/applications/utilities/waves2Foam does not exist.
Correct the path in bin/bashrc

This means that you should correct the environmental variable $WAVES_DIR
such that it is pointed (in absolute sense) to the path, where waves2Foam
is located.

Please note that once bin/bashrc is created, bin/bashrc.org is only an
inactive file. The latter is also the only of the two files, which is
updated through the SVN-repository.

EXITING

nikos@nikos:~/waves2Foam$


Thank you in advance.
Nick_civ is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Other Topics at OpenFOAM Workshop Milan 2008 hjasak OpenFOAM 2 October 26, 2013 04:33
Sections / Topics in CFD Wiki Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58
CFD Related Educational Programmes Jonas Larsson Main CFD Forum 3 February 9, 2007 11:11
project topics vivekanand CFX 0 October 27, 2004 05:17
Advanced Topics in Aerodynamics Antonio Filippone Main CFD Forum 0 August 28, 1999 12:16


All times are GMT -4. The time now is 14:40.