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

Negative Initial Temperature error using rhoPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2019, 11:16
Smile Negative Initial Temperature error using rhoPimpleFoam
  #1
New Member
 
Saiprahallad,Sunku
Join Date: Jul 2019
Posts: 4
Rep Power: 7
saip is on a distinguished road
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.
Attached Images
File Type: jpg Capture.jpg (93.9 KB, 44 views)
saip is offline   Reply With Quote

Old   July 19, 2019, 14:12
Default
  #2
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
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;
	}
}
arvindpj is offline   Reply With Quote

Old   July 20, 2019, 09:36
Default fvOptions
  #3
New Member
 
Saiprahallad,Sunku
Join Date: Jul 2019
Posts: 4
Rep Power: 7
saip is on a distinguished road
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;
}
}

// ************************************************** *********************** //
saip is offline   Reply With Quote

Old   July 21, 2019, 23:08
Default
  #4
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 12
pete20r2 is on a distinguished road
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.
pete20r2 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
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


All times are GMT -4. The time now is 14:24.