CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   how to define mean temperature in duct flow (

AmirBaqa1987 October 6, 2013 01:57

how to define mean temperature in duct flow
Hi Dear All

for calculating h(convective heat transfer coefficient) I need to calculate mean temperature(bulk temperature) at each section of flow because my case is forced convective duct(internal) flow.

I can use patchAverage utility to define mean temperature but my problem is that I don't know how should I define patches through flow(i mean between inlet and outlet patches)

is there any other way to define mean temperature without defining patches?

do you have any idea?


cfdonline2mohsen October 6, 2013 07:33

You can use Paraview for this purpose.
define your arbitrary slice and calculate the mean temperature on this slice.
see the following post for more info: #8

AmirBaqa1987 October 6, 2013 09:58

first thanks for your reply

in this way I think I should do this procedure 150 times because I want to calculate mean temperature along the axial direction of pipe at 150 different positions ( I've discrete length of pipe into 150 steps) .

can't we write a code to do this?

best regards

nimasam October 6, 2013 10:28

may be you can use paraview programmable filter to do those instructions in a loop

wyldckat October 6, 2013 11:00

Greetings to all!

Have a look at this thread: - it shows a few examples on how to do this directly with OpenFOAM while the simulation is running.

Best regards,

All times are GMT -4. The time now is 10:33.