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

Z-dimension for 2D 6DoF simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2017, 05:06
Default Z-dimension for 2D 6DoF simulation
  #1
New Member
 
Laurent Fieschi
Join Date: Aug 2017
Posts: 6
Rep Power: 9
Fieschi is on a distinguished road
Hello,
I am trying to model a plate with a -5 deg origin angle on z axis.
It is an overset 2D simulation using the sixDoFRigidBodyMotion solver in a domain with a fixed velocity in x-direction.
I use OpenFOAM V1706.

Domaine_6ddl.jpg

The blue block is my background (fixed block) and my object is inside a moving cylinder which is my overset (red).
The center of mass and center of rotation are at the same point : the plate's lower-left corner.

I would like to leave my object in a free motion so this is my dynamicMeshDict :

Code:
 FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
motionSolverLibs ("libsixDoFRigidBodyMotion.so");

dynamicFvMesh       dynamicOversetFvMesh;

dynamicOversetFvMeshCoeffs
{
}

solver    sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs 
{
    patches         (object);
    innerDistance   100.0; 
    outerDistance   101.0; 

    centreOfMass    (0.0 0.0 0.125);

    // Cuboid dimensions
    Lx              1.0;
    Ly              0.1;
   Lz              ?;

    // Density of the solid
    rhoSolid        1000;

    // Cuboid mass
    mass           #calc "$rhoSolid*$Lx*$Ly*$Lz";
     
    momentOfInertia #codeStream
        {
        codeInclude
        #{
            #include "diagTensor.H"
        #};

        code
        #{
            scalar sqrLx = sqr($Lx);
            scalar sqrLy = sqr($Ly);
            scalar sqrLz = sqr($Lz);
            os  <<
                $mass
               *diagTensor(sqrLy + sqrLz, sqrLx + sqrLz, sqrLx + sqrLy)/12.0;
        #};
        };

    g               (0 -9.81 0);
    rho             rhoInf; 
    rhoInf          1; 
    report          on;
    reportToFile    on; 

    accelerationRelaxation 0.1;

    solver
    {
        type Newmark;
    }

        constraints 
        {
   
        fixedPoint
        {
             sixDoFRigidBodyMotionConstraint point;
             centreOfRotation (0.0 0.0 0.125);
        }
        
        fixedAxis
        {
            sixDoFRigidBodyMotionConstraint axis;
            axis (0 0 1);
        }
    
        }
}
// ************************************************************************* // 
Could you tell me which z dimension I have to take for cuboid dimensions ?
The domain's size in Z-direction (I have read this on an other post but it was to calculate force coefficient and I am not sure that it is the same thing) or 1 meter ?



Any help would be appreciated !
Regards

Last edited by Fieschi; October 31, 2017 at 11:10.
Fieschi is offline   Reply With Quote

Old   March 29, 2020, 23:01
Default
  #2
New Member
 
Join Date: Jan 2018
Posts: 19
Rep Power: 8
Zhi Cheng is on a distinguished road
Hi, have you understand the Z direction distance in the 2d sixdof, it seems it's related to the density, mass of the soild, which means the forces acting on the surface is different. Do you have knowledge about this?
ZHI CHENG



Quote:
Originally Posted by Fieschi View Post
Hello,
I am trying to model a plate with a -5 deg origin angle on z axis.
It is an overset 2D simulation using the sixDoFRigidBodyMotion solver in a domain with a fixed velocity in x-direction.
I use OpenFOAM V1706.

Attachment 59241

The blue block is my background (fixed block) and my object is inside a moving cylinder which is my overset (red).
The center of mass and center of rotation are at the same point : the plate's lower-left corner.

I would like to leave my object in a free motion so this is my dynamicMeshDict :

Code:
 FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
motionSolverLibs ("libsixDoFRigidBodyMotion.so");

dynamicFvMesh       dynamicOversetFvMesh;

dynamicOversetFvMeshCoeffs
{
}

solver    sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs 
{
    patches         (object);
    innerDistance   100.0; 
    outerDistance   101.0; 

    centreOfMass    (0.0 0.0 0.125);

    // Cuboid dimensions
    Lx              1.0;
    Ly              0.1;
   Lz              ?;

    // Density of the solid
    rhoSolid        1000;

    // Cuboid mass
    mass           #calc "$rhoSolid*$Lx*$Ly*$Lz";
     
    momentOfInertia #codeStream
        {
        codeInclude
        #{
            #include "diagTensor.H"
        #};

        code
        #{
            scalar sqrLx = sqr($Lx);
            scalar sqrLy = sqr($Ly);
            scalar sqrLz = sqr($Lz);
            os  <<
                $mass
               *diagTensor(sqrLy + sqrLz, sqrLx + sqrLz, sqrLx + sqrLy)/12.0;
        #};
        };

    g               (0 -9.81 0);
    rho             rhoInf; 
    rhoInf          1; 
    report          on;
    reportToFile    on; 

    accelerationRelaxation 0.1;

    solver
    {
        type Newmark;
    }

        constraints 
        {
   
        fixedPoint
        {
             sixDoFRigidBodyMotionConstraint point;
             centreOfRotation (0.0 0.0 0.125);
        }
        
        fixedAxis
        {
            sixDoFRigidBodyMotionConstraint axis;
            axis (0 0 1);
        }
    
        }
}
// ************************************************************************* // 
Could you tell me which z dimension I have to take for cuboid dimensions ?
The domain's size in Z-direction (I have read this on an other post but it was to calculate force coefficient and I am not sure that it is the same thing) or 1 meter ?



Any help would be appreciated !
Regards
Zhi Cheng 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
Surface Source - Fixed Temperature? robtheslob FloEFD, FloWorks & FloTHERM 18 May 12, 2017 02:28
Simulation FPEs - turbulence for transient and steady-state? DaveR OpenFOAM Running, Solving & CFD 5 March 5, 2017 15:06
Waterbell Simulation o.b.m Fluent Multiphase 1 November 5, 2015 05:55
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 10:44
3-D Contaminant Dispersal Simulation Apple L S Chan Main CFD Forum 1 December 23, 1998 10:06


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