|
[Sponsors] |
Code for calculation of entropy and Gibbs free energy |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 27, 2021, 16:00 |
Code for calculation of entropy and Gibbs free energy
|
#1 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
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 |
|
|
|
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 |