|
[Sponsors] |
May 11, 2019, 05:32 |
Add a non-linear equation of state to foam
|
#1 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Hi foamers,
I want to add a non-linear equation of state (JWL) to foam to use in sonicFoam. In this equation, I need to calculate rho, Cp, h, s, psi, Z, and cpMcv and some functions such as: correct (which is used in EEqn.H: thermo.correct() ) pThermo(which is used in createFields.H: thermo.pThermo() ) p (which is used in createFields.H: thermo.p() ) rho (which is used in createFields.H: thermo.rho() ) he (which is used in createFieldRefs.H: thermo.he() ) psi (which is used in createFieldRefs.H: thermo.psi() ) But JWL is non-linear and calculation of parameters are not as easy as perfectGas! However, I have calculated rho using Newton method in rho() function. But I don't know how to calculate the others! Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 22:43 |
Using createPatch and cyclicAMI in FOAM Extend to create periodicbox | manuc | OpenFOAM Running, Solving & CFD | 1 | April 12, 2022 12:36 |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 12:32 |
Bubble Foam momentum equation | balkrishna | OpenFOAM Programming & Development | 23 | October 12, 2015 06:34 |