CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Fatal error with rho in rigidBodyMotion!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2018, 05:01
Default Fatal error with rho in rigidBodyMotion!
  #1
New Member
 
Join Date: Nov 2018
Location: Japan
Posts: 17
Rep Power: 8
monnda is on a distinguished road
Hello!

I'm trying to simulate a case using rigidBodyMotion but following error shows up before the case runnning even though rho is set in dynamicMeshDict. I'm wondering if someone has experienced this error before.

-------------------------------------------------------------------------------
[24] --> FOAM FATAL ERROR:
[24] Could not find rho:rho
[24]
[24] From function void Foam::functionObjects::forces::initialise()
[24] in file forces/forces.C at line [25]
--------------------------------------------------------------------------------

I also tried use forces function object like DTCHull tutorial but that doesn't work either.
Here is my dynamicMeshDict.

Code:
dynamicFvMesh      dynamicMotionSolverFvMesh;

motionSolverLibs ("librigidBodyMeshMotion.so");


solver             rigidBodyMotion;

rigidBodyMotionCoeffs
{
        report  on;

        solver
        {
                type    CrankNicolson;
        }

        accelerationRelaxation  0.9;

 bodies
        {
                movingwall
                {
                        type    rigidBody;
                        parent  root;

                        mass            0.05;
                        centreOfMass    (0 0 0);
                        inertia         (5e-10 0 0 2e-9 0  2e-9);            
                        rho            rhoInf;
                        rhoInf                  1200; 
                        transform     (1 0 0 0 1 0 0 0 1)(0 0 0);

                        joint
                        {
                                type    composite;
                                joints
                                (
                                        {
                                                type    Py;
                                        }
                                        {
                                                type    Ry;
                                        }
                                );
                        }

                        patches         (movingwall);
                        innerDistance   0.5;
                        outerDistance   1;
                }
        }
}
I use OpenFOAMv1612 here.
I would appreciate if someone gives me advise.

Thank you!
monnda is offline   Reply With Quote

Old   November 3, 2023, 10:39
Default
  #2
New Member
 
chris
Join Date: Feb 2011
Posts: 6
Rep Power: 15
yossarian88 is on a distinguished road
For anyone stumbling on this, the rho declarations are in the wrong spot, and belong one level up for example below the "report on;"
yossarian88 is offline   Reply With Quote

Reply


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
rSF: p divergence in combustor (wt negative value) zonda OpenFOAM Pre-Processing 4 April 10, 2018 07:59
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13
what does this verbose error mean? immortality OpenFOAM Running, Solving & CFD 1 February 6, 2013 17:47
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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