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

Code for calculation of entropy and Gibbs free energy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2021, 16:00
Default Code for calculation of entropy and Gibbs free energy
  #1
Member
 
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7
sjohn2 is on a distinguished road
OpenFoam thermophysical libraries do not have entropy and Gibbs free energy computed at a volscalarField level. I have added these functionality at heThermo.C to return volScalarFields at the application level

Please check my 2 commits at my github


https://github.com/stanabng2501/dev-...8ae0afa7aceb28

https://github.com/stanabng2501/dev-...1d4836ca4b903f

After the changes, go to src/thermophysicalModels and run ./Allwmake to compile it.


entropy can be accessed by thermo.Se(p,T) and gibbs energy by thermo.G(p,T) at your solver level.


WARNING: This change effects your core source code and can effect multiple solvers. This functionality has not been tested for all solvers, might work for your application, changes made at your own risk.


Stanley
sjohn2 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
Energy Vs Exergy Apple L S Chan Main CFD Forum 14 April 5, 2011 22:45
Entropy from Gibbs and N-S equations JF Main CFD Forum 2 November 27, 2005 12:30


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