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

Implementing NASA 9 Polynomials in janaf thermo model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By überschwupper

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2023, 08:42
Default Implementing NASA 9 Polynomials in janaf thermo model
  #1
New Member
 
Nathuram Godse
Join Date: Mar 2023
Posts: 1
Rep Power: 0
hn00 is on a distinguished road
I am using OpenFOAM-v1706 and I wanna implement NASA 9 polynomials into the janaf thermo model, which currently takes only NASA 7. Is there an easy way to do that by editing and compiling src files?

Also, if there isn't, how to give Cp as a function of temperature?

Thank you.
hn00 is offline   Reply With Quote

Old   March 20, 2023, 11:50
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Sounds like you need to implement your own version of the Janaf class, updating the member functions to use 9 coeffs instead of 7. You can then compile this as your own user library. Shouldn't be too tricky.
Tobermory is offline   Reply With Quote

Old   March 28, 2023, 02:38
Default
  #3
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4
überschwupper is on a distinguished road
I agree with Tobermory. Adding to this, do this in your personal environment ($FOAM_USER_LIBBIN) otherwise you will compromise your OpenFoam installation. Copy the janaf Folder to your own OF directory, rename it to janaf9 or whatever and modify the file with the inline functions (i think it was janafI.H) to match with the JANAF 9 polynomials. Keep in mind that you have to update Cp, Enthalpy and Entropy and reference in there.
Tobermory likes this.
überschwupper 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
Multiphase Flow - Implementing AIAD model saviosas CFX 8 July 24, 2020 15:22
WLF from OF7 Pisolino85 OpenFOAM 2 April 26, 2020 06:34
compile of new combination of property in thermophisicalpropery milad653279 OpenFOAM Running, Solving & CFD 4 April 6, 2017 04:35
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 19:42


All times are GMT -4. The time now is 02:11.