CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2019, 19:39
Default Adapting interFoam's floatingObject tutorial for pimpleFoam
  #1
New Member
 
Join Date: Sep 2018
Posts: 12
Rep Power: 2
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?
tecmul is offline   Reply With Quote

Old   July 14, 2019, 12:57
Default
  #2
New Member
 
Join Date: Sep 2018
Posts: 12
Rep Power: 2
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;
tecmul is offline   Reply With Quote

Reply

Tags
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 On
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 3 July 3, 2014 12:50
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
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 14 March 8, 2011 08:19
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 13:19.