CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   sixDoF + interFoam (

afo3 November 4, 2010 14:31

sixDoF + interFoam
hello everybody,

I'm trying to simulate a floating object moving on free surface.
for free surface problems, I would use interFoam, and to move the object I need a sixDoF solver.
question number 1 : I looked into the "solvers" folder and I couldn't find a sixDoF solver, anyone knows where can I download it?
question number 2 : once I have the two solvers, how can I make them run together? maybe there's a solver that allows me to do the two things at once ?? (something like a sixDoFInterFoam solver..)

thank you in advance


afo3 November 5, 2010 08:11

I found this repository for 6DoFsolver: nFOAM-1.4.1-dev/src/ODE/sixDOF/

http://openfoam-extend.svn.sourcefor.../sixDOFSolver/ nFOAM-1.4.1-dev/tutorials/sixDOFSolver/

please, somebody can tell me in which folders I have to put the files , and how I have compile the solver to make it ready to run?

Ralph M November 5, 2010 11:48

Hello Michele,

I'm planning to work on this problem next week. Keep you updated on any progress.

What is your background and the goal of your simulations? (just interested :D)

afo3 November 5, 2010 11:59


Originally Posted by Ralph M (Post 282346)
Hello Michele,

I'm planning to work on this problem next week. Keep you updated on any progress.

What is your background and the goal of your simulations? (just interested :D)

hello Ralph,
I'm pretty new using openFoam, I'm a student (aeronautic engineering specilizing myself in aerodynamic and fluidynamic),and I'm doing my final thesis.

In order to do that, I'm "working" by now in a shipyard and I have access to experimental information of the company. The goal of my work is to simulate with openFoam the advance of one of their ships and compare the results.

by now I am a little steady with my work because I can't compile the 6DoF solver.
thank you for your interest!

Ralph M November 10, 2010 07:56

Hi Michele,

I've found a solver which is suitable for your problem; it's shipFoam (

It's working for OF 1.5 but I'm trying to make it work for OF1.7.1. Keep a view on this topic ( ) for updates.

How's your work going?



afo3 November 10, 2010 08:41

hello Raplh,
thank you very much for keeping me updated!!

about my work...not so good at the moment.
actually I'm trying interDyMFoam, but still without exit.
at first I tried SKA, (SeeKeepingAnalisys) that uses a .dat file (auto-compilated using your entries in a 6dof genrator) to move the mesh as input. What I've tried is to "move" the boundary of the ship in my control volume (I obtained it with snappyHexMesh) but what I succed to do is just move ALL control volume.

then I tried to get the movement as output, using dynamicMotionSolverFvMesh.
well, I studied the floatingObject tutorial to do that.
So I setted the ship boundary in 0/pointDispacement as sixDoFRigidBodyDisplacement , but running the case I had an error : invalid patchField type.

so, at the moment I'm trying to use just interFoam,with the ship steady and the relative velocity of the water field.

I will read carefully the link you posted, thank you very much!!

if you succed make the solver working tell me please!!

Ralph M November 10, 2010 12:09

Got it almost working; downloaded a better version from http://openfoam-extend.svn.sourcefor...ydrodynamicIG/

afo3 November 10, 2010 12:26

GREAT!! I hope you will have it working soon! please keep me updated!!

flowris March 22, 2011 11:40


Did you already have good results? I did the floatingObject tutorial in 1.7.1 and now I would like to prescribe the motion of the object. How can I do this? If I use solidBodyMotionFvMesh the whole domain moves!

vhjelvik January 12, 2012 06:01


Is there any version of shipFoam working on OF2.0.1 or 2.1.0?


Ralph M January 12, 2012 06:16

Hello Vegard,

ShipFoam isn't working for OF2.0+ (yet) but it should be easy to install another version of OF on your machine. I found this link very useful (especially the use of aliasses):



vhjelvik January 12, 2012 06:18

Ok, thanks a lot.

I do allready have OF 1.7 installed, and will give it a try.


All times are GMT -4. The time now is 10:02.