CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Moving a flap inside a mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2017, 02:49
Post Moving a flap inside a mesh
  #1
New Member
 
CHUNG Ching Chun
Join Date: Aug 2016
Location: Tin Shui Wai, New Territories, Hong Kong
Posts: 11
Rep Power: 9
richard.chung.jones is on a distinguished road
Dear Foamers,
Currently I am stuck with dynamic mesh. I need to do a simulation, which involves a metal solid flap in a water tank, rotating a certain angle to generate a vortex pair on the bottom wall.
Firstly I think of solidBodyMotion with tabulated6DoFMotion to prescribe the motion of the flap. However, after the first simulation I found out that the neighbouring mesh points stand still at their position, resulting in a poor mesh quality. I know that dynamicMotionSolverFvMesh enables mesh morphing but it does not have a parameter or a BC for inputting motion profile.
So far I am able to “move the flap” by defining the motion in 0/pointDisplacement file, using angularOscillatingDisplacement BC. However I want the flap to move accordingly to my prescribed, tabulated motion profile. Is there a way to achieve this?

Code 1. The dynamicMeshDict
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

solver displacementLaplacian;

displacementLaplacianCoeffs
{
    diffusivity  inverseDistance 5.0 (flapPatch);

    report            on;
    reportToFile      on;
}
Code 2. 0/pointDisplacement
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       pointVectorField;
    location    "0";
    object      pointMotionU;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 0 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    front
    {
        type            empty;
    }

    back
    {
        type            empty;
    }

    top
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
    }

    zeroGrad
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
    }

    ground
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
    }

    flapPatch
    {
        type            angularOscillatingDisplacement;
        axis            (1 0 0);
        angle0          0.0;
        amplitude       0.11407;
        omega           0.18021;
        origin          (0.0 19.4 22.3);

        value           uniform (0 0 0);
    }

    symmetry_Y
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
    }

    defaultFaces
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
    }
}
Fig. 1 The overall mesh
Screenshot from 2017-10-18 14-34-39.png

Fig. 2 The flap that I wish to move
Screenshot from 2017-10-18 14-35-23.png

Fig.3 The required motion profile. The flap is initially tilted to certain angle from the vertical plane.
JFL_flap_angle.png
richard.chung.jones 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
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[snappyHexMesh] SHM error: inside mesh not possible Naresh yathuru OpenFOAM Meshing & Mesh Conversion 1 January 10, 2017 23:58
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[snappyHexMesh] 2D AMI Moving Mesh with sHM; How hard can this be? ADGlassby OpenFOAM Meshing & Mesh Conversion 18 June 18, 2013 06:07
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


All times are GMT -4. The time now is 01:22.