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

attempt to use janafThermo<equationOfState> out of temperature range 300 -> 3000

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Amirreza_pro
  • 2 Post By NLeb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2022, 14:02
Default attempt to use janafThermo<equationOfState> out of temperature range 300 -> 3000
  #1
Member
 
Amirreza Niazmehr
Join Date: Nov 2018
Posts: 40
Rep Power: 7
Amirreza_pro is on a distinguished road
Hey guys
I hope that you are doing well.

I have a problem with ''Janaf thermo error''.

I'm using reactingFoam in openFoam and get Janaf thermo error.
My case is that, I changed the mechanism in openaFoam and used my mechanism with 41 species, I could convert my chemkin files with the help of chemkintoFoam command succesfully.
But when I run the simulation I get also same error:
attempt to use janafThermo<equationOfState> out of temperature range 300 -> 3000;

Is there a way to resolve this problem ?

All the best
Amirreza
ajithnair likes this.
Amirreza_pro is offline   Reply With Quote

Old   January 22, 2022, 05:16
Default
  #2
New Member
 
Nik
Join Date: Apr 2021
Posts: 7
Rep Power: 5
NLeb is on a distinguished road
Sounds like you're using JANAF coefficients in your thermophysicalProperties file, and at some point in your simulation, the temperature goes below 300K or above 3000K. These limits are specified by the user with Tlow and Thigh in the relevant thermo dictionary.

Here's an example of O2's JANAF entry from $FOAM_TUTORIALS/combustion/reactingFoam/laminar/counterFlowFlame2D/ where the JANAF coefficients are found in constant/thermo.compressibleGas (it might be a different file for you)
Code:
thermodynamics
    {
        Tlow            200;
        Thigh           5000;
        Tcommon         1000;
        highCpCoeffs    ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 );
        lowCpCoeffs     ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 );
    }
Here, Tlow is 200 and Thigh is 5000 - these are the lower and upper bounds for validity of the polynomial coefficients specified in highCpCoeffs and lowCpCoeffs. OpenFOAM halts execution and throws an error if it ever sees a temperature outside of this range.

So you have a few options:
  • Find a different set of JANAF coefficients which are valid for the temperature range you need
  • Use a different thermo method instead of JANAF
  • Adjust your simulation such that the temperature never goes outside the current Tlow and Thigh you have

More information about JANAF here: https://openfoamwiki.net/index.php/Contrib/Janaf

If you want to see exactly what the JANAF code is doing (in v2012), see this: https://www.openfoam.com/documentati...hermoI_8H.html

Hope this helps!
Amirreza_pro and ajithnair like this.
NLeb is offline   Reply With Quote

Old   January 24, 2022, 02:16
Default
  #3
Member
 
Amirreza Niazmehr
Join Date: Nov 2018
Posts: 40
Rep Power: 7
Amirreza_pro is on a distinguished road
Thanks foy your reply dear NLeb
Amirreza_pro is offline   Reply With Quote

Old   February 26, 2023, 22:30
Default
  #4
New Member
 
xinyu
Join Date: Apr 2022
Posts: 24
Rep Power: 4
lliyuu is on a distinguished road
I have been troubled by the same problem for several months, who can help me, thank you very much.
lliyuu is offline   Reply With Quote

Old   March 1, 2023, 11:38
Default
  #5
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Nik summarises your options pretty clearly. My advice is to certainly employ #3, ie use the limitTemperature FO to keep the temperature within bounds during any initial transients. That certainly works well for me.
Tobermory is offline   Reply With Quote

Old   March 1, 2023, 20:59
Default
  #6
New Member
 
xinyu
Join Date: Apr 2022
Posts: 24
Rep Power: 4
lliyuu is on a distinguished road
Thank you for your reply. In fact, I have used the limitTemperature method, but it has no effect. When the temperature reaches the upper or lower limit of the temperature I set, the simulation will stop.
lliyuu 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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 09:21
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Inlet won't apply UDF and has temperature at 0K! tccruise Fluent UDF and Scheme Programming 2 September 14, 2012 06:08
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07
Residence time per temperature range Roman FLUENT 0 February 16, 2000 01:58


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