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

directionMixed straight out bc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2015, 11:49
Default directionMixed straight out bc
  #1
Member
 
Join Date: May 2014
Posts: 40
Rep Power: 12
Phil_ is on a distinguished road
Hi Foamers,

I'm having trouble with the directionMixed bc at the outlet.

The intention was to get a "straight out" velocity outlet. For that the directionMixed bc was configured to (hopefully) set the normal velocites at the outlet to a zeroGradient and the tangential velocities to a zero fixedValue. The pressure is fixedValue 0.

With the normal patch vector being n = (0 -1 0):

Code:
        type            directionMixed;
        refValue        uniform         (0 0 0);
        refGradient     uniform         (0 0 0);
        valueFraction   uniform   (1 0 0 0 0 1); //(XX XY XZ YY YZ ZZ)
        value           uniform         (0 0 0);
This setup leads to strange velocities adjacent to the boundary (see pictures). Any ideas?

The case is a simple 2D box with laminar flow, solved by simpleFoam.

Best regards
Philip
Attached Images
File Type: png ges_vel_800x.png (44.8 KB, 31 views)
File Type: png glyphs_out_800x.png (18.9 KB, 26 views)
Phil_ is offline   Reply With Quote

Old   January 22, 2015, 09:49
Default Still no success
  #2
Member
 
Join Date: May 2014
Posts: 40
Rep Power: 12
Phil_ is on a distinguished road
Hey,

I have still no idea what's causing this effect

As a test I set the inlet and outlet BC's for the velocity to a fixedValue (I know that's not correct), and the result looks the same (strange high velocities near the outlet).

So maybe the combination of boundary conditions with directionMixed is wrong?

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

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform (0.1 0 0);  
}
    
    outlet
    {
        type            directionMixed;
        refValue        uniform       (0 0 0);
        refGradient     uniform       (0 0 0);
        valueFraction   uniform (1 0 0 0 0 1);
        value           uniform       (0 0 0);
    }
    
    wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    
    frontAndBack
    {
        type            empty;
    }
}


// ************************************************************************* //

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

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
        value           uniform 0;
    }

    wall
    {
        type            zeroGradient;
    }

    frontAndBack
    {
        type            empty;
    }
}

// ************************************************************************* //
Best regards

Philip
Phil_ 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
DirectionMixed BC problem T.D. OpenFOAM Running, Solving & CFD 0 September 29, 2010 09:47
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
directionMixed b.c sersunzo OpenFOAM Running, Solving & CFD 8 September 9, 2009 08:56
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02:07
Simulation of pump with Straight blades veera CFX 4 January 12, 2006 01:52


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