CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   solver for simulating floating body (

mary mor October 13, 2013 16:55

solver for simulating floating body
Hi FOAMers,

I'm new at OpenFoam and I need help to understand which solver I should start with.
My goal is to simulate a floating body under waves. I need a 6DOF solver and a VOF solver for free-surface beside a solver or boundary condition to generate waves. I faced with different solvers like shipFoam, rasInterFoam, NavyFoam for such a case.

I don't know which one is better to use and what are the differences. Which one get more convergent results? Do they need another 6DoF solver to calculate the displacement of the floating body?

I appreciate any help...

Artur October 18, 2013 05:25


Perhaps before you go off to check out modified solvers you'd want to have a look at $FOAM_TUTORIALS/multiphase/interDyMFoam/RAS/floatingObjec

There are also the sloshing tank tutorials in the same directory which have versions with various numbers of DoF.

Good luck,


mary mor October 19, 2013 11:41

Thanks Artur

I've checked these tutorials. The floating object tutorial seems to help. Although I don't know how the displacements of the floating object is considered. Does it contain the 6DoF solver I'm searching for?

Besides I need to generate wave in the tank. As I searched, wave2Foam helps me to do this.
The slashing tank seems to impose a sinusoidal motion to the tank and I'm not sure if it's the thing I need...

Thanks in advance

Artur October 20, 2013 10:49


As for wave generation I think the package you mentioned is the best choice to start with, I know many people who use it. I suppose that groovyBc could also be used if the former didn't deliver all the stuff you are interested in.

As for 6DoF solvers in OF I am not an expert by no means, I just had a quick look at them some time ago. Hopefully someone more experienced will share some more experience with you if you get stuck. In the meantime, I think for your case it's worth looking at the following:

Good luck,


mary mor October 21, 2013 12:50

Thanks Artur
I've taken a quick look at this paper before. I will read it more carefully this time.
I hope someone help in case i got stuck.

atieh December 23, 2015 15:31

Hi Foamers,

I run the tutorial at $FOAM_TUTORIALS/multiphase/interDyMFoam/RAS/floatingObjec.
To run: 1. blockMesh
2. setFields
3. topoSet
4. interDyMFOAM

It seems floating object doesn't move. I am using OF2.1.1. Could anybody let me know where went wrong? or How can see the floating object in the Paraview?


All times are GMT -4. The time now is 20:19.