CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Wave generation inlet using interFoam (

Katzenpaul February 6, 2013 09:16

Wave generation inlet using interFoam
Hi folks
I want to simulate a sinusoidal flow of water in a 3D-volume. And the waves should be generated by the inlet, so the value of alpha1 at each point of the inlet should either 1 or 0, depending on the time.
Up to now I only know how to change the value of alpha1 over time on the whole inlet, using timeVarying - boundary condition. But with this BC I can change the value of alpha1 only over its whole range (from 0 to 1, but continously) and not only switch between the two values 0 and 1.

I read something, that this should be possible using groovyBC, whereof I found a test case here
, but it seems to be offline right now.
Would be nice to see how groovyBC works as I didn't understand it yet. When anyone downloaded the case, I'd be glad to get it.

Can anyone give me a hint how to do that? Ask if you need some further information. And sorry for my english..

michielm February 6, 2013 10:11

GroovyBC has become part of swak4Foam since, I think, OF 1.7.

You can download swak4Foam here:

Documentation is also available on the same wiki page.

Good luck!

ngj February 6, 2013 10:28

Hi Ralfons,

Welcome to the Forum.

If you are particular interested in free surface waves, then I can recommend this tool:

It is currently also off-line, so a static snapshot of the development can be downloaded here:

Kind regards,


Disclaimer: I am making a bit of PR for my own tool ;)

All times are GMT -4. The time now is 00:41.