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

Speeding up chtMultiRegionSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kandelabr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2019, 05:10
Default Speeding up chtMultiRegionSimpleFoam
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Hello,

is there a way to speed up temperature convergence in chtMultiRegionSimpleFoam? My velocity residuals have converged long ago but the temperature keeps rising, just awfully slowly.

For instance, could I fake density and/or specific heat because it's a steady state case? Increasing nNonOrthogonalCorrectors in solid regions doesn't help.

Thanks!
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Old   October 7, 2019, 05:38
Default
  #2
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8
Carlo_P is on a distinguished road
Yes, there are at least three options:


-change fvSolution file
-change the fvSchemes file
-initialized in a different way the temperature.


The easiest way is to decrease the tollerance or nMinIt of the velocity and pressure in fvSolution and increase the number of iteration or tollerance of the temperature.


Probably you can also increase the relaxation factor of the temperature.


Can you attach the fvSolution file?
Thanks
Carlo_P is offline   Reply With Quote

Old   October 7, 2019, 06:51
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Here is a fvSolution file for fluid region:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1906                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    rho
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-7;
        relTol          0;
    }

    p_rgh
    {
        solver           GAMG;
        tolerance        1e-7;
        relTol           0.01;

        smoother         GaussSeidel;

    }

    "(U|h|k|omega|epsilon|G|Ii|gammaInt|ReThetat)"
    {
        solver           PBiCGStab;
        preconditioner   DILU;
        tolerance        1e-8;
        relTol           0.01;


    }

    "(f|v2)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-07;
        relTol          0.01;
    }

    G
    {
        $p_rgh;
        tolerance       1e-05;
        relTol          0.1;
    }
}

SIMPLE
{
    consistent yes;
    momentumPredictor yes;
    nNonOrthogonalCorrectors 2;

    // pRefCell        0;
    // pRefValue       100000;

    rhoMin          0.5;
    rhoMax          1.5;
}

relaxationFactors
{
    fields
    {
        rho             1.0;
        p_rgh           0.7;
    }
    equations
    {
        U                   0.5;
        h                   0.5;
        "(k|omega|epsilon|f|v2|gammaInt|ReThetat)" 0.7;
        G                   0.7;
        "ILambda.*"         0.7;
        qr                  0.7;
    }
}

// ************************************************************************* //
And here is the solid region:

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
{
    "h.*"
    {
        solver           PCG;
        preconditioner   DIC;
        tolerance        1e-07;
        relTol           0.01;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 10; // faster temperature convergence (?)
}

relaxationFactors
{
    equations
    {
        h 1.0;
    }
}

// ************************************************************************* //
DaveD! likes this.
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Old   October 7, 2019, 07:23
Default
  #4
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8
Carlo_P is on a distinguished road
In the fvSolution of the Solid, you are using 10 Correctors,,normally it is not usefull to use more than 3, but only for very "shitty" mesh.
You can change the relTol, decreasing it.

In this way, you will have a faster convergence for the solid.


You can take a look here:
Conjugate Heat Transfer: slow solid temperature convergence





Normally is also not usefull to use 1 as relaxationFactor. Yes, you will have a faster convergence, but maybe it is unsteable, so in the end you can't reach a good convergence.




Can I aks you to share your project or at least the folders,without the geometry?


I would like to do something like this in the short future.
Carlo_P is offline   Reply With Quote

Old   October 7, 2019, 08:11
Default
  #5
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Here is my complete chtMultiRegionSimpleFoam case. The mesh is made in a separate directory, then I copy mesh files to simulation/ dir.
Check out readme.txt file for more explanations.
Attached Files
File Type: zip fullcht.zip (51.5 KB, 34 views)
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Old   October 7, 2019, 10:17
Default
  #6
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
Change your h relaxation-factor (or e if you intend to solve for that) to 1.0 in all regions. This is the main cause of extremely slow temperature convergence. You basically shouldn't relax temperature unless you need it for stability. And in that case 0.99 should suffice. Another usefull thing is to use

Code:
SIMPLE / or PIMPLE depending on the solver
{
    ...
    frozenFlow yes;
}
This allows you to only solve for the temperature on a velocity field that isn't solved and hence does not change anymore.
Bloerb is offline   Reply With Quote

Old   October 7, 2019, 10:32
Default
  #7
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Thank you, I will try that!
__________________
www.damogranlabs.com
kandelabr 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
[snappyHexMesh] Speeding up snappyHexMesh when using many regions wildfire230 OpenFOAM Meshing & Mesh Conversion 1 March 31, 2022 04:38
Speeding convergence, SRFSimplefoam c_dowd OpenFOAM Running, Solving & CFD 1 March 9, 2016 05:13
speeding up the calculation / iteration in fluent stefenbink FLUENT 0 January 3, 2014 17:59
speeding up vortex shedding Harish Main CFD Forum 2 March 15, 2007 04:24
Speeding up size functions Riaan FLUENT 1 March 20, 2006 10:07


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