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

User guide do not match the source code for JANAF method

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2024, 07:08
Default User guide do not match the source code for JANAF method
  #1
New Member
 
Bill
Join Date: Jun 2017
Posts: 15
Rep Power: 9
Bill_Yang is on a distinguished road
Hi All,

I just found that the description of JANAF method to calculate Cp in the user guide does not match the source coude:

1) version: any version of openfoam since openfoam 8

2) descrption of JANAF method in user guide:
Cp = R*(c0+c1*T+c2*T^2+c3*T^3+c4*T^4)

This method is OK as the predicted value using this equation is very close to ansys fluent.

3) the description of JANAF source code to calculate Cp in the file'OpenFOAM-12/src/thermophysicalModels/specie/thermo/janaf
/janafThermoI.H':

Quote:
((((a[4]*T + a[3])*T + a[2])*T + a[1])*T + a[0])
+ EquationOfState::Cp(p, T);
4 )I think these two descriptions are totally different.

Could anyone help with this?

Many thanks

Last edited by Bill_Yang; September 8, 2024 at 07:11. Reason: the original question is not clear enough
Bill_Yang is offline   Reply With Quote

Old   September 9, 2024, 12:10
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 772
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Pls. look into standard textbook in numerical analysis (Numerical Recipies?) on how to avoid underflow / overflow in evaluating polynomials.
dlahaye is offline   Reply With Quote

Old   September 9, 2024, 21:55
Default
  #3
New Member
 
Bill
Join Date: Jun 2017
Posts: 15
Rep Power: 9
Bill_Yang is on a distinguished road
I don't get your point. Could you please give more details?


Quote:
Originally Posted by dlahaye View Post
Pls. look into standard textbook in numerical analysis (Numerical Recipies?) on how to avoid underflow / overflow in evaluating polynomials.
Bill_Yang is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
MapFields utility for staggered grid saeed jamshidi OpenFOAM Running, Solving & CFD 17 January 23, 2024 11:36
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40


All times are GMT -4. The time now is 07:52.