CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Wall boundary is ignored when using wedge (https://www.cfd-online.com/Forums/openfoam/74718-wall-boundary-ignored-when-using-wedge.html)

Wedge April 7, 2010 05:58

Wall boundary is ignored when using wedge
 
Hi,

I have build a nozzle using the wedge method.
It also looks like it is supposed to.
But when I run the case and view it in paraview it looks like the wall boundary gets ignored.
I am not sure if it is a visualization problem or if also openfoam ignores it. It seems to happen everytime I use wedge for creating cases.
If I use a tinier grid at the wall the velocity goes down but it doesn reach zero.
Maybe someone of you knows this situation and can help.problem
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.5                                  |
|  \\  /    A nd          | Web:      http://www.OpenFOAM.org              |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 
convertToMeters 0.001;
 
vertices
(
    ( -200.00  299.71    13.09) //  0 inlet top 1
    ( -200.00  299.71  -13.09) //  1 inlet top 2
    ( -200.00    0.00    0.00) //  2 tip
    (    0.00  299.71    13.09) //  3 nozzle inlet top 1
    (    0.00  299.71  -13.09) //  4 nozzle inlet top 2
    (    0.00    0.00    0.00) //  5 tip
    (  660.00    94.91    4.14) //  6 nozzle outlet top 1
    (  660.00    94.91    -4.14) //  7 nozzle outlet top 2
    (  660.00    0.00    0.00) //  8 tip
    ( 1000.00    94.91    4.14) //  9 outlet top 1
    ( 1000.00    94.91    -4.14) // 10 outlet top 2
    ( 1000.00    0.00    0.00) // 11 tip
);
 
edges
(
 
);
 
blocks         
(
    //before nozzle
    hex (2 5 4 1 2 5 3 0) (15 20 1) simpleGrading (1 0.1 1)
    //nozzle
    hex (5 8 7 4 5 8 6 3) (73 20 1) simpleGrading (0.3333 0.1 1)
    //after nozzle
    hex (8 11 10 7 8 11 9 6) (70 20 1) simpleGrading (1 0.1 1)
);
 
patches
(
    wall SURF_WALL
    (
        (0 3 4 1)
        (3 6 7 4)
        (6 9 10 7)
    )
    symmetryPlane AXIS 
    (
        (2 5 5 2)
        (5 8 8 5)
        (8 11 11 8)
    )
    patch SURF_INFLOW
    (
        (2 2 1 0)
    )
    patch SURF_OUTFLOW
    (
        (11 11 9 10)
    )
    wedge SURF_BACK
    (
        (2 1 4 5)
        (5 4 7 8)
        (8 7 10 11)
    )
    wedge SURF_FRONT
    (
        (2 5 3 0)
        (5 8 6 3)
        (8 11 9 6)
    )
);
 
mergePatchPairs
(
);
 
// ************************************************************************* //

Code:

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

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

internalField  uniform (0 0 0);

boundaryField
{
    SURF_INFLOW
    {
        type            fixedValue;
        value          uniform (50 0 0);
    }

    SURF_OUTFLOW
    {
    type        zeroGradient;
    }

    SURF_WALL
    {
        type            fixedValue;
        value          uniform (0 0 0);
    }

    SURF_FRONT
    {
        type            wedge;
    }

    SURF_BACK
    {
        type            wedge;
    }

    AXIS
    {
        type            symmetryPlane;
    }
}

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

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.6                                  |
|  \\  /    A nd          | Web:      http://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
{
    SURF_INFLOW
    {
        type            zeroGradient;
    }

    SURF_OUTFLOW
    {
        type            fixedValue;
        value          uniform 0;
    }

    SURF_WALL
    {
        type            zeroGradient;
    }

    SURF_FRONT
    {
        type            wedge;
    }

    SURF_BACK
    {
        type            wedge;
    }

    AXIS
    {
        type            symmetryPlane;
    }
}

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



http://img90.imageshack.us/img90/9628/nozzlecase.jpg


noramat February 7, 2011 06:20

same problem
 
hello, i have exactly the same problem. Did you already find a solution? Thanks noramat


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