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

Incorporate oscillating slip boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2018, 09:09
Default Incorporate oscillating slip boundary condition
  #1
Member
 
vishal
Join Date: Mar 2013
Posts: 73
Rep Power: 13
vishal_s is on a distinguished road
Hi...

I am trying to simulate a wall boundary condition, in which the wall will move in an oscillating manner but the fluid will experience slip at the wall.

Any help is really appreciating. Struggling with the problem for a long time.

Thanks in advance.
vishal_s is offline   Reply With Quote

Old   February 23, 2018, 09:28
Default
  #2
New Member
 
Saurabh
Join Date: Oct 2015
Posts: 3
Rep Power: 11
srbh22 is on a distinguished road
I am facing the same problem.
srbh22 is offline   Reply With Quote

Old   February 24, 2018, 06:13
Default
  #3
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 12
anuragm is on a distinguished road
Quote:
Originally Posted by srbh22 View Post
I am facing the same problem.
Take a look at the movingCone case which uses the solver pimpleDymFoam. In fact, I made a blockMeshDict for the same case but modified the blocks so that it is now a moving solid block within a fluid. Since I have made it based on the movingCone case, you can just replace the existing blockMeshDict with the following and test it out (remember to change the boundary conditions from wedge to empty):

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

convertToMeters 0.001;

vertices
(
    (-7.5 0 0)     //0
    (-7 0 0)       //1
    (-3.5 0 0)     //2
    (0 0 0)        //3
    (-7.5 1.75 0)  //4
    (-7 1.75 0)    //5
    (-3.5 2 0)     //6
    (0 2 0)        //7
    (-7.5 2.5 0)   //8
    (-7 2.5 0)     //9
    (-3.5 2.5 0)   //10
    (0 2.5 0)      //11
    (-7.5 1.75 1)  //12
    (-7 1.75 1)    //13
    (-3.5 2 1)     //14
    (0 2 1)        //15
    (-7.5 2.5 1)   //16
    (-7 2.5 1)     //17
    (-3.5 2.5 1)   //18
    (0 2.5 1)      //19
    (-7.5 0 1)     //20
    (-7 0 1)       //21
    (-3.5 0 1)     //22
    (0 0 1)        //23
    (-7 0.75 0)    //24
    (-7 0.75 1)    //25
    (-3.5 0.75 0)  //26
    (-3.5 0.75 1)  //27
    (-7.5 0.75 0)  //28
    (-7.5 0.75 1)  //29
    (0 0.75 0)     //30
    (0 0.75 1)     //31
);

blocks
(
    hex (0 1 24 28 20 21 25 29) (15 20 1) simpleGrading (2 0.25 1)
    hex (28 24 5 4 29 25 13 12) (15 20 1) simpleGrading (2 0.25 1)
    hex (2 3 30 26 22 23 31 27) (20 20 1) simpleGrading (2 0.25 1)
    hex (26 30 7 6 27 31 15 14) (20 20 1) simpleGrading (2 0.25 1)
    hex (4 5 9 8 12 13 17 16) (15 20 1) simpleGrading (2 0.25 1)
    hex (5 6 10 9 13 14 18 17) (50 20 1) simpleGrading (2 0.25 1)
    hex (6 7 11 10 14 15 19 18) (20 20 1) simpleGrading (2 0.25 1)
    hex (1 2 26 24 21 22 27 25) (50 20 1) simpleGrading (2 0.25 1)
);

edges
(
);

boundary
(
    movingWall
    {
        type wall;
        faces
        (
            (24 5 13 25)
            (5 6 14 13)
            (26 6 14 27)
            (24 26 27 25)
        );
    }
    farFieldMoving
    {
        type patch;
        faces
        (
            (9 17 18 10)
            (1 21 22 2)
        );
    }
    fixedWall
    {
        type wall;
        faces
        (
            (3 30 31 23)
            (30 7 15 31)
            (7 11 19 15)
        );
    }
    axis
    {
        type empty;
        faces
        (
            //(0 1 1 0)
            //(2 3 3 2)
        );
    }
    left
    {
        type patch;
        faces
        (
            (0 20 29 28)
            (28 29 12 4)
            (4 12 16 8)
        );
    }
    farField
    {
        type patch;
        faces
        (
            (8 16 17 9)
            (0 20 21 1)
            (10 18 19 11)
            (2 22 23 3)
        );
    }
    back
    {
        type empty;
        faces
        (
            (0 28 24 1)
            (28 4 5 24)
            (2 26 30 3)
            (26 6 7 30)
            (4 8 9 5)
            (5 9 10 6)
            (6 10 11 7)
        );
    }
    front
    {
        type empty;
        faces
        (
            (20 21 25 29)
            (29 25 13 12)
            (22 23 31 27)
            (27 31 15 14)
            (12 13 17 16)
            (13 14 18 17)
            (14 15 19 18)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
anuragm is offline   Reply With Quote

Old   February 26, 2018, 09:46
Default
  #4
New Member
 
Saurabh
Join Date: Oct 2015
Posts: 3
Rep Power: 11
srbh22 is on a distinguished road
Quote:
Originally Posted by anuragm View Post
Take a look at the movingCone case which uses the solver pimpleDymFoam. In fact, I made a blockMeshDict for the same case but modified the blocks so that it is now a moving solid block within a fluid. Since I have made it based on the movingCone case, you can just replace the existing blockMeshDict with the following and test it out (remember to change the boundary conditions from wedge to empty):

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

convertToMeters 0.001;

vertices
(
    (-7.5 0 0)     //0
    (-7 0 0)       //1
    (-3.5 0 0)     //2
    (0 0 0)        //3
    (-7.5 1.75 0)  //4
    (-7 1.75 0)    //5
    (-3.5 2 0)     //6
    (0 2 0)        //7
    (-7.5 2.5 0)   //8
    (-7 2.5 0)     //9
    (-3.5 2.5 0)   //10
    (0 2.5 0)      //11
    (-7.5 1.75 1)  //12
    (-7 1.75 1)    //13
    (-3.5 2 1)     //14
    (0 2 1)        //15
    (-7.5 2.5 1)   //16
    (-7 2.5 1)     //17
    (-3.5 2.5 1)   //18
    (0 2.5 1)      //19
    (-7.5 0 1)     //20
    (-7 0 1)       //21
    (-3.5 0 1)     //22
    (0 0 1)        //23
    (-7 0.75 0)    //24
    (-7 0.75 1)    //25
    (-3.5 0.75 0)  //26
    (-3.5 0.75 1)  //27
    (-7.5 0.75 0)  //28
    (-7.5 0.75 1)  //29
    (0 0.75 0)     //30
    (0 0.75 1)     //31
);

blocks
(
    hex (0 1 24 28 20 21 25 29) (15 20 1) simpleGrading (2 0.25 1)
    hex (28 24 5 4 29 25 13 12) (15 20 1) simpleGrading (2 0.25 1)
    hex (2 3 30 26 22 23 31 27) (20 20 1) simpleGrading (2 0.25 1)
    hex (26 30 7 6 27 31 15 14) (20 20 1) simpleGrading (2 0.25 1)
    hex (4 5 9 8 12 13 17 16) (15 20 1) simpleGrading (2 0.25 1)
    hex (5 6 10 9 13 14 18 17) (50 20 1) simpleGrading (2 0.25 1)
    hex (6 7 11 10 14 15 19 18) (20 20 1) simpleGrading (2 0.25 1)
    hex (1 2 26 24 21 22 27 25) (50 20 1) simpleGrading (2 0.25 1)
);

edges
(
);

boundary
(
    movingWall
    {
        type wall;
        faces
        (
            (24 5 13 25)
            (5 6 14 13)
            (26 6 14 27)
            (24 26 27 25)
        );
    }
    farFieldMoving
    {
        type patch;
        faces
        (
            (9 17 18 10)
            (1 21 22 2)
        );
    }
    fixedWall
    {
        type wall;
        faces
        (
            (3 30 31 23)
            (30 7 15 31)
            (7 11 19 15)
        );
    }
    axis
    {
        type empty;
        faces
        (
            //(0 1 1 0)
            //(2 3 3 2)
        );
    }
    left
    {
        type patch;
        faces
        (
            (0 20 29 28)
            (28 29 12 4)
            (4 12 16 8)
        );
    }
    farField
    {
        type patch;
        faces
        (
            (8 16 17 9)
            (0 20 21 1)
            (10 18 19 11)
            (2 22 23 3)
        );
    }
    back
    {
        type empty;
        faces
        (
            (0 28 24 1)
            (28 4 5 24)
            (2 26 30 3)
            (26 6 7 30)
            (4 8 9 5)
            (5 9 10 6)
            (6 10 11 7)
        );
    }
    front
    {
        type empty;
        faces
        (
            (20 21 25 29)
            (29 25 13 12)
            (22 23 31 27)
            (27 31 15 14)
            (12 13 17 16)
            (13 14 18 17)
            (14 15 19 18)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
Thanks for your prompt reply but I am trying to implement a moving wall boundary with slip (like a rectangular wall moving in an oscillatory motion with slip).

Can you please suggest something.
srbh22 is offline   Reply With Quote

Reply

Tags
boundary condition, oscillating, slip


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
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 23:41.