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

External Aerodynamics Adjoint solver instability

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2019, 05:37
Default External Aerodynamics Adjoint solver instability
  #1
Member
 
Andrew
Join Date: Mar 2018
Posts: 82
Rep Power: 8
Astan is on a distinguished road
Hi guys, i would kindly ask for an advice, i don't know how to solve this stability problem.

I'm running an adjoint simulation on a car.

For the first 500 iteration, the simulation goes in the " right " direction, meaning that the all residuals decrease and the sensitivity does not exhibit any " crazy " behaviour.

From the 500th iteration on, the adjoint pressure residual does not decrease anymore and starts to increase in a monotonic way and so does the continuity error, too.

The checkmesh is ok, the maximum non orthogonality of the mesh is 64.44°.

I would kindly ask if you have any suggestion to solve this problem, the fvscheme and fvsolution are the following:

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

ddtSchemes
{
    default         steadyState; 
}

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

divSchemes
{
    default         none;
    div(-phi,Ua)    Gauss upwind;
    div((nuEff*dev2(T(grad(Ua))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear limited 0.777; 
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         limited 0.777;
}

fluxRequired
{
    default         no;
    p;
    pa;
}


// ************************************************************************* //

// ************************************************************************* //

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

solvers
{
    "(pa)"
    {
        solver          GAMG;
        tolerance       1e-6; // up 900
        //tolerance       1e-8; up 4300
        //tolerance       1e-9;
        relTol          0.001; 
        smoother        GaussSeidel;
        cacheAgglomeration true;
        nPreSweeps      0;
        nPostSweeps     2;
        nCellsInCoarsestLevel 500;
        agglomerator    faceAreaPair;
        mergeLevels     1;

    }

    "(Ua)"
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-8;// up 4300
        //tolerance       1e-9;
        relTol          0.0;
    }

}


SIMPLE
{
    nNonOrthogonalCorrectors 	2;
    pRefCell        		0;
    pRefValue       		0;

    residualControl
    {
       pa               1e-8; 
       Ua               1e-8; 
    }

}

relaxationFactors
{
    fields
    {
        pa                 0.05;
    }
    equations
    {
        Ua                 0.05; // lowering it can solve solver instability at startup
    }
}

// ************************************************************************* //
Astan.

Thanks you for the time spent in this thread, any suggestions are really appreciated
Astan 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
Adjoint solver wing twist optimization!! mechesanjiv FLUENT 10 April 13, 2023 10:21
Fluent adjoint solver; Constant area constraint HHK FLUENT 2 April 12, 2023 07:07
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 08:54
Where is my Adjoint Solver! HashemAlArgha FLUENT 1 August 28, 2016 05:11
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08


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