CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

reportToFile not working - dynamicMeshDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2017, 14:49
Default reportToFile not working - dynamicMeshDict
  #1
New Member
 
Behzad
Join Date: Nov 2010
Posts: 4
Rep Power: 15
Behzad60 is on a distinguished road
Hello all,

I am simulating a solid-fluid interaction case and I wanted to write the data associated with solid body motion like angular velocity and center of mass. But, the option "reportToFile" is not writing any output (following explanations in https://openfoamwiki.net/index.php/P...onSolverFvMesh).

I am using OpenFoam 3.0.1 and sixDoFRigidBodyMotion in dynamicMeshDict as follows:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      motionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs ( "libsixDoFRigidBodyMotion.so" );

solver          sixDoFRigidBodyMotion;

diffusivity     quadratic inverseDistance 5 ( slat );

sixDoFRigidBodyMotionCoeffs
{
    patches         ( slat );

    innerDistance   0.03;

    outerDistance   0.1;

//=== slat info

    centreOfMass     (0.04 0 0);

    rhoName         rhoInf;
    rhoInf          7700; //2800;

    mass            0.0462; //0.0168;

    momentOfInertia (1.9992 1.8342 0.1658); //( 0.727 0.667 0.0603 );

    orientation
    (
       1 0 0
       0 1 0
       0 0 1
    );

//===

    g               (0 0 -9.81);

    velocity        (0 0 0);

    accelerationRelaxation 0.9;

    accelerationDamping 0.7;

    report          on;
    reportToFile    on;

    solver
    {
        type    CrankNicolson;
        aoc     0.5;    // Acceleration off-centering coefficient
        voc     0.5;    // Velocity off-centering coefficient
    }

    constraints
    {
         fixedPoint
         {
             sixDoFRigidBodyMotionConstraint point;
             centreOfRotation (0 0 0); 
         }

        rotationAxis
        {
            sixDoFRigidBodyMotionConstraint axis;
            axis (0 1 0);
        }
    }

//    restraints
//    {
//        Weight
//        {
//            sixDoFRigidBodyMotionRestraint constantForce;
//            refAttachmentPt ( 0 0 -0.04 );
//            constantForce   ( 0 0 -0.165 );
//        }
//    }

}

// ************************************************************************* //
I appreciate any idea and help regarding this issue.

Thanks - Behzad
Behzad60 is offline   Reply With Quote

Old   July 28, 2017, 05:28
Default
  #2
New Member
 
Join Date: Jun 2017
Posts: 4
Rep Power: 8
maram is on a distinguished road
Hello Behazad,
I have the same problem with the option "reportToFile" .

Did you solve it?

Thanks
maram is offline   Reply With Quote

Old   August 7, 2018, 08:35
Default
  #3
New Member
 
i-chen,tsai
Join Date: Mar 2018
Posts: 4
Rep Power: 8
jessica_ict is on a distinguished road
check the log file,
then you can see angular velocity and center of mass right away.
jessica_ict is offline   Reply With Quote

Old   September 14, 2018, 07:10
Default
  #4
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by jessica_ict View Post
check the log file,
then you can see angular velocity and center of mass right away.
This doesn't work for sixDoF library. It only works on rigidBody library.
I have the same problem.
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is online now   Reply With Quote

Old   September 21, 2019, 12:42
Default
  #5
New Member
 
Join Date: Jan 2018
Posts: 18
Rep Power: 8
Zhi Cheng is on a distinguished road
Hi, maram, have you solved this problem?
Many thanks!
ZHI CHENG

Quote:
Originally Posted by maram View Post
Hello Behazad,
I have the same problem with the option "reportToFile" .

Did you solve it?

Thanks
Zhi Cheng is offline   Reply With Quote

Old   September 24, 2019, 03:45
Default
  #6
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
Can you possibly try this in a newer version? For me, the reportToFile works in OpenFOAM 6. I remember that I had the same problem and it might have been a version issue but I can't recall exactly.
Bazinga is offline   Reply With Quote

Old   September 25, 2019, 14:43
Default
  #7
New Member
 
Bruno de Almeida Regina
Join Date: Jul 2019
Location: Brazil
Posts: 6
Rep Power: 6
Bruno_Kwothe is on a distinguished road
Hey there!

I am trying with version 6 and have the same problem. My dynamicMeshDict uses dynamicMotionSolverFvMesh as dynamicFvMesh and the used motionSolver is rigidBodyMotion.

Hope someone can shed a light in this matter!

Bruno
Bruno_Kwothe is offline   Reply With Quote

Old   September 26, 2019, 03:24
Default
  #8
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
Quote:
Originally Posted by Bruno_Kwothe View Post
Hey there!

I am trying with version 6 and have the same problem. My dynamicMeshDict uses dynamicMotionSolverFvMesh as dynamicFvMesh and the used motionSolver is rigidBodyMotion.

Hope someone can shed a light in this matter!

Bruno
Can you upload the relevant files and the output of the log?
Bazinga is offline   Reply With Quote

Reply

Tags
dynamicmeshdict, openfoam 3.0.1, reporttofile


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
I can't understand the moving function of "libfvMotionSolver.so" in dynamicMeshDict Jung hoo OpenFOAM Programming & Development 0 July 13, 2016 03:36
Is the subsetMotionSolver working in parallel? Arnoldinho OpenFOAM Running, Solving & CFD 7 April 27, 2016 04:38
two (rival) dynamicMeshDict & objectRegistry (??) codder OpenFOAM Running, Solving & CFD 1 January 27, 2014 22:16
[Other] Question about DynamicMeshDict jordi.muela OpenFOAM Meshing & Mesh Conversion 1 April 24, 2012 11:46
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 02:01


All times are GMT -4. The time now is 14:06.