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/)
-   -   Solving flow past cylinder submerged near a free surface (https://www.cfd-online.com/Forums/openfoam-solving/220718-solving-flow-past-cylinder-submerged-near-free-surface.html)

venkcy September 19, 2019 05:49

Solving flow past cylinder submerged near a free surface
 
Greetings!

I am trying to simulate flow field of cylinder submerged near a free surface. I am not able to validate the results with the published literature even qualitatively under the same nondimensional parameters. I believe the problem might be in the boundary conditions.

I am attaching the boundary condition files for alpha, pressure and velocity. I need your kind feedback.

Thanks for your time.
Code:

//alpha
dimensions      [0 0 0 0 0 0 0];

internalField  uniform 0;

boundaryField
{
    inletAir
    {
        type            fixedValue;
        value          uniform 0;
    }
    inletWater
    {
        type            fixedValue;
        value          uniform 1;
    }
    outlet
    {
        type            zeroGradient;
    }

    ground
    {
        type            zeroGradient;
    }
    cylinder
    {
        type            zeroGradient;
    }
    sides
    {
        type            empty;
    }

    top
    {
        type            zeroGradient;
    }
}


Code:

//pressure
dimensions      [1 -1 -2 0 0 0 0];

internalField  uniform 0;

boundaryField
{
    inletAir
    {
        type            zeroGradient;
        value          uniform 0;
    }
   
    inletWater
    {
        type            zeroGradient;
        value          uniform 0;
    }

    outlet
    {
        type            zeroGradient;
        //p0              uniform 0;
    }

    ground
    {
        type            fixedFluxPressure;
        value          uniform 0;
    }
    top
    {
        type            fixedFluxPressure;
        value          uniform 0;
    }   
    cylinder
    {
        type            zeroGradient;
    }

    sides
    {
        type            empty;
    }

}

Code:

//Velocity
dimensions      [0 1 -1 0 0 0 0];

internalField  uniform (0.018 0 0);

boundaryField
{
    inletAir
    {
        type            fixedValue;
        value          uniform (0.018 0 0);
    }
    inletWater
    {
        type            fixedValue;
        value          uniform (0.018 0 0);
    }

    outlet
    {
        type            zeroGradient;
        value          uniform (0 0 0);
    }

    sides
    {
        type            empty;
    }

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

    top
    {
        type            slip;
    }
    ground
    {
        type            slip;
    }
}



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