|
[Sponsors] |
February 16, 2015, 10:15 |
wave maker
|
#1 |
New Member
wave maker
Join Date: Feb 2015
Posts: 14
Rep Power: 11 |
hello...i want to use flap wavemaker method but i don't know how i can define the volume fraction between the two fluids: air and water.
i used like boundary condition for the wavemaker, for the bottom and for the endwall part. if I was not clear ask me more explanations. thanks a lot for your help and excuse me for my not perfect english |
|
February 16, 2015, 17:30 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Have you looked at the tutorials? It explains how to do basic things like this. The "Free surface flow over a bump" tutorial would be relevant here.
|
|
February 18, 2015, 13:39 |
|
#3 |
New Member
wave maker
Join Date: Feb 2015
Posts: 14
Rep Power: 11 |
i try to do solve my problem following the tutorial of "modellig a buoy using cfx rigid body solver" but i have some problem with the volume fraction at the initial time. this is the situation at the beginning of the simulation:
https://www.dropbox.com/s/8ugncusvh5...ction.png?dl=0 why at the inclined surface do i have this situation and no a straight line like before????? Please help me |
|
February 18, 2015, 18:39 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
The jagged line is because you have defined the initial volume fraction as 1 when it is below some y value and 0 when it is above. This means any variation in your mesh will create jagged lines.
The best solution for this is to use a blurring function to blur the interface over a few elements. CFX blurs the free surface over about 4 elements, so that is a good blur to target. Then small variations int he underlying mesh will not create jagged lines. And you simulation will run better as well, as CFX will not need to resolve the ripples which these jagged initial conditions create. |
|
February 19, 2015, 04:11 |
|
#5 |
New Member
wave maker
Join Date: Feb 2015
Posts: 14
Rep Power: 11 |
sorry but how can i compute a blurring function????
|
|
February 19, 2015, 06:58 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
tanh is a good base function for this, with the input variable being a function of the y height.
|
|
February 25, 2015, 07:03 |
|
#7 |
New Member
wave maker
Join Date: Feb 2015
Posts: 14
Rep Power: 11 |
i had this situation with the initial volume fraction:
https://www.dropbox.com/s/ufxd2h2ks8...ction.png?dl=0 you told me to use a blurring function like tanh. i'm sorry but i'm not able to solve my problem. could you give me more information and advices to solve my problem and how to express blurring function please??? thanks a lot P.S. sorry for my not percfect english |
|
February 25, 2015, 07:13 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
If you want to put the free surface at z=10[m], then a function like volume fraction = tanh((z-10[m])/1[m]) will blur the free surface over about 2 metres. Note the divide by 1[m] is just to make the argument dimensionless for the tanh function.
|
|
February 25, 2015, 11:27 |
|
#9 |
New Member
wave maker
Join Date: Feb 2015
Posts: 14
Rep Power: 11 |
sorry but if i set in the water volume fraction tanh((y-1,5[m])/1[m]), where 1,5m is my free surface, the program doesn't give solution because there is a division by zero.
|
|
February 25, 2015, 18:13 |
|
#10 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
tanh(x) is defined for all x so it will not be creating the division by zero error. The error is coming from something else.
|
|
March 18, 2015, 11:49 |
|
#11 |
New Member
wave maker
Join Date: Feb 2015
Posts: 14
Rep Power: 11 |
hello, i have a problem with the extrapolation of the data from CFD post. I am simulating a wave tank and i want to plot the free surface at some fixed times but i am not able to do that. can you help me?
thanks a lot |
|
July 10, 2020, 04:12 |
WaveMaker_Piston
|
#12 |
New Member
Join Date: Jun 2020
Posts: 3
Rep Power: 6 |
Hello Foamers!
I'm trying to understand the "WavePistonMaker" tutorial (OF_19.12). where can I find documentation about it? |
|
July 10, 2020, 05:35 |
|
#13 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
We are not Foamers. This is the CFX forum, so try the Open Foam forum.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Turbulence dissipates too much energy for interFoam to simulate wave breaking | jasonchen | OpenFOAM Running, Solving & CFD | 5 | May 18, 2019 10:21 |
WAVE TANK star-ccm+ . wave height dampens. WHY? | muhsin | STAR-CCM+ | 3 | October 9, 2012 14:24 |
Scaling up a wave energy converter - free surface flow | mark_l | CFX | 3 | February 17, 2010 17:57 |
motion of piston wave maker | chandra sekhar b | Main CFD Forum | 0 | October 31, 2008 08:06 |
FLOW-3D, Wave Maker | Abrisham | Main CFD Forum | 0 | May 15, 2006 19:50 |