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

Flat Plate: Simulation is not converging

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2016, 07:25
Default Flat Plate: Simulation is not converging
  #1
New Member
 
Luana
Join Date: Feb 2016
Location: Bristol - UK
Posts: 1
Rep Power: 0
Luana.M. is on a distinguished road
Hi,

I am new in OpenFoam and I am trying to run a case of a 2D flat plate ( see figures) using Sparlat Almaras and SimpleFoam.

Could someone give me an idea of what can be wrong with my model and/or set up?
I have 2 cases, where the set up are the same, but the velocities Inlet UP and Inlet Down are different.
Even after 100000 iterations it seems that is it is not converging.
The files are attached.

Thank you very much for you help.


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

boundaryField
{
    INDOWN
    {   type            fixedValue;
        value           uniform (7 0 0);
    }
    INLET
    {   type            fixedValue;
        value           uniform (38 0 0);
    }
    PLATE
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    OUTLET
    {
        type            zeroGradient;
    }
    TOP
    {   type            fixedValue;
        value           uniform (38 0 0);
    }
    BOTTOM
    {   type            fixedValue;
        value           uniform (7 0 0);
    }
    frontAndBackPlanes
    {
        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
{
   TOP
    {
        type            zeroGradient;
    }
   BOTTOM
    {
        type            zeroGradient;
    }
    INLET
    {
        type            zeroGradient;
    }
    INDOWN
    {
        type            zeroGradient;
    }
    OUTLET
    {
        type            fixedValue;
    value        uniform 0;
    }
    PLATE
    {
        type            zeroGradient;
    }

    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      nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0.14;

boundaryField
{
    TOP
    {
        type            zeroGradient;
    }
    BOTTOM
    {
        type            zeroGradient;
    }
    INLET
    {
        type            zeroGradient;
    }
    INDOWN
    {
        type            zeroGradient;
    }
    OUTLET
    {
        type            zeroGradient;;
    }
    PLATE
    {
        type            fixedValue;
        value           uniform 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       dictionary;
    object      RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

RASModel            SpalartAllmaras;

turbulence          on;

printCoeffs         on;


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

ddtSchemes
{
    default steadyState;
}

gradSchemes
{
    
        default         Gauss linear;
        grad(p)         Gauss linear;
        grad(U)         Gauss linear;
}

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

laplacianSchemes
{
        default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
    interpolate(U)  linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p               ;
}
wallDist
{
    method meshWave;
}
// ************************************************************************* //
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       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-7;
        relTol          0.001;
        smoother        GaussSeidel;
        nPreSweeps      0;
        nPostSweeps     2;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }

    U
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        nSweeps         2;
        tolerance       1e-9;
        relTol          0.01;
    }

     "(k|epsilon|omega|Phi|nuTilda)"
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        //maxIter          100;
        tolerance        1e-9;
        relTol           0.01;
        nSweeps          1;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue       0;

    residualControl
    {
        p               1e-9;
        U               1e-9;
        nuTilda         1e-9;
    }
}
potentialFlow
{
    nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
    fields
    {
        p               0.3;
    }
    equations
    {
       "(U|k|epsilon|omega|nuTilda)"   0.7;
       "(U|k|epsilon|omega|nuTilda)Final" 0.7;
    }
}
cache
{
    grad(U);
}

// ************************************************************************* //
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       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     simpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         100000;

deltaT          1;

writeControl    timeStep;

writeInterval   10000;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;


// ************************************************************************* //
Attached Images
File Type: jpg CFDO-1.jpg (57.0 KB, 18 views)
File Type: jpg CFDO-2.jpg (70.2 KB, 20 views)
File Type: png CFDO-3.png (142.3 KB, 22 views)
File Type: jpg CFDO-4.jpg (65.2 KB, 18 views)
File Type: jpg CFDO-5.jpg (67.3 KB, 18 views)

Last edited by wyldckat; April 16, 2016 at 12:49. Reason: Added [CODE][/CODE] markers
Luana.M. is offline   Reply With Quote

Old   April 14, 2016, 02:14
Default May be this helps!
  #2
Member
 
Akr
Join Date: Apr 2015
Location: India
Posts: 53
Rep Power: 11
NightWing is on a distinguished road
http://www.cfd-online.com/Forums/flu...nvergence.html
NightWing 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
Using radiation model for simulation of flat plate solar collector marjanbn FLUENT 1 February 24, 2017 18:22
Simulations Flow 3D over Flat plate baoaero OpenFOAM 7 June 7, 2013 06:53
Questions about a Turbulent Flat Plate Case tstorm FLUENT 2 August 11, 2009 15:16
Flat Plate Drag & Lift Joe Main CFD Forum 3 October 24, 2008 15:17
Not getting Simple flat plate simulation using sonicTurbFoam velan OpenFOAM Running, Solving & CFD 1 September 19, 2008 06:00


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