|
[Sponsors] |
May 24, 2010, 07:48 |
janafThermo error T=0
|
#1 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
Dear all!
I implemented a combustion model into chtMultiRegionFoam using the janafThermo<equationOfState> (hsPsiMixtureThermo<veryInhomogeneousMixture<suthe rlandTransport<specieThermo<janafThermo<perfectGas >>>>>). Any time when I apply the solidWallMixedTemperatureCoupled BC to couple the solid and fluid regions I get the following error: Code:
--> FOAM FATAL ERROR: attempt to use janafThermo<equationOfState> out of temperature range 200 -> 6000; T = 0 From function janafThermo<equationOfState>::checkT(const scalar T) const in file /home/aa/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 64. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so" #2 Foam::hsPsiMixtureThermo<Foam::veryInhomogeneousMixture<Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > > > >::hs(Foam::Field<double> const&, int) const in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libreactionSensibleEnthalpyThermophysicalModels.so" #3 Foam::mixedEnthalpyFvPatchScalarField::updateCoeffs() in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libbasicThermophysicalModels.so" #4 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::dimensionSet const&) in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libcombustionModels.so" #5 Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::Sp<double>(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libcombustionModels.so" #6 Foam::radiation::radiationModel::Shs(Foam::basicThermo&) const in "/home/aa/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libradiation.so" #7 main in "/home/aa/OpenFOAM/aa-1.6.x/applications/bin/linux64GccDPOpt/chtMultiRegionFireFoam" #8 __libc_start_main in "/lib/libc.so.6" #9 _start at /build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116 (1) The error disappears when any other BC than solidWallMixedTemperatureCoupled is applied at the solid-fluid interface. (2) I checked the values of the solid-fluid interface and internal temperatures and all of them are greater than zero. (3) The error happens at the first time the code enters the sensible enthalpy (hs) equation. (4) The problem appears no matter the combustion model is en- or disabled. Does anybody have made similar experience or have any idea what the problem could be? I greatly appreciat your comments! Best regards, Aram |
|
May 24, 2010, 07:57 |
|
#2 |
Member
MSR CHANDRA MURTHY
Join Date: Mar 2009
Posts: 33
Rep Power: 17 |
it looks like the error relates to lower bound of JANAF table. try with manually changing the lower bound from 200 K to much lower value of about 50 K. initialize the T field above this value. probably this may fix it.
|
|
May 25, 2010, 08:04 |
|
#3 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
hi chandra,
thanks for your comment! I tried to set the the lower temperature to e.g. 50K but the problem persists. From somewhere the checkT-function gets a T-value equal to zero, but only when the mentioned BC is used; I couldn t figure out yet where or how T=0K occurs but I ll keep on digging. regards, aram |
|
May 25, 2010, 10:37 |
|
#4 |
Member
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16 |
Have you already tried the new Janaf model?
|
|
May 25, 2010, 14:16 |
|
#5 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
hi!
i played arround with the initial temperatures of the fluid and solid regions and observed the following: the "solidWallMixedTemperatureCoupled" BC is of type "mixedFvPatchScalarField", switching between "fixedValue" (if heat flux is outgoing) and "fixedGradient" (when flux is incoming) for the T. I figured out that the above mentioned error message from JANAF happens at the moment one of the fluid patches on the solid-fluid intreface is set to "fixedGradient" (no error if all patches ar set to "fixedValue"!). hence, I thought the problem depends on the sign of the heat flux or the T-gradient at the interface (as it governs the switching of the mixed BC) and used a "fixedGradient" BC with different signs of "gradient" for T on the fluid side. no error message was outputed, neither for a positive nor a negative T-gradient. therefore the problem is with the mixed BC in combination with JANAF. I ll keep on digging and report. @cedric: thanks a lot for the hint! I ll have a look at the new JANAF model. regards, aram |
|
May 26, 2010, 10:36 |
|
#6 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
hi all!
finally i found the problem. when using the solidWallMixedTemperatureCoupled BC a mixedEnthalpyFvPatchScalarField is used to calculate the BC for hs when entering the hs-equation. there a refValue() for hs is determined as follows (see mixedEnthalpyFvPatchScalarField.C): refValue() = thermo.hs(Tw.refValue(), patchi); Tw is the temeperature field evaluated by the solidWallMixedTemperatureCoupled BC, where the Tw.refValue() is calculated as (see solidWallMixedTemperatureCoupledFvPatchScalarField .C): Code:
// if outgoing flux use fixed value, else fixed gradient. if (normalGradient()[i] < 0.0) { this->refValue()[i] = operator[](i); this->refGrad()[i] = 0.0; // not used this->valueFraction()[i] = 1.0; nFixed++; } else { this->refValue()[i] = 0.0; // not used; this->refGrad()[i] = normalGradient()[i]; this->valueFraction()[i] = 0.0; } best regards, aram ps: should this be reported as a bug???? |
|
May 27, 2010, 02:30 |
|
#7 |
Member
MSR CHANDRA MURTHY
Join Date: Mar 2009
Posts: 33
Rep Power: 17 |
very nice troubleshooting!!!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
janafThermo: How to read formula? or at least: How to use hPolynomialThermo? | bgoeppner | OpenFOAM | 0 | February 22, 2010 15:17 |
Inconsistent declaration of hConstThermo vs janafThermo | dominik_christ | OpenFOAM Bugs | 6 | October 31, 2008 04:15 |
XiFoam janafthermo error AT | tavasoly | OpenFOAM Running, Solving & CFD | 1 | July 1, 2008 11:15 |