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

Sampling along a radius

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2014, 17:20
Default Sampling along a radius
  #1
New Member
 
David H.
Join Date: Oct 2013
Posts: 25
Rep Power: 13
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, 20:15
Default sampling
  #2
New Member
 
Jim Conger
Join Date: Jan 2014
Location: California, USA
Posts: 21
Rep Power: 12
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, 11:26
Default
  #3
New Member
 
David H.
Join Date: Oct 2013
Posts: 25
Rep Power: 13
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

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


All times are GMT -4. The time now is 15:19.