|
[Sponsors] |
May 11, 2020, 14:07 |
wave and current
|
#321 |
Member
Ali
Join Date: Oct 2013
Location: St John's Canada
Posts: 31
Rep Power: 13 |
Hello,
If anyone interested in wave and current simulation at the same time in OpenFAOM-1912, you can use the attached files. I have changed the source code directly. That mean you need to replace the original files with attached files in waveModel directory. After recompiling the code, you just need to add the following entry in your waveProperties file. uCurrent (2.196 0.0 0.0); // values are positive I have already tested the code for two cases. It works fine. I hope it will help someone. Ali |
|
May 11, 2020, 18:54 |
|
#322 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Saeed
Quote:
Cheap copies of IHFOAM with well-known numerical issues and wrong implementations have their own threads. Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
May 11, 2020, 18:59 |
|
#323 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Ali,
Quote:
Regards, IHFOAM Team.
__________________
http://ihfoam.ihcantabria.com/ |
||
May 26, 2020, 15:56 |
Long crested wave
|
#324 |
New Member
milad
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hi
I am using OpenFoam v1812 and I was wondering how I can modify waveDict that I get a Long Crested wave (irregular waves in one direction)? What is the maximum number of wave components for multidirectional irregular waves? Thank you and I look forward to hearing from you. Best regards Majid |
|
May 29, 2020, 13:35 |
|
#325 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Majid,
Quote:
There is not a predefined maximum number of wave components. Please, take a look to the tutorial: ~/OpenFOAM/OpenFOAM-v1912/tutorials/multiphase/interFoam/laminar/waves/irregularMultiDirection/ Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
June 3, 2020, 10:53 |
Wave simulations irregular waves
|
#326 |
New Member
Jente Vercammen
Join Date: Mar 2020
Posts: 9
Rep Power: 6 |
Hello IHFOAM,
I am trying to create irregular waves and calculate the wallshear stress at the bottom at a bump. This is happening in a wave flume of 25 m and the berm located at 17 m . Can you help me to set up the correct boundary conditions? with OpenFOAM-v1812 The waves are made with a series of sinus waves which repsresent a wave train wit H_s 0.19 m and T_p = 1.8s I have the following: for alpha water: Code:
dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type waveAlpha; value uniform 0; } outlet { type zeroGradient; } ground { type zeroGradient; } sides { type empty; } top { type inletOutlet; inletValue uniform 0; value uniform 0; } } Code:
dimensions [0 2 -2 0 0 0 0]; internalField uniform 0.0030375; // or should this be better like 0.000001 boundaryField { inlet { type zeroGradient; // or a fixed value??? } outlet { type zeroGradient; } ground { type kqRWallFunction; value $internalField; } top { type inletOutlet; inletValue $internalField; value $internalField; } sides { type empty; } } Code:
dimensions [0 0 -1 0 0 0 0]; internalField uniform 0.1470; boundaryField { inlet { type fixedValue; // or should this be also a zero gradient value $internalField; } outlet { type zeroGradient; } top { type inletOutlet; inletValue $internalField; value $internalField; } ground { type omegaWallFunction; value $internalField; } sides { type empty; } } Code:
dimensions [0 2 -1 0 0 0 0]; internalField uniform 0; //uniform 4.822e-3; boundaryField { inlet { type calculated; value $internalField; } outlet { type calculated; value $internalField; } ground { type nutkRoughWallFunction; Ks uniform 0.0083; Cs uniform 0.5; value $internalField; } top { type calculated; value $internalField; } sides { type empty; } } Code:
dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type fixedFluxPressure; value $internalField; } outlet { type fixedFluxPressure; value $internalField; } ground { type fixedFluxPressure; value $internalField; } sides { type empty; } top { type totalPressure; p0 $internalField; } } Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type waveVelocity; value $internalField; } outlet { type waveVelocity; //noSlip value $internalField; } sides { type empty; } ground { type fixedValue; value $internalField; } top { type pressureInletOutletVelocity; value uniform (0 0 0); } } Thanks in advance. Jente |
|
June 3, 2020, 11:39 |
|
#327 | ||
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Jente,
Quote:
We recommend you to use in the inlet the zeroGradient boundary conditions. Quote:
https://github.com/GabiBarajas/Gener...kOmegaVALUES.m It is based on: https://www.cfd-online.com/Wiki/Turb...ary_conditions Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
|||
June 3, 2020, 11:51 |
wave simulation
|
#328 | |
New Member
Jente Vercammen
Join Date: Mar 2020
Posts: 9
Rep Power: 6 |
Quote:
For the values of k and omega, should I use the value of the near-bad wave orbital velocity? For the turbulence length is it correct to use 0.4 * height of the water = 0.4*0.75 ? Just a small question, is this value only a initial guess and will it change during the simulation? I will already try to run this, as I am using wall functions and this means y+ should be higher than 30 but since my mesh is very small and the bump is only 3 cm high. My value of y+ descend to 12 at the start of the berm. Should this be a problem because I read somewhere that the k omega SST could also work with lower than 30 and still give good results. Thanks in advance, Kind regards, Jente |
||
June 19, 2020, 13:09 |
OpenFoam generation of waves
|
#329 |
New Member
Jente Vercammen
Join Date: Mar 2020
Posts: 9
Rep Power: 6 |
Hi IHFoam team,
I have done some simulations with previous shown set-ups. I have only the problem that the waves are decreasing in wave heights to much. Even with laminar turbulence model the wave height is drastically reduced. Is there some way to adjust the interaction with the air and the water to have less energy dissipation? Further I have some small questions:
Thanks in advance! Kind regards Jente |
|
July 1, 2020, 10:16 |
|
#330 |
New Member
Masoumeh
Join Date: Oct 2019
Posts: 21
Rep Power: 7 |
Dear IHFoam team:
In my thesis I need combination of wave and current + multiphaseInterFoam. But I cant find any tutorial of this. Do we have any solver of wave+current? Would you please help me? |
|
July 15, 2020, 04:16 |
|
#331 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi ms.hashempour,
Quote:
Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
July 15, 2020, 04:30 |
|
#332 | ||||
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Jekkem
Quote:
Quote:
https://ihfoam.ihcantabria.com/references/ Quote:
Quote:
Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
|||||
August 31, 2020, 10:56 |
|
#333 | |
New Member
milad
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Quote:
Hi, Thank you for your help. I did as you said, but still I couldn't get the right surface elevation from IHFOAM, you can find a plot for comparison of CFD simulation with IHFoam and Target surface Elevation. I will appreciate that you take a look at the graph and help me with the waveDict configuration. Thank you and I look forward to hearing from you Kind regards Majid |
||
September 2, 2020, 04:04 |
|
#334 |
New Member
Isnard Baptiste
Join Date: Jul 2020
Location: France
Posts: 11
Rep Power: 6 |
Hello IHFoam Team,
I woul like to know if it's possible to get the Random waves interaction with three moored buoys (3D) tutorial we cabs see on your website and how to download it? Thanks for your answer. Have a nice day. |
|
September 14, 2020, 06:21 |
|
#335 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Baptiste,
Quote:
Please, contact us here if you want to discuss a potential collaboration: ihfoam@ihcantabria.com Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
September 29, 2020, 07:49 |
|
#336 |
Member
philip lu
Join Date: Aug 2019
Posts: 87
Rep Power: 7 |
Hello IHFoam Team,
in the OF-wave-tutorials (e.g. v2006) of "icoFoam" under "multiphase", one result-item is alphaPhi0.water my question is: what it refers to exactly? thank you in advance PS: this question is of OF-waves, but I assume OF-waves was originally from IH, right, or? |
|
October 1, 2020, 04:51 |
|
#337 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Philip,
Quote:
You can find all our tutorials in: ~/OpenFOAM/OpenFOAM-v2006/tutorials/multiphase/interFoam/laminar/waves/ However, those test cases are run with the solver namedd interFoam which does not use the variable alphaPhi0.water at all. Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
October 1, 2020, 07:49 |
|
#338 |
Member
philip lu
Join Date: Aug 2019
Posts: 87
Rep Power: 7 |
Hello IHFoam Team,
first, many thanks for the reply. yes, you'r right, interFoam and exactly I ran a wave-case unter this solver, i.e. the folder ~/OpenFOAM/OpenFOAM-v2006/tutorials/multiphase/interFoam/laminar/waves/ and got the output of 'alphaPhi0.water' as one of the results, you can try it best |
|
October 1, 2020, 10:36 |
|
#339 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 |
Hi Philip,
Quote:
Sorry! My bad! (I checked with our own simplified version that I normally run to minimize time and space). alphaPhi0.water is needed by MULES for a correct restart (flux from previous time-step). Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
||
October 2, 2020, 07:23 |
|
#340 |
Member
philip lu
Join Date: Aug 2019
Posts: 87
Rep Power: 7 |
Hello IHFoam Team,
thanks indeed for the reply sure, I've now the answer, so by closing my "case", it's great, if you could brief bit the difference between the version of "IH" and the "IH" included in OF. thank you in advance and if you're too busy to come to this, sorry in advance |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Divergence detected in AMG solver: k when udf loaded | google9002 | Fluent UDF and Scheme Programming | 3 | November 8, 2019 00:34 |
udf problem | jane | Fluent UDF and Scheme Programming | 37 | February 20, 2018 05:17 |
UDF velocity profile | willroca | Fluent UDF and Scheme Programming | 2 | January 10, 2016 04:13 |
Error messages | atg | enGrid | 7 | August 30, 2013 12:16 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |