CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Average temperature in a portion of my domain

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fcollonv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2012, 10:58
Default Average temperature in a portion of my domain
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Dear 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
samiam1000 is offline   Reply With Quote

Old   November 12, 2012, 15:04
Default
  #2
Member
 
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17
fcollonv is on a distinguished road
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
davcrisp likes this.
__________________
Frederic Collonval
Technische Universität München
Thermodynamics Dpt.
fcollonv is offline   Reply With Quote

Old   November 26, 2012, 05:07
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   November 26, 2012, 07:11
Default Selection in Paraview
  #4
Member
 
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17
fcollonv is on a distinguished road
Hey Samuele

Quote:
Originally Posted by samiam1000 View Post
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 advice you to have a look at the chapter 2.1 of the Paraview tutorial (I have the one for the version 3.12 - you can download it there http://paraview.org/Wiki/The_ParaView_Tutorial )

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
__________________
Frederic Collonval
Technische Universität München
Thermodynamics Dpt.
fcollonv is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 07:36
Computing Average Temperature using DEFINE_ADJUST macro T81 Fluent UDF and Scheme Programming 13 October 16, 2017 07:58
Inlet won't apply UDF and has temperature at 0K! tccruise Fluent UDF and Scheme Programming 2 September 14, 2012 07:08
Average Temperature in Domain haka FLUENT 1 August 17, 2011 07:25
No results for solid domain Gary Holland CFX 10 March 13, 2009 04:30


All times are GMT -4. The time now is 01:27.