CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   heat transfer from fluid to a solid (https://www.cfd-online.com/Forums/openfoam-programming-development/152258-heat-transfer-fluid-solid.html)

laurentD April 27, 2015 11:05

heat transfer from fluid to a solid
 
Hi foamers,
i am currently trying to understand how does OpenFOAM calculate the heat flux from a fluid to a solid. I know that the correct relation is : Phi = -h grad T but i don't find the part of the programmed code which is linked to the calculation of the heat flux, or linked to the way does OpenFOAM calculate the value of the h.
Can anybody help me, showing me the way to attain these informations ?
Thank you very much.
Laurent

laurentD May 4, 2015 09:06

Nobody is working with fluid and solid parts ?
I can't believe that...
I just need the location where i can find the calculation of the heat transfer between solid and fluid.
Currently i am searching into the program but if anybody can help me...
Have a good day,
Laurent

niqbal May 4, 2015 09:56

hi laurentD,

you need to be more precise. What kind of flow it is? As there are different approaches for different flows; are you doing multiphase or siingle phase. If that is a single phase and you are looking for heat transfer between solid and fluid you may have a look in solvers chtMultiRegionFoam/solid.

If you are looking for heat transfer from fluid to solid, then you need to look in multiphase solvers and relevant heat transfer models.

laurentD May 4, 2015 10:25

Hi Niqbal,
i work with a single phase flow, and i use the solver chtMultiRegionFoam.
But when i loook into the programs in the directories under chtMultiRegionFoam/ i don't find the one which calculates the heat transfer between my hot fluid and my cold solid, neither under fluid/ nor solid/.
This is why i want to know if there is another location where i should search.
Or maybe the solution is here but i don't recognize it.
Thank you very much for your answer.
Laurent

niqbal May 4, 2015 11:01

hi Laurent,

have a look in ../solid/setRegionSolidFields.H and ../solid/solveSolid.H and energy equation in fluid folder.

Cheers,
Naveed

laurentD May 6, 2015 09:11

I have look these two files. But i am not an expert on C++-programming.
Does it seem that OF use the enthalpy to make the heat transfer ?

laurentD May 6, 2015 10:03

In fact, i am trying to do the following thing :

1/ Do a cinematic calculation with a fluid going inside a solid, without thermic calculations.

2/ Do a thermic job, using results from the first job as inputs (like the h convection coefficient for example).

But i have the impression that the h convection coefficient between fluid and solid isn't calculated by OpenFOAM. Does anybody have an idea to help me to build a job as i want. Maybe using phi ?...

Best regards,
Laurent


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