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

Strange chtMultiRegionFoam behaviour - temperature drops during heating

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2016, 17:03
Default Strange chtMultiRegionFoam behaviour - temperature drops during heating
  #1
Member
 
Petr Furmanek
Join Date: Jan 2012
Location: Faenza, Italy
Posts: 66
Rep Power: 14
petr.f. is on a distinguished road
Hi guys,

recently I've been playing with chtMultiRegionFoam but cannot get it to work. My test case is simple - an iron ball hanging in the air with the initial temperature of 300 K over which I blow the air with temperature of 620 K. I'd like to see the ball slowly heating. However in a really short time the temperature in the vicinity of the ball starts to drop and continues dropping towards the absolute zero until the solver diverges. I attach the configuration files - nothing fancy, I've just used the tutorial settings and tweaked them a bit. The mesh is generated in snappy and is of quite a decent quality.

the max Courant Nos I use are
maxCo 0.5;
// Maximum diffusion number
maxDi 10.0;

and for the boundary conditions for temperature I prescribe the standard options for inlet/outlet and for T
fluid region:
domain0_to_ball
{
type compressible::turbulentTemperatureCoupledBaffleMix ed;
value uniform 620;
Tnbr T;
kappaMethod fluidThermo;
}

solid region:
ball_to_domain0
{
type compressible::turbulentTemperatureCoupledBaffleMix ed;
value uniform 300;
Tnbr T;
kappaMethod solidThermo;
}


I've done quite a lot computations with chtMultiRegionSimpleFoam but never seen such a behaviour... So any help would be really appreciated.

Configuration for the fluid region:
fvSchemes
Code:
ddtSchemes
{
    default                   Euler;
}

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

divSchemes
{
    default                   none;
    
    div(phi,U)                bounded Gauss linearUpwindV grad(U);
    
    div(phi,h)                bounded Gauss upwind;
    div(phi,e)                bounded Gauss upwind;
    div(phi,K)                bounded Gauss upwind;
    div(phi,k)                bounded Gauss upwind;
    div(phi,R)                bounded Gauss upwind;
    div(R)                    Gauss linear;
    div(phi,epsilon)          bounded Gauss upwind;
    div(phi,omega)          bounded Gauss upwind;
   div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default                   Gauss linear corrected;
}

interpolationSchemes
{
    default                     linear;
}

wallDist
{
    method meshWave;
}

snGradSchemes
{
    default                   corrected;
}

fluxRequired
{
    default                     no;
    p;
}
fvSolution
Code:
solvers
{
    rho
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-7;
        relTol          0.1;
    }

    rhoFinal
    {
        $rho;
        tolerance       1e-7;
        relTol          0;
    }
    
    "(p_rgh|p)"
    {
        solver           GAMG;
        tolerance        1e-7;
        relTol           1e-2; // def. 1e-2
        smoother         DICGaussSeidel;
        nPreSweeps       0;
        nPostSweeps      2;
        cacheAgglomeration on;
        agglomerator     faceAreaPair;
        nCellsInCoarsestLevel 10;
        mergeLevels      1;
        minIter          2;
        maxIter          50;
    }
    
    p_rghFinal
    {
        $p_rgh;
        tolerance        1e-7;
        relTol           0;
    }    

    "(U|h|e|k|epsilon|omega|R)"
    {
        solver           smoothSolver;
        smoother         DILUGaussSeidel;
        tolerance        1e-7;
        relTol           0.1;//0.01;// def. 0.1;
        nSweeps          2;
    }
    
    "(U|h|e|k|epsilon|omega|R)Final"
    {
        $U;
        tolerance        1e-7;
        relTol           0;
    }
}


PIMPLE
{
    momentumPredictor   on;
    nCorrectors         2;
    nOuterCorrectors    2;
    nNonOrthogonalCorrectors 0;
}


relaxationFactors
{
  rho               1;
  "(p_rgh|p)"       0.7;  
  U                 0.3;
  "(h|e)"           0.3;

  k                 0.8;
  "(epsilon|omega)" 0.8;
}
Configuration for the solid region:
fvSchemes:
Code:
ddtSchemes
{
    default Euler;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
}

laplacianSchemes
{
    default             none;
    laplacian(alpha,h)  Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}
fvSolution
Code:
solvers
{
    h
    {
        solver           PCG;
        preconditioner   DIC;
        tolerance        1e-06;
        relTol           0.1;
    }

    hFinal
    {
        $h;
        tolerance        1e-06;
        relTol           0;
    }
}

PIMPLE
{
    nNonOrthogonalCorrectors 0;
}
P.
petr.f. is offline   Reply With Quote

Old   December 8, 2016, 06:53
Default
  #2
Member
 
Petr Furmanek
Join Date: Jan 2012
Location: Faenza, Italy
Posts: 66
Rep Power: 14
petr.f. is on a distinguished road
Got it solved - the (obvious) error was in usage of the bounded schemes, should anyone be interested...
petr.f. is offline   Reply With Quote

Old   December 23, 2016, 07:03
Default
  #3
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10
manuc is on a distinguished road
@petr.f.
How did u solve this issue , Is it just by using some unbounded schemes?
Thanks
__________________
Regards
Manu
manuc is offline   Reply With Quote

Old   January 24, 2017, 08:54
Default
  #4
Member
 
Petr Furmanek
Join Date: Jan 2012
Location: Faenza, Italy
Posts: 66
Rep Power: 14
petr.f. is on a distinguished road
Just remove the "bounded" keyword. Detailed explanation is here:

http://openfoam.org/release/2-2-0/numerics-boundedness/
petr.f. 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
Strange behaviour when using compressibleInterFoam with constantAlphaContactAngle TobM OpenFOAM Running, Solving & CFD 2 May 11, 2016 07:34
[sprayFoam] strange spray formation behaviour pbalz OpenFOAM Running, Solving & CFD 0 March 23, 2015 12:41
strange pressure behaviour with symmetricPlane boudary condition - interFoam duongquaphim OpenFOAM Running, Solving & CFD 10 August 20, 2013 15:00
Strange residuals behaviour xxxx Main CFD Forum 1 July 13, 2013 15:40
Strange behaviour when using LienCubicKE and NonlinearKEShih hani OpenFOAM Running, Solving & CFD 20 March 6, 2013 11:06


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