|
[Sponsors] |
Implementing NASA 9 Polynomials in janaf thermo model |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 19, 2023, 08:42 |
Implementing NASA 9 Polynomials in janaf thermo model
|
#1 |
New Member
Nathuram Godse
Join Date: Mar 2023
Posts: 1
Rep Power: 0 |
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. |
|
March 20, 2023, 11:50 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14 |
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.
|
|
March 28, 2023, 02:38 |
|
#3 |
Member
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4 |
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.
|
|
|
|
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 |