adhiraj-dasgupta / unsupportedContribOF23x

This repository contains code that I develop within the framework of OpenFOAM 2.3.x, either for my work, or as a hobby.
GNU General Public License v3.0
11 stars 9 forks source link

sensible enthalpy #1

Open mhansinger opened 5 years ago

mhansinger commented 5 years ago

Hi, Thanks for sharing the code! Do you know if it is possible to call the sensible enthalpy on solver level, e.g. from the basicMultiComponentMixture as you do it in: https://github.com/adhiraj-dasgupta/unsupportedContribOF23x/blob/master/src/laminarTransport/laminarTransport/laminarTransport.C#L520

some how this function seems to work only inside the library...?

adhiraj-dasgupta commented 5 years ago

Would something like this work? `basicMultiComponentMixture& composition = thermo.composition();

const scalar p0 = 1.0e+05; // pressure

const scalar T0 = 300.0; // temperature

const scalar specieI = 1; // species index

scalar hs = composition.Hs(specieI, p0, T0); `