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

rhoSimpleFoam - strange behaviour of the residuals

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2014, 09:20
Default rhoSimpleFoam - strange behaviour of the residuals
  #1
New Member
 
Join Date: Feb 2013
Posts: 17
Rep Power: 13
Werne is on a distinguished road
Hey,

I'm getting some strange results for the residuals of my simulation. For the first 2000 iterations it looks ads if the simulation will converge. However, afterwards I'm getting strange "jumps" in the values of the residuals, as you can see in the attached plot.

I didn't change any files or values during the simulation.

Does anybody know what could be source of this behaviour?
I'm using rhoSimpleFoam with the following fvSchemes and fvSolution files:

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

ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default    bounded Gauss upwind;
    div(phi,U)      bounded Gauss upwind;
    div((muEff*dev2(T(grad(U))))) Gauss linear;
    div(phi,e)      bounded Gauss upwind;
    div(phi,omega) bounded Gauss upwind;  
    div(phi,k)      bounded Gauss upwind;
    div(phi,Ekp)    bounded Gauss upwind;
}

laplacianSchemes
{
    default      Gauss linear corrected;
    laplacian(muEff,U) Gauss linear corrected;
    laplacian(alphaEff,e) Gauss linear corrected;
    laplacian((rho*(1|A(U))),p) Gauss linear corrected;
    laplacian(DomegaEff,omega) Gauss linear corrected;  
    laplacian(DkEff,k) Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p               ;
}

// ************************************************************************* //
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.2                                 |
|   \\  /    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-08;
        relTol          0.05;
        smoother        GaussSeidel;
        cacheAgglomeration off;
        nCellsInCoarsestLevel 20;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }

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

    e
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-08;
        relTol          0.1;
    }

    "(k|omega)" 
    {
        $U;
        tolerance       1e-09;
        relTol          0.1;
    }    
 
}

SIMPLE
{
    nNonOrthogonalCorrectors 2;
    rhoMin          rhoMin [ 1 -3 0 0 0 ] 0.5;
    rhoMax          rhoMax [ 1 -3 0 0 0 ] 10;

    residualControl
    {
        p               1e-8;        
        U               1e-8;        
        e               1e-8;        

        // possibly check turbulence fields
           "(k|epsilon|omega)" 1e-8;    
    }
}

relaxationFactors
{
    fields
    {
        p               0.1; //0.1
        rho             0.05; //0.05
    }
    equations
    {
        U               0.7; //0.7
        k        0.7; //0.7
        omega        0.7; //0.7
        e               0.7; //0.7
    }
}
Attached Images
File Type: png Residuen.png (6.6 KB, 31 views)
Werne is offline   Reply With Quote

Old   December 12, 2014, 14:17
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
This is probably caused because the solution of the omega/U equation reaches (is lower than) the absolute limit of the solver set in system/fvSolution, something like
Code:
        tolerance       1e-09;
If you want lower residuals, you have to decrease this value.
Tushar@cfd likes this.
jherb is offline   Reply With Quote

Old   December 16, 2014, 04:27
Default
  #3
New Member
 
Join Date: Feb 2013
Posts: 17
Rep Power: 13
Werne is on a distinguished road
Thank you, decreasing the tolerance solved my problem!

edit: No, it didn't, it just delayed it a bit. Although I decreased the tolerance to 1e-9 it still happened.
Attached Images
File Type: png residuen_2.png (6.4 KB, 21 views)

Last edited by Werne; December 17, 2014 at 05:32.
Werne is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
strange pressure behaviour with symmetricPlane boudary condition - interFoam duongquaphim OpenFOAM Running, Solving & CFD 10 August 20, 2013 14:00
Strange residuals behaviour xxxx Main CFD Forum 1 July 13, 2013 14:40
Strange residuals of the Density Based Solver Pat84 FLUENT 0 October 22, 2012 15:59
kOmegaSST omega residuals strange behaviour zordiack OpenFOAM Running, Solving & CFD 0 August 8, 2012 16:23
Strange Residuals in CCM+ PeterGG Siemens 3 July 27, 2007 12:52


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