CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   [CFD POST ] Averaging Values for one direction (http://www.cfd-online.com/Forums/cfx/87712-cfd-post-averaging-values-one-direction.html)

max3.2 April 27, 2011 07:49

[CFD POST ] Averaging Values for one direction
 
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

stumpy April 27, 2011 09:39

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.

max3.2 April 27, 2011 10:11

Quote:

Originally Posted by stumpy (Post 305289)
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 (Post 305289)
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)

max3.2 April 28, 2011 10:37

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..

max3.2 May 4, 2011 03:49

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.

ghorrocks May 4, 2011 07:23

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.

max3.2 May 4, 2011 14:15

Hi,

CFX supported me with a session file doing so.

Max


All times are GMT -4. The time now is 14:41.