CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   rotatingWallFunction not working properly (https://www.cfd-online.com/Forums/openfoam-solving/203697-rotatingwallfunction-not-working-properly.html)

omdemircan July 4, 2018 08:41

rotatingWallFunction not working properly
 
1 Attachment(s)
Hi Foamers,

I am trying simulate a rotating cylinder at transonic speeds in 2D using rhoPimpleFoam of the OpenFOAM 5.0 code package. However, the simulation output is almost the same as a static cylinder. Below is my U file with the BC that I have used.
I have also attached a contour showing the instantaneous Ma number. Top one is static and the bottom one is with the rotating cylinder.
Am I missing something here?

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  4.1                                  |
|  \\  /    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 (289.25 0 0);

boundaryField
{
    inlet
    {
                type        fixedValue;
                value        uniform (289.25 0 0);
    }
    outlet
    {
        type        zeroGradient;
    }
    fixedWall
    {
        type        noSlip;
    }
    movingWall
    {
        type        rotatingWallVelocity;
                origin        (-0.009525 0.009017 0);
                axis        (0 0 1);
                omega        104.72; // rad/s
    }
    slip
    {
        type        symmetry;
    }
    empty
    {
        type        empty;
    }
}

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



All times are GMT -4. The time now is 18:55.