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 Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2019, 20:39
Default Adapting interFoam's floatingObject tutorial for pimpleFoam
  #1
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 8
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, 13:57
Default
  #2
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 8
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

Reply

Tags
pimplefoam, rigid body dynamics, rigid body motion, rigidbodymotion


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 05:13
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 07:35
OpenFoam.1.7.x floatingObject tutorial case & MULES:alpha1 greater than 1 anmartin OpenFOAM Bugs 18 September 8, 2013 02:30
Problem on Fluent Tutorial: Horizontal Film Boilig Feng FLUENT 2 April 13, 2013 06:34
problem with new OF170 using floatingObject tutorial example anmartin OpenFOAM Running, Solving & CFD 1 July 1, 2010 02:09


All times are GMT -4. The time now is 15:53.