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

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, 05:31
Default Add a non-linear equation of state to foam
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
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

Tags
equation of state, jwl, openfoam, perfectgas


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 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


All times are GMT -4. The time now is 15:46.