|
[Sponsors] |
May 11, 2019, 05:31 |
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 |
|
Tags |
equation of state, jwl, openfoam, perfectgas |
|
|
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 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 14:32 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |