# Averages in an homogeneous direction

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

 April 1, 2004, 10:41 Dear Sirs, Is there an easy #1 luiz Guest   Posts: n/a Dear Sirs, Is there an easy way of extracting averages in an homogeneous direction (z, for instance) for some resolved variables? Tnaks, Luiz

 February 3, 2006, 11:39 I'm trying to make the channel #2 Senior Member   Maka Mohu Join Date: Mar 2009 Posts: 305 Rep Power: 9 I'm trying to make the channelOodles average channel data in the x and z directions (periodic). I tried to modify Probe.C to make SpaceAverage.C. I came to the point where I need to know how can I call: (1) (x, y, z) of all cell nodes (2) loop over all node values of U, p in (x or z direction). I would be grateful if you can point to a part of the code where I can learn how to access the data structure to achieve such objective. best regards, Maka

 February 3, 2006, 11:54 Hmm, you might want to try "po #3 Senior Member   Eugene de Villiers Join Date: Mar 2009 Posts: 725 Rep Power: 12 Hmm, you might want to try "postChannel". Not sure exactly what it does, but I think you might find it useful.

 February 6, 2006, 06:45 Thanks. This is just what I ne #4 Senior Member   Maka Mohu Join Date: Mar 2009 Posts: 305 Rep Power: 9 Thanks. This is just what I needed. Regards, Maka

 July 6, 2006, 11:40 Hello, I have used posChann #5 Member   anne dejoan Join Date: Mar 2009 Location: madrid, spain Posts: 66 Rep Power: 8 Hello, I have used posChannel and I am very happy with. HOWEVER, it is written for two homogeneous directions and I want now to make average for a backward facing step flow which has only one homogeneous direction. So I would like to know if there is any function average that operates the average in only one homogeneous direction. I saw that there is a average fuction used in the LESmodels sources but I am not at all sure bout what this function does: does it recognize from the polyMesh directory the cyclic BOundaries and thus applies only the average in the homogeneous directions ? I have tried to extrapolate the collapse function used in postChannel but I am not sure that the compuation of the indexes is general and can be applied to my case. I saw on the forum that people use some visualization tools to do so but I am interested in computing it myself to then make comparisons with data or renormalize the other data on my own. I would be very please if you could orientate me in this task, Thanks Anne

 May 12, 2008, 07:51 Hi forum, I would like to r #6 Senior Member   Cedric DUPRAT Join Date: Mar 2009 Location: Belgium Posts: 179 Rep Power: 8 Hi forum, I would like to re-open this tread to answer my previous question from here: http://www.cfd-online.com/OpenFOAM_D...es/1/2946.html now, postChannel is very efficient to post-processes data from channel flow calculations. so, it assumes that the mesh is periodic in the x and z directions. I want to create a new postChannel for just one periodic directions (let's say z). This can be usefull for more complex geometries, to get rms values at different distances from the inlet. I think we could also use it for periodic pipe (I think ...) or axisymetric geometry So, in postChannelDict, we should be able to add a list of x value(s) and not a number of cell. This list can be one or more value(s). The member Functions "collapse" will do a "collapsing" of all the value in the Z direction to get a single y-line for each plane x of the list. My questions are how to define the list in postChannelDict, how to read it in the "indexingDict_" (channelIndex.C) and then, how to loop over this list. Because the list is not supposed to be a constant x-step list. I think we can read only one value of x which could be defined in channelPostDict but, if we want to do more than one rms, a list should be more efficient. This can be generalised for zero periodic mesh, maybe a "value" in postChannelDict can switch the solver from one method to an other. The idea is to do something less focus on channel flow and more usefulll for complex geometry. Can someone on the forum tell me what he is thinking about a tool like that ? Maybe someone already did a tool like that before ? why not :o) Could it be usefull for someone else ? Well, ... that's all. Thank you for all in advance. Cedric

 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 Ryan FLUENT 3 February 8, 2008 16:55 Ale CD-adapco 2 April 20, 2007 03:36 smillerhh FLUENT 1 November 8, 2006 08:54 Amit FLUENT 0 October 19, 2006 18:54 vaishali FLUENT 0 August 13, 2006 13:21

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