CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Wavemaker (https://www.cfd-online.com/Forums/openfoam-pre-processing/123074-wavemaker.html)

alejoopefoa September 4, 2013 01:07

Wavemaker
 
Hello to everyone,
I try to simulate a 2-D wave flume in openfoam, but i do not know to do a moving boundary or a dynamic mesh.

Can you help with some guide and suggestion about how can i make waves in a numerical wave flume.

thanks for your help and time.

Phicau September 4, 2013 03:16

Hi,

we have carried out several simulations with moving boundaries:

https://www.youtube.com/watch?v=qVhDw7Sk7kY

(This one generates waves on the left boundary and absorbs them on the right boundary, both by applying a movement to them).

We had to code our own BC to prescribe the movement we wanted, but other than that everything is very similar to the floatingObject tutorial case for interDyMFoam. You should start by looking and understanding it. Then you can modify it to suit your needs.

Best,

Pablo

alejoopefoa September 4, 2013 15:05

Quote:

Originally Posted by Phicau (Post 449733)
Hi,

we have carried out several simulations with moving boundaries:

https://www.youtube.com/watch?v=qVhDw7Sk7kY

(This one generates waves on the left boundary and absorbs them on the right boundary, both by applying a movement to them).

We had to code our own BC to prescribe the movement we wanted, but other than that everything is very similar to the floatingObject tutorial case for interDyMFoam. You should start by looking and understanding it. Then you can modify it to suit your needs.

Best,

Pablo

Thanks Pablo,

So i have to make my own c++ code for input the BC at my geometry?. This is for a dynamic mesh, but for a fixed mesh, e.i. input BC changing U and P_rgh at the time, it is easier?.

Thanks for your time an help.

Phicau September 5, 2013 02:40

For the BC wave generation you can do it with GroovyBC (just search in the forum) but you will encounter an increase in the water level for long simulations. The pro is that you don't have to code.

The other option involves writing a BC which includes active wave absorption, as we have done. Take a look here:

http://www.cfd-online.com/Forums/ope...-breaking.html

Best,

Pablo


All times are GMT -4. The time now is 04:45.