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

Convergence issue on NACA0012 simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2021, 15:50
Default Convergence issue on NACA0012 simulation
  #1
New Member
 
Sandro Brad Martinez Sardon
Join Date: Sep 2021
Posts: 17
Rep Power: 5
sandrobrad is on a distinguished road
Hi there!
I am having some troubles trying to validate cd and cl numbers of naca0012 given the following boundary conditions using komegasst:
k
Code:
internalField   uniform 3.98e-5;//funciona con 7.2599
boundaryField
{

    inlet
    {
        type            fixedValue;
        value $internalField;
    }


outlet
    {
        type            zeroGradient;
    }



    walls
    {
        type kqRWallFunction;
        //type           kLowReWallFunction;//No es una wall function 
        value        $internalField;
    }



    frontAndBack
    {
        type            empty;
    }
}
nut

Code:
internalField   uniform 1.10e-5;

boundaryField
{
    inlet
    {
        type            calculated;
        value  $internalField;
    }

    outlet
    {
        /*
        type            calculated;
        value  $internalField;
        */
        type zeroGradient;
    }
    walls
    {
        type            nutkWallFunction;
        value           $internalField;//Valor muy pequeño por no poner 0 
    }

    "interface.*"
    {
        type            empty;
    }
}
OMEGA
Code:
internalField   uniform 3.62;//Esta bien este valor?//49701 funciona

boundaryField
{
    inlet
    {
        type            fixedValue;
        value $internalField;
    }
outlet
    {
        type            zeroGradient;
    }



    walls
    {
        type            omegaWallFunction;
        Cmu        0.09;
        kappa        0.41;
        E        9.8;
        beta1        0.075;
        value        uniform 0.0035;
    }



    frontAndBack
    {
        type            empty;
    }
   
}
U
Code:
internalField    uniform ( 51.4815 0 0 );
//uniform (51.28559735 4.48690837 0); //  ( Ubar*cos(5) Ubar*sin(5) 0)

boundaryField
{
    inlet
    {
        type            freestreamVelocity;
        freestreamValue $internalField;
    }

    outlet
    {
        type            freestreamVelocity;
        freestreamValue $internalField;
    }
    walls
    {
        type            noSlip;
    }

    "interface.*"
    {
        type            empty;
    }
}
After several simulations my mesh has y+ = 8.82 averaged and I would like to improve my simulations beacause I've got so high residuals values Do you know how can I improve my residuals??
The cl and cd values that I 've obtained is 0.00401141 0.011854


I am suspecting about the fvschemes and the fvsolution. Please , could you check out that files and tell me if that schemes are appropiate for my simulation?



Control Dict

Code:
application     simpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime        4000;

deltaT          1;

writeControl    timeStep;

writeInterval   100;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;




functions
{

    momErr
    {
        type            momentumError;
        libs            (fieldFunctionObjects);
        executeControl  writeTime;
        writeControl    writeTime;
    }

    contErr
    {
        type            div;
        libs            (fieldFunctionObjects);
        field           phi;
        executeControl  writeTime;
        writeControl    writeTime;
    }


    turbulenceFields1
    {
        type            turbulenceFields;
        libs            (fieldFunctionObjects);
        fields
        (
            k
            epsilon
            nut
            nuEff
            R
            devReff
            L
            I
        );

        executeControl  writeTime;
        writeControl    writeTime;
    }

    mag1
    {
        type            mag;
        libs            (fieldFunctionObjects);
        field           turbulenceProperties:R;

        result          magR;
        executeControl  writeTime;
        writeControl    writeTime;
    }

    forceCoeffs1
    {
        type            forceCoeffs;

        libs            ("libforces.so");

        writeControl    timeStep;
        timeInterval    1;
        aoa         5;
        log             yes;

        patches         ("walls");
        rho             rhoInf;      // Indicates incompressible
        rhoInf          1.225;           // Redundant for incompressible
        
       liftDir (0 1 0);
       dragDir (1 0 0);
/*
        liftDir         (-0.08715574275 0.9961946981 0);
        dragDir         (0.9961946981  0.08715574275  0);

*/
        CofR            (0.72 0 0);  // Axle midpoint on ground
        pitchAxis       (0 1 0);
        magUInf         51.4815;
        lRef            1;        // Wheelbase length
        Aref            0.3;        // Estimated
        /*
        binData
        {
        nBin        20;          // output data into 20 bins
        direction   (1 0 0);     // bin direction
        cumulative  yes;
        }
        */
    }
    yPlus
    {
        type            yPlus;
        libs            (fieldFunctionObjects);
        writeControl    writeTime;
        patches         (wall);
    }
    cellCentres
    {
        type            writeCellCentres;
        libs            (fieldFunctionObjects);
        writeControl    writeTime;
    }

    residuals
    {
        type            solverInfo;
        libs            (utilityFunctionObjects);
        fields          (".*");
    }
    

}
fvSchemes
Code:
ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;

}

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

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method meshWave;
}
fvSOLUTIONS


Code:
solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-06;
        relTol          0.01;
        smoother        GaussSeidel;
    }

    U
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        nSweeps         2;
        tolerance       1e-08;
        relTol          0;
    }

    nuTilda
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        nSweeps         2;
        tolerance       1e-08;
        relTol          0.01;
    }
    "(k|epsilon|R)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        nSweeps    2;
        relTol          0;
    }

    omega
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        relTol          0;
         nSweeps    2;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;

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

}

relaxationFactors
{
    fields
    {
        p               0.3;
    }
    equations
    {
        U               0.7;
        k               0.7;
        epsilon         0.7;
        nuTilda         0.8;
        omega           0.7;
    }
 }
PD: I dont know why in the beginning my residuals oscilates badly. Thats all. Thanks in advance and don't hesitate if you want ask me something.
sandrobrad is offline   Reply With Quote

Old   October 3, 2021, 10:38
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Did you know this https://www.openfoam.com/documentati...irfoil-2d.html
mAlletto is offline   Reply With Quote

Old   October 3, 2021, 10:54
Default
  #3
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
If you need a discussion about how to simulate a wall resolved case with a k omega set you can look at this k-omega SST for wall-resolved TBL, problem with log layer..

For a y+ of 8 better use nutUSpalding b.c. since nutk is only valid in the log layer
mAlletto is offline   Reply With Quote

Old   October 4, 2021, 07:17
Default
  #4
New Member
 
Sandro Brad Martinez Sardon
Join Date: Sep 2021
Posts: 17
Rep Power: 5
sandrobrad is on a distinguished road
Hi Michael ,
I already know about that simulation. Moreover, that sim I've used it in order to learn how to use the SpalartAllmaras. Eventually, I was able to achieve good results using it. However, I'm trying to simulate with that boundary conditions (U,nu,rho...) using the kOmegaSST turbulence model.Like I said, using this model I'm getting trouble in the convergence. Thanks for ur reply btw.
Best Regards.
sandrobrad 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
FSI: Convergence issue for a simple cylinder on top of a latex membrane Geraud CFX 3 November 23, 2014 18:02
Wind Tunnel Flow Simulation Mass Flow BC Issue ledelman SU2 4 August 3, 2014 19:38
mass flow rate issue in supersonic nozzle simulation xkang FLUENT 0 July 31, 2014 17:06
Force can not converge colopolo CFX 13 October 4, 2011 23:03
Heat Transfer simulation: No convergence problem fiqs CFX 2 April 21, 2010 16:47


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