|
[Sponsors] |
![]() |
![]() |
#241 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Maoyanjun,
If you are not using IHFOAM... Quote:
Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
![]() |
![]() |
![]() |
![]() |
#242 |
New Member
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10 ![]() |
I am sorry for that I thought the OLAFoam and IHFOAM are the same solvers for ocean engineering.So I post it here. I will post it to the olaFoam thread.
|
|
![]() |
![]() |
![]() |
![]() |
#243 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Maoyanjun,
No need to apologize. Quote:
Nowadays, IHFOAM-V2.0 is fully integrated in OpenFOAM-v1612+ and OpenFOAM-v1706, thanks to an agreement (2016) betwen IHCantabria and ESI-Group. ![]() Free surface time history of a cnoidal wave. Dashed red line: IHFOAM-v1.0 (release 2014). Dotted green line: Theoretical solution. Black solid line: IHFOAM-v2.0 (OpenFOAM® release v1706). You can find more info in the web site: http://ihfoam.ihcantabria.com
__________________
http://ihfoam.ihcantabria.com/ Last edited by IHFOAM Team; September 19, 2017 at 11:28. |
||
![]() |
![]() |
![]() |
![]() |
#244 | |
New Member
Hao Chen
Join Date: Nov 2017
Location: Manchester, UK
Posts: 10
Rep Power: 8 ![]() |
Hi,
I just found that the irregular wave in IHFOAM in v1706 was removed, if I remember correctly, it was available in previous versions. Is there any explaination on this issue? Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#245 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Hao
Yes, indeed!! We are currently working in a bunch of new boundary conditions to be released in the near future, and a newer version of irregular waves will be one of those.
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#246 |
New Member
Hao Chen
Join Date: Nov 2017
Location: Manchester, UK
Posts: 10
Rep Power: 8 ![]() |
Hi,
Thanks a lot for your reply! I am recently also working on oblique uni-directional and multi-directional waves. So this is actually the first time for me to use more than one wave paddle. It seems that I got some stability issues. So I am just wondering usually how many wave paddles shall I choose for multi-directional waves for the inlet and outlet? As far as I remember, there was some different options on 2D and 3D wave absorption in the original version. Are they now merged into one boundary condition in OpenFOAM v1706? Best regards Hao |
|
![]() |
![]() |
![]() |
![]() |
#247 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
HI Hao,
Quote:
and you look into: constant/waveProperties, you will find a parameter called nPaddle. This is the number of paddles that you want to divide a particular patch. You can put any number, but of course, we recommend you to split the patch in paddles of the same size.
__________________
http://ihfoam.ihcantabria.com/ |
||
![]() |
![]() |
![]() |
![]() |
#248 | |
New Member
Hao Chen
Join Date: Nov 2017
Location: Manchester, UK
Posts: 10
Rep Power: 8 ![]() |
Hi,
Thanks a lot for your kind reply. But regarding the absorption of waves, I am just wondering that the current shallowWaterAbsorption condition is based on 2D or 3D theory? I mean does it estimate a wave angle and mainly absorb waves in that angle? Is it beneficial to assign more paddles on the absorption boundary? Best regards Hao Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#249 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Hao,
Yes, it is based on a 2d theory, therefore we can just absorb the incoming waves perpendicular to the patch. By adding several paddles, we can minimize the 3d effects, but we will never be able to absorb the waves that are tangencial to the patch. Nevertheless, the results are very accurate. Note that if you increase your number of paddles, you will increase the computational cost too. Best Regards.
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#250 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi,
We are very happy to announce that you can find the multi-directional irregular waves boundary condition in OpenFOAM v1816 release: https://www.openfoam.com/releases/op...ave-generation ![]() ![]() Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#251 |
New Member
Join Date: Oct 2018
Posts: 17
Rep Power: 7 ![]() |
Hi, I have newly installed IHFOAM and I am trying to run the first example, /genAbs
However, I get the below error. Can anybody please help me with this? wmake libso waveGeneration wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_Waves_InletVelocityFvPatchVectorField.C Making dependency list for source file IH_Waves_InletAlphaFvPatchScalarField.C g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOFVERSION=60 -I/opt/openfoam6/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude -fPIC -c IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C -o Make/linux64GccDPInt32Opt/IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.o In file included from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.H:277:0, from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:47: ../common/memberFun.H: In member function ‘Foam::scalar Foam::IH_Waves_InletAlphaFvPatchScalarField::PI()’ : ../common/memberFun.H:7:35: error: ‘mathematicalConstant’ has not been declared const scalar PI = mathematicalConstant: ![]() ^~~~~~~~~~~~~~~~~~~~ IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C: In member function ‘virtual void Foam::IH_Waves_InletAlphaFvPatchScalarField::updat eCoeffs()’: IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:340:26: error: ‘dimensionedInternalField’ was not declared in this scope const fvMesh& mesh = dimensionedInternalField().mesh(); ^~~~~~~~~~~~~~~~~~~~~~~~ IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:340:26: note: suggested alternative: ‘DimensionedScalarField_H’ const fvMesh& mesh = dimensionedInternalField().mesh(); ^~~~~~~~~~~~~~~~~~~~~~~~ DimensionedScalarField_H IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:316:12: warning: unused variable ‘auxiliarSolit’ [-Wunused-variable] scalar auxiliarSolit = 0; ^~~~~~~~~~~~~ IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:319:12: warning: unused variable ‘Csolitary’ [-Wunused-variable] scalar Csolitary = 0; ^~~~~~~~~ IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:320:12: warning: unused variable ‘ts’ [-Wunused-variable] scalar ts = 0; ^~ IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:321:12: warning: unused variable ‘Xa’ [-Wunused-variable] scalar Xa = 0; ^~ IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:361:18: warning: unused variable ‘g’ [-Wunused-variable] const scalar g = 9.81; ^ /opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.o' failed make: *** [Make/linux64GccDPInt32Opt/IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.o] Error 1 \n\nWave generation boundary conditions compilation failed |
|
![]() |
![]() |
![]() |
![]() |
#252 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 ![]() |
Hi Foamers,
I use ihFoam included in OpenFOAM v1806. My test case is a ship hull (70m), V=0m/s, H=5.5m T=5.5s. The calculation work well but when I analyse the results, the wave generation seem to stop a as you can see on the roll movement graph. It's confirmed by paraFoam display. I joins my wavesProperties file. Can you help me to understand this problem? Thanks |
|
![]() |
![]() |
![]() |
![]() |
#253 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Ramsay,
Quote:
IHFOAM Team.
__________________
http://ihfoam.ihcantabria.com/ |
||
![]() |
![]() |
![]() |
![]() |
#254 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi vince_44,
Quote:
Can you give us any more information about the domain, the numerical mesh, etc? IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
![]() |
![]() |
![]() |
![]() |
#255 |
Member
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15 ![]() |
Hi
Here you can find an image with the domain. The mesh have around 5,7 millions of cells, refined around the free surface. More I join dynamicMeshDic file, U and alpha files and fvSchemes file. Best regard |
|
![]() |
![]() |
![]() |
![]() |
#256 |
New Member
Join Date: Oct 2018
Posts: 17
Rep Power: 7 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#257 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Ramsay,
IHFOAM will not work with OpenFOAM-6 unless you adapt the code. But, you might find much easier to use OpenFOAM-v1806 in which IHFOAM will work straighforward. Best Regards, IHFOAM Team.
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#258 |
New Member
Join Date: Oct 2018
Posts: 17
Rep Power: 7 ![]() |
Thanks a lot. I started using it and it seems that you use the "boussinesq" name for the solitary wave model.
|
|
![]() |
![]() |
![]() |
![]() |
#259 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Ramsay,
You can find three theories and three tutorials, related to solitary waves: - waveExampleSolitary (Boussinesq) - waveExampleSolitaryGrimshaw (Grimshaw) - waveExampleSolitaryMcCowan (McCowan) Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#260 |
New Member
Join Date: Oct 2018
Posts: 17
Rep Power: 7 ![]() |
Hi,
I am a new IHFOAM user and I am trying to verify the solitary wave profile in OpenFOAM 1806 and also plot it in a file. I am trying to use the code provided by the openfoam.org in their tutorials which is like: functions { interfaceHeight1 { type interfaceHeight; libs ("libfieldFunctionObjects.so"); locations ((300 0 0) (450 0 0) (600 0 0)); alpha alpha.water; } } However, I cannot get any outputs when I implement this code in solitary wave example of OF 1806. Does anyone have any recommendation on how to get the free surface elevation of solitary waves in OpenFOAM 1806. P.S. There are no interfaceHeight.c and .h files in OpenFOAM 1806 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Divergence detected in AMG solver: k when udf loaded | google9002 | Fluent UDF and Scheme Programming | 3 | November 7, 2019 23:34 |
udf problem | jane | Fluent UDF and Scheme Programming | 37 | February 20, 2018 04:17 |
UDF velocity profile | willroca | Fluent UDF and Scheme Programming | 2 | January 10, 2016 03:13 |
Error messages | atg | enGrid | 7 | August 30, 2013 11:16 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 14:37 |