CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Adapting interFoam's floatingObject tutorial for pimpleFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By tecmul
  • 2 Post By tecmul

LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2019, 19:39
Default Adapting interFoam's floatingObject tutorial for pimpleFoam
Join Date: Sep 2018
Posts: 53
Rep Power: 7
tecmul is on a distinguished road
Hi all,

I'm running OpenFOAM 6.0 and have run into a problem using the rigidBodyMotion motion solver with pimpleFoam. The motion solver apparently uses the forces function object to calculate the forces on bodies. This works fine with the tutorial's interFoam solver. Running with pimpleFoam however results in the following error:

Could not find rho

From function void Foam::functionObjects::forces::initialise()
in file forces/forces.C at line 208.

This is predictable as pimpleFoam works with the dynamic pressure, so the density is required in order to calculate forces. Modifying the solver to read rho as a constant in the transport properties dictionary gives the same error. I looked at interFoam and saw that it defines rho as a volume scalar field. Doing the same and defining rho as a constant volume scalar field resolved the error.

But a new one came up:

Dynamic pressure is expected but kinematic is provided.

I'm stuck here. The error itself isn't confusing, but the problem is that I can't find the piece of code in the rigid body dynamics library that calls the forces function object. Searching with grep doesn't yield anything. I assume I'll have to modify the manner in which the function object is called?

Can anyone give some hints on how to proceed?
minh khang likes this.
tecmul is offline   Reply With Quote

Old   July 14, 2019, 12:57
Join Date: Sep 2018
Posts: 53
Rep Power: 7
tecmul is on a distinguished road
Turns out all I needed to do was enter the following two lines of code in the rigidBodyMotionCoeffs section of dynamicMeshDict:

rho rhoInf;
rhoInf 1000;
minh khang and isulovsky like this.
tecmul is offline   Reply With Quote


pimplefoam, rigid body dynamics, rigid body motion, rigidbodymotion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stability Issue with interDyMFoam / floatingObject tutorial ccmccomb OpenFOAM Running, Solving & CFD 4 April 27, 2023 04:13
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 06:35
OpenFoam.1.7.x floatingObject tutorial case & MULES:alpha1 greater than 1 anmartin OpenFOAM Bugs 18 September 8, 2013 01:30
Problem on Fluent Tutorial: Horizontal Film Boilig Feng FLUENT 2 April 13, 2013 05:34
problem with new OF170 using floatingObject tutorial example anmartin OpenFOAM Running, Solving & CFD 1 July 1, 2010 01:09

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