- **OpenFOAM**
(*https://www.cfd-online.com/Forums/openfoam/*)

- - **Average temperature in a portion of my domain**
(*https://www.cfd-online.com/Forums/openfoam/109204-average-temperature-portion-my-domain.html*)

Average temperature in a portion of my domainDear All,
I am trying to figure out if-and-how it is possible to evaluate the avarage temperature in a certain zone of my domain (i.e. in all the cells with x < x_0). Could anyone help? Thanks a lot |

Hey Samuele,
Do you want the average in time for a portion of your domain or the average in space of a portion of your domain?? In the first case look in src/postProcessing/functionObjects/field/fieldAverage/fieldAverage/fieldAverage.H In the second case look in src/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.H The function object system will save you ;) Or you can do it in ParaView, Selecting the wanted cells then applying the filter "Integrate variables" on that selection. Good luck Frederic |

Hi Frederic and thanks for answering.
Actually, I don't know why, but I got the notification of your asnwer today. Sorry. Anyway, I am looking for the mean in space. The point is that "integrate variable" in paraview doesn't work (better, I am not able to make it work!).. I'll try a bit more and then I will move on the function. Thanks a lot, Samuele |

Selection in ParaviewHey Samuele
Quote:
Then apply the filter "Integrate variables" on the selection. In the spreadsheet, switch attribute from Point Data to Cell Data. Then to have the volume average of T, divide the value under the T column by the Volume. Good luck, Frederic |

All times are GMT -4. The time now is 17:42. |