CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Question about thermophysical models? (http://www.cfd-online.com/Forums/openfoam-programming-development/105034-question-about-thermophysical-models.html)

lfgmarc July 21, 2012 00:07

Question about thermophysical models?
 
Hi, I have a question about thermophysical models,


I understand that if i.e, the energy variable is enthalpy F=h(T) and dF/dT=Cp(T), in:

Code:

src/thermophysicalModels/specie/lnInclude/specieThermoI.H
my question is where it is defined in the code, that F and dF/dt take these variables as arguments.

I understand also that the energy variable is selected by the thermo model. I.e, if is selected
Code:

eConstThermo
the energy variable is the internal energy, but I can find in the code where is defined F=e(t).

Pd: I have a basic knowledge of C++


Thanks in advance for any hint,


Fg.

Chris Lucas July 23, 2012 03:17

Hi,

the answer is in the same class
src/thermophysicalModels/specie/lnInclude/specieThermoI.H
Have a look at the functions TH(scalar,scalar) and TE(scalar,scalar).

Best Regards,
Christian

DanielJ July 26, 2012 03:57

basicThermo class question
 
Hi I was browsing through basicThermo class an found that this class returns null field when requested for enthalpy.
If understand it correctly this is a dummy enthalpy, that is not connected with temperature field.
Could someone explain this to me?

Chris Lucas July 26, 2012 04:02

Hi,

the function are virtual and get overwriten in the following classes (e.g basicPsiThermo and hPsiThermo ...)

Christian


All times are GMT -4. The time now is 11:35.