- **OpenFOAM Running, Solving & CFD**
(*https://www.cfd-online.com/Forums/openfoam-solving/*)

- - **Searching for the thermal energy equation**
(*https://www.cfd-online.com/Forums/openfoam-solving/63887-searching-thermal-energy-equation.html*)

Searching for the thermal energy equationHi,
I am looking for the thermal energy equation in OF and so far I was not able to find the right file. I assume that it has to be somewhere in the buoyantFOAM solver tree is that right? Please give me a hint :) - harly |

you are right...i think it gets mentioned in line 73 of buoyantfoam.C
# include heqn.h the code is described here: http://foam.sourceforge.net/doc/Doxy...8H-source.html, 00001 { 00002 fvScalarMatrix hEqn 00003 ( 00004 fvm::ddt(rho, h) 00005 + fvm::div(phi, h) 00006 - fvm::laplacian(turbulence->alphaEff(), h) 00007 == 00008 dpdt 00009 + fvc::div(phi/fvc::interpolate(rho)*fvc::interpolate(p)) 00010 - p*fvc::div(phi/fvc::interpolate(rho)) 00011 ); 00012 00013 hEqn.relax(); 00014 hEqn.solve(); 00015 00016 thermo->correct(); 00017 } |

Thanks a lot - somewhat I went over these equation, because the one I am looking for was supposed to look different.
Is there a difference in Thermal energy equation and thermal diffusion equation ? I would have expected, that the velocity would be in the equations - it should have a similar structure than the energy equation itself, but with the thermal energy, which I guess is h (enthalpy) because it is h(T) - right ? I am confused - can someone help out ? - harly |

All times are GMT -4. The time now is 18:45. |