CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Sampling along a radius

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2014, 16:20
Default Sampling along a radius
New Member
David H.
Join Date: Oct 2013
Posts: 25
Rep Power: 10
djh2 is on a distinguished road
Hello, I'm in the process of working through some data from an LES case that I'm studying. The experimental results are given as time-averaged data, given at a specified radius.

I'm looking to sample my time-averaged field data at this radius, but I'm not sure what the best method for averaging those values around the radius.

My plan was to use the sample utility to obtain N points along a curve (a circle of radius r, defined by their (x y z) coordinates. Then I can manually average this in post-post-processing pretty easily.

I have about 8 radii distances to sample at about 5 z locations.

I know that I can obtain a circle in ParaView by intersecting a sphere with a slice, I read that on these forums. Since there are many points and averages to obtain, and since I'd like to modify the simulation and test for improvement, you can understand this is not the preferred method.

I know there are a lot of functions and features to OpenFOAM (I've been struggling to put together a custom boundary condition for a few days now). I have done some work with the code, so I'm not afraid to put together a utility if needed. If someone could point me in the right direction on this, it would be much appreciated.
djh2 is offline   Reply With Quote

Old   March 19, 2014, 19:15
Default sampling
New Member
Jim Conger
Join Date: Jan 2014
Location: California, USA
Posts: 21
Rep Power: 10
james.conger is on a distinguished road
I use the sample utility and then post process the output using Python to compute the averages. Simple and easy to automate.
james.conger is offline   Reply With Quote

Old   March 25, 2014, 10:26
New Member
David H.
Join Date: Oct 2013
Posts: 25
Rep Power: 10
djh2 is on a distinguished road
I am considering several methods of averaging about a radius to transform results from (x,y,z) to (r,z) coordinates.

I have been able to average the sample output, which will work for a discrete radius of sampled points; however I am trying to consider a more robust solution that is more of a core utility than a basic text file post processor.

Does anyone have some ideas on how this could be done? I like that the "sample" utility will interpolate points. My advisor suggested averaging points that fall within a tolerance, such as r = 5 +/ 0.001.

I'm trying to consider a variety of options, but I think the "best" implementation would be extending the sample utility.
djh2 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
sampling interval and sampling frequency beauty FLUENT 9 October 25, 2021 02:09
sample utility stops sampling once the line leaves the domain Zymon OpenFOAM 1 May 2, 2012 04:51
Meshing of a sharp edge orifice with a radius Moose1231 STAR-CD 3 December 6, 2011 15:32
sampling Data during calculation JimKnopf OpenFOAM Post-Processing 0 May 27, 2011 04:10
How Bubble Radius is Found in Cavitation Chris Siemens 7 June 22, 2004 12:43

All times are GMT -4. The time now is 08:57.