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

Report "negative initial temperature T0" when using compressibleInterFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By The King

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2018, 00:22
Default Report "negative initial temperature T0" when using compressibleInterFoam
  #1
New Member
 
Zhanyuan Wang
Join Date: Sep 2018
Location: China
Posts: 9
Rep Power: 8
Zhanyuan Wang is on a distinguished road
Hello,
I m a new learner of OF and I m trying to simulating supercritical (high-temperature and high-pressure) spray characteristics using compressibleInterFoam. When i run the case, it always broke down after only a few steps and report like that:

[0]
[4] [1]
[4]
[4] --> FOAM FATAL ERROR:
[4] Negative initial temperature T0: -1496.0858
[4]
[4] From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hPolynomialThermo<Foam::icoPolynomial<Foam:: specie> >; Type = Foam::sensibleInternalEnergy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hPolynomialThermo<Foam ::icoPolynomial<Foam::specie> >, Foam::sensibleInternalEnergy>]
[4] in file /home/wzy/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 54.

Because i m a new learner, i just simply copy most part of the tutorial case and modified some details. The tutorial case uses laminar model, const thermo type, hConst transport type and perfectFuild model and i changed them to LES model, polynomial, hPolynomial and icoPolynomial. I dont know if it caused the problem. Did i set wrong BC values, wrong fvSchemes or wrong time steps? Is there any problem with my mesh? Need i modify the source code of this solver?

My case is in the attachment and I will be grateful very very very much for anyone who can offer help.
Attached Files
File Type: gz wzy.tar.gz (3.5 KB, 48 views)
Zhanyuan Wang is offline   Reply With Quote

Old   November 14, 2018, 04:58
Default
  #2
Member
 
Arnout
Join Date: Nov 2010
Posts: 46
Rep Power: 16
The King is on a distinguished road
Hi!

did you found a solution? Got the same...

The King
The King is offline   Reply With Quote

Old   November 14, 2018, 05:13
Default
  #3
Member
 
Arnout
Join Date: Nov 2010
Posts: 46
Rep Power: 16
The King is on a distinguished road
Hi,

Found the answwer in on this forum. I changed the pressure from 0 (guage) to 1atm (1e5) and the p_rgh file since the case is compressible and than you need absolute pressures in the calculations.

Simulation running without any problem now.

The King
jiejie, febriyan91 and sk_malladi like this.
The King is offline   Reply With Quote

Reply

Tags
compressibleinterfoam, negative temperature, spray injection, wrong solution


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
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 06:49
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Wrong fluctuation of pressure in transient simulation caitao OpenFOAM Running, Solving & CFD 2 March 5, 2015 22:33
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34


All times are GMT -4. The time now is 16:06.