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

Non-converging magnitudes Cylinder case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2016, 12:16
Question Non-converging magnitudes Cylinder case
  #1
New Member
 
Max Vorstadt
Join Date: May 2016
Posts: 28
Rep Power: 10
jet_engine is on a distinguished road
Hi! I'm running a kwSST simpleFoam simulation with a cylinder and a plate and apparently I'm having trouble with the convergence of the different magnitudes. The meshing process has been done with snappyHexMesh (all 3 steps run succesfully). The geometry of the case and a previous "lower-level" mesh can be seen in the attachments, as well as the plot of the residuals.

Does anybody have any idea why the magnitudes are not converging? Maybe a fvSchemes problem, a Boundary Conditions problem, the need to run potentialFoam before to initialise the field...? The different relevant files are attached below as well.

Thanks in advance!

U:
Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            fixedValue;
        value      uniform (26 0 0);
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (26 0 0);
    }
    lateralWall
    {
        type            symmetry;
    }
    upperWall
    {
        type            symmetry;
    }
    lowerWall
    {
        type            symmetry;
    }
    Cylinder
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    Plate_round
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}
p:
Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 0;
    }
    upperWall
    {
        type            symmetry;
    }
    lowerWall
    {
        type            symmetry;
    }
    lateralWall
    {
        type            symmetry;
    }
    Cylinder
    {
        type            zeroGradient;
    }
    Plate_round
    {
        type            zeroGradient;
    }
}
k:
Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.02535;
    }
    outlet
    {
        type            zeroGradient;
    }
    upperWall
    {
        type            symmetry;
    }
    lowerWall
    {
        type            symmetry;
    }
    lateralWall
    {
        type            symmetry;
    }
    Cylinder
    {
        type            kqRWallFunction;
        value           uniform 0;
    }
    Plate_round
    {
        type            kqRWallFunction;
        value           uniform 0;
    }
}
omega:
Code:
dimensions      [0 0 -1 0 0 0 0];

internalField   uniform 162.5;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 162.5;
    }
    outlet
    {
        type            zeroGradient;
    }
    upperWall
    {
        type            symmetry;
    }
    lowerWall
    {
        type            symmetry;
    }
    lateralWall
    {
        type            symmetry;
    }
    Cylinder
    {
        type            omegaWallFunction;
        value           uniform 162.5;
    }
    Plate_round
    {
        type            omegaWallFunction;
        value           uniform 162.5;
    }
}
nut:
Code:
dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           uniform 5e-4;
    }
    outlet
    {
        type            zeroGradient;
    }
    upperWall
    {
        type            symmetry;
    }
    lowerWall
    {
        type            symmetry;
    }
    lateralWall
    {
        type            symmetry;
    }
    Cylinder
    {
        type            nutUSpaldingWallFunction;
        value           uniform 0;
    }
    Plate_round
    {
        type            nutUSpaldingWallFunction;
        value           uniform 0;
    }
}
fvSchemes:
Code:
ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;
    grad(U)         cellLimited Gauss linear 1;
}

divSchemes
{
    default         none;
    div(phi,U)      bounded Gauss linearUpwindV grad(U);
    div(phi,k)      bounded Gauss upwind;
    div(phi,omega)  bounded Gauss upwind;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method meshWave;
}
fvSolution:
Code:
solvers
{
    p
    {
        solver           GAMG;
        tolerance        1e-8;
        relTol           0.01;
        smoother         GaussSeidel;
        nPreSweeps       0;
        nPostSweeps      2;
        cacheAgglomeration on;
        agglomerator     faceAreaPair;
        nCellsInCoarsestLevel 10;
        mergeLevels      1;
    }

    Phi
    {
        $p;
    }

    U
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0.1;
        nSweeps          1;
    }

    k
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0.1;
        nSweeps          1;
    }

    omega
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0.1;
        nSweeps          1;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 5;
    consistent yes;

    residualControl
    {
        p               1e-7;
        U               1e-7;
        "(k|epsilon|omega)" 1e-7;
    }
}

potentialFlow
{
    nNonOrthogonalCorrectors 10;
}

relaxationFactors
{
    equations
    {
        U               0.9;
        k               0.7;
        omega           0.7;
    }
}

cache
{
    grad(U);
}
Attached Images
File Type: jpg Screen Shot 2016-06-04 at 16.08.50.jpg (71.0 KB, 7 views)
File Type: png Screen Shot 2016-05-25 at 12.30.37.png (14.0 KB, 3 views)
File Type: png Screen Shot 2016-05-25 at 12.30.31.png (41.4 KB, 3 views)
jet_engine is offline   Reply With Quote

Reply

Tags
convergence, cylinder, fvschemes, kwsstmodel, turbulence


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
flow over a cylinder urgent! kevin FLUENT 8 August 11, 2015 14:00
Problem solving a cylinder case 2d. Simple Foam vbesteban OpenFOAM Running, Solving & CFD 0 October 16, 2014 17:51
How to Initialise my LES case using my RANS case is there any utility for it ? Alhasan OpenFOAM Running, Solving & CFD 2 May 10, 2014 01:14
Compare the pressure of potential flow and a turbulent case of cylinder ooo OpenFOAM Running, Solving & CFD 0 August 2, 2013 08:25
Turbulent steady flow around a circular cylinder Mirek Kabacinski FLUENT 0 July 23, 2003 19:40


All times are GMT -4. The time now is 16:14.