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

buoyantPimpleFoam diverges with the negative temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2024, 13:09
Default buoyantPimpleFoam diverges with the negative temperature
  #1
New Member
 
Sina Rahimi
Join Date: Mar 2019
Posts: 2
Rep Power: 0
deathstar is on a distinguished road
Hi,

I want to simulate a 3-D transient of external wind around buildings. The turbulent model was set K-epsilon. I tried to use the buoyantPimpleFoam solver in OpenFOAM 8, and after a few time steps, the solution diverges with the negative temperature error. I want to use buoyantPimpleFoam because I need to apply the Boussinesq approximation. The grid of the computational domain is shown in Figure. The output from checkMesh was OK. I think there is something wrong with pressure; I am not sure! I am new to OpenFoam, and any help would be highly appreciated.
The BCs are attached in the 0 folder, and the other case setups are presented below:

** thermophysical properties:

PHP Code:
thermoType
{
    
type            heRhoThermo;
    
mixture         pureMixture;
    
transport       const;
    
thermo          eConst;
    
equationOfState Boussinesq;
    
specie          specie;
    
energy          sensibleInternalEnergy;
}

mixture
{
    
specie
    
{
        
molWeight       28.9;
    }
    
equationOfState
    
{
        
rho0            1;
        
T0              290;
        
beta            3e-03;
    }
    
thermodynamics
    
{
        
Cv              712;
        
Hf              0;
    }
    
transport
    
{
        
mu              1.8e-05;
        
Pr              0.7;
    }

fvSchemes:

PHP Code:
ddtSchemes
{
    default         
Euler;
}

gradSchemes
{
    default         
leastSquares;
}

divSchemes
{
    default         
none;

    
div(phi,U)      Gauss linearUpwind grad(U);
    
div(phi,e)      Gauss upwind;

    
div(phi,k)      Gauss upwind;
    
div(phi,epsilonGauss upwind;

    
div(phiv,p)     Gauss linear;
    
div(phi,K)      Gauss linear;

    
div(phi,R)          Gauss upwind;
    
div(R)              Gauss linear;
    
div(phi,nuTilda)    Gauss upwind;

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

laplacianSchemes
{
    default         
Gauss linear corrected;
}

interpolationSchemes
{
    default         
linear;
}

snGradSchemes
{
    default         
corrected;

fvSolution:

PHP Code:
solvers
{
    
"rho.*"
    
{
        
solver          diagonal;
    }

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

        
smoother         DICGaussSeidel;
    }

    
p_rghFinal
    
{
        
$p_rgh;
        
relTol          0;
    }

    
"(U|e|k|epsilon)"
    
{
        
solver          smoothSolver;
        
smoother        symGaussSeidel;
        
tolerance       1e-05;
        
relTol          0.1;
    }

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

PIMPLE
{
    
momentumPredictor no;
    
nOuterCorrectors 1;
    
nCorrectors     2;
    
nNonOrthogonalCorrectors 2;

    
pRefCell        0;
    
pRefValue       0;


Thank you!0.zip

1224.jpg

1324.jpg

1424.jpg

Last edited by deathstar; February 2, 2024 at 15:04.
deathstar 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
negative initial temperature/ exceeded number of max. iteratons PSander OpenFOAM Running, Solving & CFD 0 July 12, 2020 12:37
UDF to Define Temperature Dependent Negative Heat Source ATIKADAR Fluent UDF and Scheme Programming 1 September 23, 2019 03:52
Negative temperature and pressure in sonicFoam :O gallon OpenFOAM Running, Solving & CFD 16 January 21, 2019 05:56
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56


All times are GMT -4. The time now is 20:38.