# [CFD POST ] Averaging Values for one direction

 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 27, 2011, 07:49 [CFD POST ] Averaging Values for one direction #1 Member   Max Join Date: Apr 2011 Posts: 47 Rep Power: 8 Hello, I've got a little Problem with Post. I am simulating a Channel Flow where x is flow direction, y is depth and z is height. For calculating some loss coeffs (a quotient of different pressures), I used the areaAve expression at different Planes in x-normal-direction before and behind a blade profile, and so getting a constant value. Now I'm trying the following: With still fixed x-value (the Plane Location), I want to average the variable value (TotalPressure) in the y-direction for every height (z) for plotting a loss coeffs vs. channel height chart. I cant find a y-average function or something like that....can anybody help? Thanks in advance. Best Regards Max

 April 27, 2011, 09:39 #2 Senior Member   Join Date: Apr 2009 Posts: 532 Rep Power: 14 I guess you could create line objects rather than planes, then use the lengthAve function. Note that when averaging Total Pressure you should use massFlowAve, not areaAve. areaAve can be used for Static Pressure.

April 27, 2011, 10:11
#3
Member

Max
Join Date: Apr 2011
Posts: 47
Rep Power: 8
Quote:
 Originally Posted by stumpy Note that when averaging Total Pressure you should use massFlowAve, not areaAve. areaAve can be used for Static Pressure.
Thanks for the hint =)

Quote:
 Originally Posted by stumpy I guess you could create line objects rather than planes, then use the lengthAve function.
If i get what you mean: Yes, i can create lines with z,x=const and the use lenght average on each. then create a plot with the linevalues. the experimental data i have to compare to deals with approx. 100 values, also, there is a thesis with a plot with a lot more points (curves are really smooth).
isnt there a way to do this auto? i thought about integrating and dividing by the (constant) lenght. but i still cant find a way to do it so i get an exp oder var which is only a f(z)

 April 28, 2011, 10:37 #4 Member   Max Join Date: Apr 2011 Posts: 47 Rep Power: 8 Nobody? Isnt there any way to "collapse" plane values (yAve()@Plane, etc..) to eliminate the y-coord? Or any other way to extract such data,even to a dat file or smth..

 May 4, 2011, 03:49 #5 Member   Max Join Date: Apr 2011 Posts: 47 Rep Power: 8 A little bit of news: I contacted CFX Support and maybe getting an answer soon. It seems that there is a Script doing it. I will post a solution if there's one.

 May 4, 2011, 07:23 #6 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 13,805 Rep Power: 107 Use the record session option in CFD-Post to record a few steps like making a plane and extracting values. Then edit the session file and insert some perl and you have it.

 May 4, 2011, 14:15 #7 Member   Max Join Date: Apr 2011 Posts: 47 Rep Power: 8 Hi, CFX supported me with a session file doing so. Max

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Joseph CFX 14 April 20, 2010 15:45 starcd_learner Siemens 0 February 1, 2006 12:24 Cb Siemens 3 March 11, 2005 14:40 Joe Bryant FLUENT 2 October 18, 2004 04:17 Abhijit Tilak Main CFD Forum 0 April 26, 2004 11:59

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