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

Tsunami modelling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Phicau

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2017, 17:19
Question Tsunami modelling
  #1
aji
New Member
 
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 8
aji is on a distinguished road
Hi
I am a new OpenFoam user already have practiced the dambreak example. Now I am looking to stimulate The wave force due to tsunami on a coastal dyke. Please advice me how I can do that? Which tutorial I need to practice and what are the solvers I need to have a look? please direct me in the right direction.
aji is offline   Reply With Quote

Old   September 26, 2017, 22:48
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi aji,

you can try olaFoam. You have a breakwater example in which you can change the boundary conditions to generate a solitary wave easily:

https://github.com/phicau/OLAFOAM

Cheers,

Pablo
aji likes this.
Phicau is offline   Reply With Quote

Old   September 27, 2017, 18:34
Smile
  #3
aji
New Member
 
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 8
aji is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi aji,

you can try olaFoam. You have a breakwater example in which you can change the boundary conditions to generate a solitary wave easily:

https://github.com/phicau/OLAFOAM

Cheers,

Pablo
Thank you very much phicau
aji is offline   Reply With Quote

Old   September 28, 2017, 21:36
Default
  #4
aji
New Member
 
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 8
aji is on a distinguished road
Quote:
Originally Posted by aji View Post
Thank you very much phicau
Hi what is the code for run the solver and what is the solver for basewave flume? to practice the tutorial 1) I run the blockmesh 2) setfields
how to run the simulation? (I was just tried it like dambreak example).
aji is offline   Reply With Quote

Old   October 1, 2017, 21:32
Default
  #5
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Dear Aji,

I suggest that you read the olaFoam wiki site, it will answer some of your questions and help you to progress:

https://openfoamwiki.net/index.php/Contrib/OLAFOAM

For your reference, there is also a compiling guide here:

https://sites.google.com/site/olafoamcfd/source-code

What you need to do is, source OpenFOAM and compile the code, then every time that you source OpenFOAM, the solvers olaFoam and olaDyMFoam will be available.

The github release also includes tutorials. You need to choose the version of the tutorials according to the version of OpenFOAM that you have installed, this is very important because at some point alpha1 changed to alpha.water, so old tutorials do not run with the new versions.

All the tutorials include a runCase script with all the instructions necessary to run the case; they also include a cleanCase script to reset the case into the small size example.

Please read the wiki and look for answers in the olaFoam Thread ( The OLAFOAM Thread ) before asking, most of the times your questions have already been solved and you will get going immediately.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   October 1, 2017, 22:30
Default
  #6
aji
New Member
 
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 8
aji is on a distinguished road
Hi Phicau
I am stuck in this.
1) I could not set it up initially. it is showing when I compile in the base folder. please see the error message.

aji@myfirstlaptop MINGW64 OpenFOAM-4.x ~/OLAFOAM
$ ./allMake
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file wavemakerMovement/wavemakerMovement.C
-- line 317 col 2: "\n" expected
Making dependency list for source file waveVelocity/waveVelocityFvPatchVectorField.C
-- line 366 col 10: "\n" expected
-- line 83 col 10: "\n" expected
-- line 83 col 10: "\n" expected
-- line 83 col 10: "\n" expected
-- line 65 col 10: "\n" expected
-- line 210 col 10: "\n" expected
Making dependency list for source file waveAlpha/waveAlphaFvPatchScalarField.C
-- line 366 col 10: "\n" expected
x86_64-w64-mingw32-g++ -std=c++0x -Dmingw_w64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -DWIN64 -DLITTLE_ENDIAN -DWIN64 -DLITTLE_ENDIAN -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O2 -DNDEBUG -Wl,--strip-all -DNoRepository -ftemplate-depth-100 -DOFVERSION=490 -DOFFLAVOUR=3 -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/finiteVolume/lnInclude -I./waveVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel @Make/mingw_w64GccDPInt32Opt/includeHeaderPaths -IlnInclude -I. -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/OpenFOAM/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-4.x/src/OSspecific/MSwindows/lnInclude -c waveAlpha/waveAlphaFvPatchScalarField.C -o C:\\Program Files\\blueCFD-Core-2016\\msys64\\home\\ofuser\\OLAFOAM\\genAbs\\waveG eneration\\Make\\mingw_w64GccDPInt32Opt\\waveAlpha \\waveAlphaFvPatchScalarField.o
x86_64-w64-mingw32-g++.exe: error: Files\blueCFD-Core-2016\msys64\home\ofuser\OLAFOAM\genAbs\waveGenerat ion\Make\mingw_w64GccDPInt32Opt\waveAlpha\waveAlph aFvPatchScalarField.o: No such file or directory
/home/ofuser/blueCFD/OpenFOAM-4.x/wmake/rules/General/transform:8: recipe for target 'Make/mingw_w64GccDPInt32Opt/waveAlpha/waveAlphaFvPatchScalarField.o' failed
make: *** [Make/mingw_w64GccDPInt32Opt/waveAlpha/waveAlphaFvPatchScalarField.o] Error 1
\n\nWave generation boundary conditions compilation failed

aji@myfirstlaptop MINGW64 OpenFOAM-4.x ~/OLAFOAM
$

2) how to find my openfoam version? ( I am a windows user using blucfd core OpenFoam-4.x=> which version of tutorial can I use?
aji is offline   Reply With Quote

Old   October 2, 2017, 00:21
Default
  #7
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Aji,

the problem is that the code is not compatible with the windows version. As far as I know it can only be compiled under Linux and Mac.

Nevertheless, I remember the guys from bluecfd adapting ihfoam some versions ago. You can take a look at their efforts here:

https://github.com/phicau/IHFOAM/network

and check if you can make the appropriate changes for it to compile.

Best,

Pablo
Phicau 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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
CFD in Naval Hydrodynamics, Off-Shore and Wave Modelling with OpenFOAM hjasak OpenFOAM Announcements from Other Sources 2 February 13, 2017 04:59
Modelling of tsunami waves rohit.jain092 Fluent Multiphase 2 June 5, 2013 23:57
error message cuteapathy CFX 14 March 20, 2012 06:45
Advice on multi-phase flow modelling Martin Main CFD Forum 3 October 14, 2008 05:16


All times are GMT -4. The time now is 23:29.