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

How to pass the calculated value between the funct-s in EqnofState?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2023, 10:05
Default How to pass the calculated value between the funct-s in EqnofState?
  #1
New Member
 
Elina
Join Date: Jul 2019
Location: Ufa
Posts: 4
Rep Power: 7
Elinka is on a distinguished road
Dear Foamers,
I'm trying to create a new equation of state in src-folder.
In this equation calculation of rho is quite cumbersome, that's why my plan is to pass the calculated value of rho to another thermophysical functions (H, psi, Z) without calling the function like "this->rho(p,T)".

Could you please advise me how to solve this problem in the simplest way?
I will appreciate all your ideas!
Elinka is offline   Reply With Quote

Old   July 28, 2023, 07:06
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Various papers on the extension of the thermodynamics in OpenFoam have been published. Examples are:

[1]: Li, Pan, Kong, Xu, Wang, http://www.sciencedirect.com/science...3Dihub#sec0011 and references cited therein: interesting discussion on how the thermodynamics in implemented in OpenFoam;
[2]: https://github.com/ZhangYanTJU/reactingCanteraFoam
[3]: CoolProp coupling with OpenFoam
[4]: https://github.com/cbunge/coolPropTa...or/tree/master
Elinka likes this.
dlahaye is offline   Reply With Quote

Old   August 4, 2023, 07:10
Default
  #3
New Member
 
Elina
Join Date: Jul 2019
Location: Ufa
Posts: 4
Rep Power: 7
Elinka is on a distinguished road
Thank you, Domenico!
Elinka 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
wallHeatFlux utility for an incompressible case Mr.Jingles OpenFOAM Post-Processing 67 April 6, 2023 04:25
dsmcFoam setup hherbol OpenFOAM Pre-Processing 1 November 19, 2021 02:52
Error in compressibleInterFoam with Viscoelasticity and dynamic mesh rezvani OpenFOAM Running, Solving & CFD 2 December 18, 2020 08:59
Why my calculated epsilon is different from FLUENT calculation? minzhang Fluent Multiphase 14 May 12, 2020 23:53
buoyantBoussineqPimpleFoam Gravity Current Bish OpenFOAM 0 February 1, 2018 10:36


All times are GMT -4. The time now is 04:53.