|
[Sponsors] |
Adapting interFoam's floatingObject tutorial for pimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2019, 20:39 |
Adapting interFoam's floatingObject tutorial for pimpleFoam
|
#1 |
Member
Join Date: Sep 2018
Posts: 53
Rep Power: 8 |
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? |
|
July 14, 2019, 13:57 |
|
#2 |
Member
Join Date: Sep 2018
Posts: 53
Rep Power: 8 |
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; |
|
Tags |
pimplefoam, rigid body dynamics, rigid body motion, rigidbodymotion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |