CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Cv/Cp in Openfoam 8? (https://www.cfd-online.com/Forums/openfoam-solving/238018-cv-cp-openfoam-8-a.html)

Clau.77 August 18, 2021 08:00

Cv/Cp in Openfoam 8?
 
Hey guys!


So i measured some Cp values, got a polynomial function and now want to use it for my solid region in my multiregion case.


I noticed, that in OF8 the input value is Cv and not Cp. Do i need to calculate the cv values first? (I mean cv = cp-R). Or is OF allready doing that by itself since I the molar Mass is also given in the thermodynamicProperties file?


Please don't tell me to look into the code, i tried that but sinde i am not familiar with C++ (or programming in general) it is super confusing for me.


I'd appreciate some help here :)

Yann August 18, 2021 10:17

Hi Claudia,

This is related to the fact the energy form for solids has been switched from sensibleEnthalpy to sensibleInternalEnergy in OpenFOAM 8 : https://github.com/OpenFOAM/OpenFOAM...d30ec6916e73a1

Since the cases use sensibleInternalEnergy now, Cv is used instead of Cp. (see documentation here)

You can either switch you solid back to sensibleEnthalpy or keep it this way and use Cv values.

Since solids are usually considered incompressible, I am not sure there is a significant difference between Cp and Cv.


I hope this helps,
Yann


All times are GMT -4. The time now is 03:12.