|
[Sponsors] |
September 26, 2017, 18:19 |
Tsunami modelling
|
#1 |
New Member
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 9 |
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. |
|
September 26, 2017, 23:48 |
|
#2 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
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 |
|
September 27, 2017, 19:34 |
|
#3 | |
New Member
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 9 |
Quote:
|
||
September 28, 2017, 22:36 |
|
#4 |
New Member
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 9 |
||
October 1, 2017, 22:32 |
|
#5 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
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 |
|
October 1, 2017, 23:30 |
|
#6 |
New Member
Surrey
Join Date: Aug 2017
Posts: 13
Rep Power: 9 |
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? |
|
October 2, 2017, 01:21 |
|
#7 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
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 |
|
|
|
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 22:43 |
CFD in Naval Hydrodynamics, Off-Shore and Wave Modelling with OpenFOAM | hjasak | OpenFOAM Announcements from Other Sources | 2 | February 13, 2017 05:59 |
Modelling of tsunami waves | rohit.jain092 | Fluent Multiphase | 2 | June 6, 2013 00:57 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
Advice on multi-phase flow modelling | Martin | Main CFD Forum | 3 | October 14, 2008 06:16 |