|
[Sponsors] |
June 6, 2018, 20:25 |
Wave tutorial
|
#1 |
New Member
Jeferson Souza
Join Date: Jan 2012
Location: Brazil
Posts: 19
Rep Power: 14 |
Dear all,
I'm trying to understand how to set wave parameters in the new openFoam 5.0 wave tutorial. Basically, I do not understand what is the speed parameter. Is it the wave velocity? Description talk about "mean flow speed", but I don't know what it means? For example for a wave with the following parameters wave length = 65.4 m period = 7.5 s height = 1 m how can I set up the waveVelocity boundary condition? left { type waveVelocity; origin (0 0 0); direction (1 0 0); speed ????? (what should I put here?); waves ( Airy { length 65.4; amplitude 0.5; phase 0; angle 0; } ); scale constant 1; crossScale constant 1; } Thanks, |
|
June 7, 2018, 15:37 |
|
#2 |
Senior Member
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 144
Rep Power: 20 |
Speed is an additional current, I.e. if you solve a ship sailing in waves with forward speed. In case you only want to have a wave without current, set speed to zero
|
|
June 12, 2018, 11:30 |
|
#3 |
New Member
Jeferson Souza
Join Date: Jan 2012
Location: Brazil
Posts: 19
Rep Power: 14 |
Thanks a lot.
|
|
September 25, 2018, 23:54 |
|
#4 |
New Member
Ian
Join Date: Aug 2018
Posts: 15
Rep Power: 8 |
Hi, Jeferson
I'm trying to understand the parameters of waveVelocity recently, but a few parameters confused me a lot 1) scale table ((1200 1) (1800 0)); 2) scale and crossScale(I have never seen before) 3) note that speed does not mean wave velocity how to set it any advice would be great appreciated thanks in advance |
|
October 7, 2019, 05:26 |
|
#5 | |
Member
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8 |
Quote:
|
||
April 6, 2020, 19:14 |
|
#6 |
New Member
Thepsy20
Join Date: Apr 2020
Posts: 5
Rep Power: 6 |
did you find an answer to define the period ?
|
|
April 6, 2020, 21:46 |
|
#7 |
New Member
Jeferson Souza
Join Date: Jan 2012
Location: Brazil
Posts: 19
Rep Power: 14 |
Actually, period can be obtained from the Dispersion Relationship. For a linear wave we have
sig^2 = g k tanh(k h) sig = 2 Pi/T k = 2 Pi/L g -> gravity L -> wave length T -> wave period |
|
May 24, 2020, 07:27 |
|
#8 | |
New Member
chenlinghao
Join Date: Apr 2020
Posts: 1
Rep Power: 0 |
Quote:
I also encountered this problem. Do you already know something about these parameters? thanks for your sharing in advance。 |
||
October 23, 2020, 11:34 |
|
#9 | |
New Member
Join Date: Jul 2011
Posts: 15
Rep Power: 15 |
Quote:
scale table means between 1200m and 1800m (in x direction) the wave should be damped. In other owrds, up to 1200, the wave has scale factor 1 and at 1800, the scale factor is 0 (no wave). |
||
February 28, 2022, 12:36 |
|
#10 | |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
Quote:
Currently, I am simulating the KCS model in calm water and waves using OpenFOAM v7. Many thanks Tony |
||
February 28, 2022, 13:21 |
|
#11 |
New Member
Jeferson Souza
Join Date: Jan 2012
Location: Brazil
Posts: 19
Rep Power: 14 |
Hi, yes.
You can do it easily. I prefer to use the olaFlow (https://olaflow.github.io/) instead of interFoam. olaFlow is kind of optimized to this kind of problems. Its compilation is also straight forward. |
|
February 28, 2022, 14:26 |
|
#12 |
New Member
Join Date: Jul 2011
Posts: 15
Rep Power: 15 |
You can use funky SetField to define the boundary at the inlet.
|
|
March 1, 2022, 07:53 |
|
#13 | |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
Quote:
Many thanks for your reply. But I think I have to use interFoam because I have modified the solver based on interFoam. I have successfully run the KCS in calm water and Stokes2 wave. Now I am hoping to simulate the KCS in waves and use the final state of calm water as the initial state of wave condition. For example, I ran the calm water case for 50s and take the 50s state as the initial state of stokes2 wave condition, but it seems didn't add wave on from 50s. I attached some pictures of wave elevation contours for wave condition. Since in calm water just use setFields while in wave condition have to use setWave, I think I have changed all controlDict file and waveProperities file. But it seems wave is not added on from 50s. And I am confused about the scale table ((4 1) (12 0)) located in waveProperties, I am hoping to let wave just pass through the hull from the right handside of my domain, how should I do? Please let me know if you need more information from me. Many thanks Tony |
||
March 1, 2022, 07:55 |
|
#14 |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
Hi, many thanks for your reply. I use setFields for my hull in calm water and then change to setWaves in wave conditons. Do you have any tutorial or case to use think funky setField to define the boundary at the inlet?
Many thanks Tony |
|
March 1, 2022, 10:38 |
|
#15 |
New Member
Jeferson Souza
Join Date: Jan 2012
Location: Brazil
Posts: 19
Rep Power: 14 |
I've never been able to validate the solution (comparing to the analytical wave solution) of the wave tutorial. That's why I recommended the olaFlow.
About the restart. Did you change the boundary conditions at the 50s folder? |
|
March 1, 2022, 10:51 |
|
#16 | |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
Quote:
Yes, the 50s folder contains the information of alpha_water, U, p_rgh and etc of the final state of calm water. Also, I copied these variables of initial state of wave condition(alpha_water.orig, U.orig, p_rgj.orig and etc) into 50s folder. Then I do renumberMesh, setWaves, decomposePar and then interFoam. But it doesn't add wave on. |
||
March 1, 2022, 11:25 |
|
#17 |
New Member
Jeferson Souza
Join Date: Jan 2012
Location: Brazil
Posts: 19
Rep Power: 14 |
It's a long time that I did not run this kind of problem, but i think you should not run setWaves again.
Another thing, did you decomposed the right time? -> "decomposePar -latestTime" |
|
March 1, 2022, 13:03 |
|
#18 |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
||
April 22, 2022, 10:20 |
|
#19 | |
Member
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 7 |
Quote:
nowadays I am simulating a ship in wave with forward speed. I am using openfoamv7 and the calculation conditions are as follows: ship speed=1.588m/s, wave speed=2.602m/s, I modified the waveProperties file which is located at constant file as follows: Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object waveProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // origin (0 0 0); direction (-1 0 0); speed 1.588; waves ( Stokes2 { length 4.338; amplitude 0.038; phase 0; angle 0; } ); UxMean -2.602; UMean ($UxMean 0 0); scale table ((10 1) (20 0)); // ************************************************************************* // Many thanks for your help and best regards, Tony |
||
April 22, 2022, 13:35 |
|
#20 |
Senior Member
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 144
Rep Power: 20 |
Hi Tony, what do you mean with wave velocity?
|
|
Tags |
openfoam 5.0, speed, wave boundary conditions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
need tutorial files(Simulation of Wave Generation in a Tank) | gholamghar | FLUENT | 45 | May 6, 2018 11:57 |
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread | wyldckat | OpenFOAM Installation | 2 | July 11, 2012 17:01 |
How to generate waves of particular wave height...please help | nims | FLUENT | 0 | September 21, 2010 03:48 |
Scaling up a wave energy converter - free surface flow | mark_l | CFX | 3 | February 17, 2010 17:57 |
need tutorial files(Simulation of Wave Generation in a Tank) | gholamghar | FLUENT | 0 | March 28, 2009 04:08 |