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

buoyantBoussinesqPimpleFoam natural convection case courant number blows up

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2019, 20:12
Default buoyantBoussinesqPimpleFoam natural convection case courant number blows up
  #1
New Member
 
Cham Yang Han
Join Date: Dec 2018
Posts: 14
Rep Power: 7
cfd1609496 is on a distinguished road
Hi Foamers,
the solution was all fun and games until stop running after 1020s because the courant number blows up.

Below is my geometry, right arrow shows heatedWall(315celsius), left arrow shows wall (300celsius). Top and bottom big box are 'atmosphere' i trying to simulate, i may not catch the correct b.c. yet tho:https://drive.google.com/open?id=1G4...53g986ClGk3f2g


fvSchemes:

Code:
ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;

    div(phi,U)      Gauss linearUpwind grad(U);
    div(phi,T)      Gauss limitedLinear 1;

    turbulence      Gauss limitedLinear 1;
    div(phi,k)      $turbulence;
    div(phi,epsilon) $turbulence;

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

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}
fvSolution:
Code:
solvers
{
    p_rgh
    {
        solver          GAMG;
        smoother        DIC;
        tolerance       1e-8;
        relTol          0.01;
    }

    p_rghFinal
    {
        $p_rgh;
        relTol          0;
    }

    "(U|T|k|epsilon)"
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-8;
        relTol          0.01;
    }

    "(U|T|k|epsilon)Final"
    {
        $T;
        relTol          0;
    }

}


PIMPLE
{
    momentumPredictor no;
    nNonOrthogonalCorrectors 0;
    nCorrectors       2;
    pRefCell          0;
    pRefValue         0;
}

relaxationFactors
{
    equations
    {
        ".*"   1.0;
    }
}
from time 0 to 540 it was fine, should be acceptable convection look like this below...but start from somewhere 600+ the result seems weird and until last 1020s whole domain shows full velocity....???

time 540s:
https://drive.google.com/open?id=1ad...u5DYM4xcj-XPzh

time 640s:
https://drive.google.com/open?id=1-e...E1f9Dpi9Yyfr3T

time 960s:
https://drive.google.com/open?id=1Bf...Mzh1iaLDHPQIf6

time 1020s:
https://drive.google.com/open?id=1n9...50kGgpv8NjOQVf

would be so kind of you to help gives some idea to me


Many thanks,
Cham
cfd1609496 is offline   Reply With Quote

Old   July 17, 2019, 21:48
Default
  #2
Member
 
Obi
Join Date: Jul 2016
Location: Canada
Posts: 45
Rep Power: 10
obiscolly50 is on a distinguished road
Are you using fixed or adjustable timestep?
obiscolly50 is offline   Reply With Quote

Old   July 18, 2019, 02:43
Default
  #3
New Member
 
Cham Yang Han
Join Date: Dec 2018
Posts: 14
Rep Power: 7
cfd1609496 is on a distinguished road
Quote:
Originally Posted by obiscolly50 View Post
Are you using fixed or adjustable timestep?



should be fixed right?




Code:
application     buoyantBoussinesqPimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         2000;

deltaT          0.005;

writeControl    runTime;

writeInterval   20;

purgeWrite      0;

writeFormat     binary;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;


runTimeModifiable true;

functions
{
    #includeFunc residuals
    #includeFunc streamlines
}
cfd1609496 is offline   Reply With Quote

Old   July 18, 2019, 07:59
Default
  #4
Member
 
Obi
Join Date: Jul 2016
Location: Canada
Posts: 45
Rep Power: 10
obiscolly50 is on a distinguished road
Not necessarily. You can try using an adjustable time step and set the maximum courant number (maxCo) to 1. Check some of the openfoam tutorials on how to do this.
obiscolly50 is offline   Reply With Quote

Old   July 18, 2019, 08:13
Default
  #5
New Member
 
Cham Yang Han
Join Date: Dec 2018
Posts: 14
Rep Power: 7
cfd1609496 is on a distinguished road
Quote:
Originally Posted by obiscolly50 View Post
Not necessarily. You can try using an adjustable time step and set the maximum courant number (maxCo) to 1. Check some of the openfoam tutorials on how to do this.
Thank you Obi! I will try it out first and see how
cfd1609496 is offline   Reply With Quote

Old   July 22, 2019, 05:47
Default
  #6
New Member
 
Cham Yang Han
Join Date: Dec 2018
Posts: 14
Rep Power: 7
cfd1609496 is on a distinguished road
Quote:
Originally Posted by obiscolly50 View Post
Not necessarily. You can try using an adjustable time step and set the maximum courant number (maxCo) to 1. Check some of the openfoam tutorials on how to do this.

Hi Obi,
i tried with adjustable timestep with max Co number= 1 and even with max Co number= 3...the solver stop somewhere around 60s and 40s. This means theres something wrong with the fvSchemes and fvSolutions, or maybe the /0 files?
cfd1609496 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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 10:23
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 16:03
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01


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