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

shifted periodic boundary conditions

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2023, 05:29
Default shifted periodic boundary conditions
  #1
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Hello all,

does somebody know how to apply shifted periodic boundary conditions in OpenFOAM. Basically in periodic boundary conditions the velocity at the outflow is taken and reintroduced at the same lateral and vertical position at the inlet.

I wanted to do the same, but i want to shift the lateral position by some distance \Delta y being y the lateral coordinate. x is the streamwise coordinate and z is the wall normal coordinate. The scope is to avoid an annatural long living of the streamwise streaks caused by the periodic boundary conditions.

Basically I wanted to do the same as https://www.researchgate.net/publica...urbulent_flows

Is there a way to achieve this?

Best

Michael
mAlletto is offline   Reply With Quote

Old   March 17, 2023, 09:31
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Maybe I can aswer the question by myself:

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 1;

vertices
(
    ( -2500  -1000   0)// 0
    ( 2500  -1000   0) // 1
    ( 2500    0   0) // 2
    ( -2500   0   0) // 3
    ( -2500  -1000   4000) // 4
    ( 2500  -1000   4000) // 5
    ( 2500    0   4000) // 6
    ( -2500   0   4000) // 7

    ( -2500    1000   0) // 8
    (  2500    1000   0) // 9
    ( -2500    1000   4000) // 10
    (  2500    1000   4000) // 11


);

blocks
(
    hex (0 1 2 3 4 5 6 7) (250 50 200) simpleGrading (1 1 1)
    hex (3 2 9 8 7 6 11 10) (250 50 200) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    east1
    {
        type cyclic;
        neighbourPatch  west2;
        transform       translational;
        separationVector (-5000 1000 0);
        faces
        (
            (2 6 5 1)
        );
    }
    east2
    {
        type cyclic;
        neighbourPatch  west1;
        transform       translational;
        separationVector (-5000 -1000 0);
        faces
        (
            (2 9 11 6)
        );
    }
    north
    {
        type cyclic;
        neighbourPatch south; 
        faces
        (
            (1 5 4 0)
        );
    }
    south
    {
         type cyclic;
        neighbourPatch north;
        faces
        (
            (8 9 11 10)
        );
    }
    west1
    {
        type cyclic;
        neighbourPatch  east2;
        transform       translational;
        separationVector (5000 1000 0);
        faces
        (
            (0 4 7 3)
        );
    }
    west2
    {
        type cyclic;
        neighbourPatch  east1;
        transform       translational;
        separationVector (5000 -1000 0);
        faces
        (
            (3 8 10 7)
        );
    }
    lower
    {
        type wall;
        faces
        (
            (0 3 2 1)
            (3 2 9 8)
        );
    }
    upper
    {
        type patch;
        faces
        (
            (4 5 6 7)
            (7 6 11 10)
        );
    }
);

mergePatchPairs
(
);


// ************************************************************************* //
YG Wei likes this.
mAlletto is offline   Reply With Quote

Old   October 15, 2024, 06:48
Thumbs up shifted periodic boundary condition progress
  #3
New Member
 
Join Date: Jan 2024
Posts: 3
Rep Power: 2
Tim_ is on a distinguished road
Hi, did you get any further with this. For example working out how to do it for an arbitrary number of outlet/inlet slices? or an openfoam BC that works to similar effect?
Tim_ is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 06:53
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 17, 2020 00:44
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
PEMFC module + multiple periodic boundary conditions vkrastev FLUENT 2 December 22, 2014 05:15
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


All times are GMT -4. The time now is 19:09.