|
[Sponsors] |
Negative Initial Temperature error using rhoPimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2019, 11:16 |
Negative Initial Temperature error using rhoPimpleFoam
|
#1 |
New Member
Saiprahallad,Sunku
Join Date: Jul 2019
Posts: 4
Rep Power: 7 |
Hi People,
Problem statement:- Is to simulate the propagation of a free gaseous jet with 2 inlets One for gas and another for air. Geometry:- A Pipe ( gas inlet ) with a length 200mm and Diameter 26mm and is opening into a chamber ( Air inlet ) of length 1000mm and diameter 285mm. Initial Conditions:- Gas velocity 32 m/s; Air velocity 12 m/s; Temp 300 K; Pressure 1 bar. I tried to simulate using rhoPimpleFoam as I am experiencing the negative initial temp error. I request people for suggestions to overcome this error. Please find the attachment. If anybody needs case setup I can share here. Thank you. |
|
July 19, 2019, 14:12 |
|
#2 |
Member
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15 |
Could you share your thermoTypes? Have you used fvOptions to limit Temperature?
Code:
limitT { type limitTemperature; //region fluid; active yes; limitTemperatureCoeffs { selectionMode all; min 250; max 1000; } } |
|
July 20, 2019, 09:36 |
fvOptions
|
#3 |
New Member
Saiprahallad,Sunku
Join Date: Jul 2019
Posts: 4
Rep Power: 7 |
Hi Jay,
Thank you for replying. Here it is fvSchemes, and fvSolutions. fvSchemes:- /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default backward; } gradSchemes { default Gauss linear; } divSchemes { default none; div(phi,U) Gauss LUST grad(U); div(phi,e) Gauss LUST grad(e); div(phi,K) Gauss linear; div(phiv,p) Gauss linear; div(phi,k) Gauss limitedLinear 1; div(phi,B) Gauss limitedLinear 1; div(phi,muTilda) Gauss limitedLinear 1; div(B) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } // ************************************************** *********************** // fvSolutions /*--------------------------------*- 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; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { "(p|rho)" { solver PCG; preconditioner DIC; tolerance 1e-6; relTol 0.01; } "(p|rho)Final" { $p; relTol 0; } "(U|e|k|nuTilda)" { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-6; relTol 0.01; } "(U|e|k|nuTilda)Final" { $U; relTol 0; } } PIMPLE { momentumPredictor yes; nOuterCorrectors 3; nCorrectors 1; nNonOrthogonalCorrectors 0; pMinFactor 0.5; pMaxFactor 2.0; } relaxationFactors { equations { ".*" 1; } } // ************************************************** *********************** // |
|
July 21, 2019, 23:08 |
|
#4 |
Senior Member
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 12 |
Before you try changing other setup variables, do what Arvind suggested and put that code in a fvOptions file. I have used it to start every thermo job I've done for the last few years.
When the simulation is done, check there are no cells at 250 or 1000 to make sure the limiter is not influencing your real results or something else isn't wrong. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 09:35 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 05:13 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 13:50 |