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

Negative initial temperature T0 in wallboiling case of reactingTwoPhaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 19, 2018, 14:18
Default Negative initial temperature T0 in wallboiling case of reactingTwoPhaseEulerFoam
  #1
New Member
 
Tun
Join Date: Mar 2018
Posts: 12
Rep Power: 8
chengtun is on a distinguished road
I am trying to modify the case of wallBoiling which is OpenFOAM-dev/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling
I only changed the fluid properties and geometry parameters and unfortunately got the bug of Negative initial temperature T0 after some iterative steps.
The initial temperature is 303.15K for both gas and liquid. I tried heat flux q in T.liquid for both zero and several thousand. They all ended in bug of Negative initial temperature. More details are as follows.
--> FOAM FATAL ERROR:
Negative initial temperature T0: -35.6173826

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::hRefConstThermo<Foam::rhoConst<Foam::specie> >; Type = Foam::sensibleEnthalpy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hRefConstThermo<Foam:: rhoConst<Foam::specie> >, Foam::sensibleEnthalpy>]
in file /home/cpx/OpenFOAM/cpx-5.0/OpenFOAM-dev/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 54.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::speci es::thermo<Foam::hRefConstThermo<Foam::rhoConst<Fo am::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:?
#3 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::speci es::thermo<Foam::hRefConstThermo<Foam::rhoConst<Fo am::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:?
#4 Foam::phaseSystem::correctThermo() at ??:?
#5 Foam::ThermalPhaseChangePhaseSystem<Foam::HeatAndM assTransferPhaseSystem<Foam::MomentumTransferPhase System<Foam::twoPhaseSystem> > >::correctThermo() at ??:?
#6 ? at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8 ? at ??:?
Aborted (core dumped)

I tried to set temperature constraints in fvOptions for gas and liquid. The following example is for liquid. But it doesn't work.
temperature_constraints
{
type limitTemperature;
selectionMode all;
active true;
min 273;
max 600;
phase liquid;
}
I also tried to delete the judgment for negative temperature in OpenFOAM-dev/src/thermophysicalModels/specie/thermo/thermo/thermoI.H line 52-57
if (T0 < 0)
{
FatalErrorInFunction
<< "Negative initial temperature T0: " << T0
<< abort(FatalError);
}

But it still shows the same error. I am really confused why this bug appear and why the deletion doesn't work. When I open the file /OpenFOAM-dev/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 54, the judgment has already been deleted.
Could anyone give me a hint? Thanks!
chengtun is offline   Reply With Quote

 


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
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 12:30
Foam::error::printStack after large bounding epsilon events StoneCFD727 OpenFOAM Running, Solving & CFD 1 January 1, 2018 17:04
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
HeatSource BC to the whole region in chtMultiRegionHeater xsa OpenFOAM Running, Solving & CFD 3 November 7, 2016 05:07


All times are GMT -4. The time now is 23:25.