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

CHT transient solver not converged beacuse of temperature dependent density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2021, 07:32
Default CHT transient solver not converged beacuse of temperature dependent density
  #1
New Member
 
lee wei
Join Date: Dec 2020
Posts: 11
Rep Power: 5
KKlee is on a distinguished road
Hi, Foamers,
I encountered a non converged problem when I used chtMultiRegionFoam for a steadystate solution.

The geometry is shown as the attached geometry picture,except for the hydrogen flow channel, the others are solid structures. when I set the Hydrogen density as constant, the case runs well, but when I changed it to a polynominal formal, the case will crashed because of the negative temperature. (For simplicity, I did not turn on the heat source)
fvScheme fvSolution and thermalProperties settings of Hydrogen are as following:
fvScheme:
Code:
ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;


    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,h)      Gauss limitedLinear 1;
    turbulence      Gauss limitedLinear 1;
    div(phi,k)      $turbulence;
    div(phi,epsilon) $turbulence;
    div(phi,omega) $turbulence;
    div(phi,K) $turbulence;

    div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear limited 0.5;
    //laplacian((rho*nuEff),U)    Gauss linear corrected;
    //laplacian(alphaEff,h)       Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
}

wallDist
{
    method meshWave;
}
fvSolution:
Code:
solvers
{
    rho
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-7;
        relTol          0.1;
    }

    rhoFinal
    {
        $rho;
        tolerance       1e-7;
        relTol          0;
    }

    p_rgh
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-8;
        relTol          0.01;

    }
/*
    p_rgh
    {
        solver           GAMG;
        tolerance        1e-7;
        relTol           0;

        smoother         GaussSeidel;

    }


    p_rgh
    {
        solver           PCG;
        preconditioner
	{
        preconditioner	GAMG;
        tolerance        1e-7;
        relTol           0;
	nVcycles 	 2;
        smoother         DICGaussSeidel;
	nPreSweeps	2;
	nPostSweeps	2;
	nFinestSweeps	2;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels     1;	
	}
        tolerance        1e-7;
        relTol           0;
        maxIter          100;
    }
*/
    p_rghFinal
    {
        $p_rgh;
        tolerance        1e-7;
        relTol           0;
    }
    "(U|h|k|epsilon|R)"
    {
        solver           PBiCGStab;
        preconditioner   DILU;
        tolerance        1e-7;
        relTol           0.1;
    }

    "(U|h|k|epsilon|R)Final"
    {
        $U;
        tolerance        1e-7;
        relTol           0;
    }
}

PIMPLE
{
    momentumPredictor   yes;
    nCorrectors         4;
    nNonOrthogonalCorrectors 2;
    rhoMax          57.26;
    rhoMin          0.348388;
    pRefCell          0;
    pRefValue         4e6;
}

relaxationFactors
{
    equations
    {
        "h.*"           1;
        "U.*"           0.7;
    }
    fields
    {
        rho             1;
        p_rgh           0.3;
    }
}
}
thermalproperties:
Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       polynomial;
    thermo          hPolynomial;
    equationOfState icoPolynomial;
    specie          specie;
    energy          sensibleEnthalpy;
}


mixture
{
    // coefficients for Hydrogen

    specie
    {
        molWeight       2;
    }
    equationOfState
    {
     //   rhoCoeffs<8>    ( 2 0 0 0 0 0 0 0 );
        rhoCoeffs<8>    ( 2.028571 -0.000029 0 0 0 0 0 0 );
    }
    thermodynamics
    {
        Hf              0;
        Sf              0;
        CpCoeffs<8>     ( 19304 -21.912 3.3433e-2 -2.1053e-5 5.8506e-9 -5.4377e-13 0 0 );
    }
    transport
    {
        muCoeffs<8>     ( 4.3563e-6 1.3319e-8 -2.0504e-12 3.2893e-16 -1.5746e-20 0 0 0 );
        kappaCoeffs<8>  ( 0.21475  -4.5995e-4 1.2216e-6 -6.9773e-10 1.3786e-13 0 0 0 );
    }
}
The 0 and log files are provided in the attached zone.
Any comments or suggestions are welcome since I've been stuck here for too long. Thanks in advance.
lee
Attached Images
File Type: png structure.png (86.2 KB, 11 views)
Attached Files
File Type: zip 0.zip (20.0 KB, 2 views)
File Type: txt log.txt (91.1 KB, 6 views)
KKlee is online now   Reply With Quote

Old   March 1, 2022, 09:21
Default
  #2
New Member
 
Praharsha Reddy
Join Date: Dec 2019
Posts: 12
Rep Power: 6
lonewanderer is on a distinguished road
Hi Lee,

1. Check if you defined interfaces correctly. Because after seeing your log file i observed that there are missing interfaces.

2. Please also check boundary conditions.
3. Turn off functions inside controlDict.
lonewanderer 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
2 Questions about Density Based Solver rap7or FLUENT 3 August 3, 2018 02:40
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 17:00
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Warning 097- AB Siemens 6 November 15, 2004 04:41
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


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