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

Add a non-linear equation of state to foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2019, 04:32
Default Add a non-linear equation of state to foam
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
alimea is on a distinguished road
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
alimea 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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
Using createPatch and cyclicAMI in FOAM Extend to create periodicbox manuc OpenFOAM Running, Solving & CFD 1 April 12, 2022 11:36
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 04:20
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
Bubble Foam momentum equation balkrishna OpenFOAM Programming & Development 23 October 12, 2015 05:34


All times are GMT -4. The time now is 19:49.