CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Sampling along a radius (https://www.cfd-online.com/Forums/openfoam-post-processing/131301-sampling-along-radius.html)

djh2 March 12, 2014 16:20

Sampling along a radius
 
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.

james.conger March 19, 2014 19:15

sampling
 
I use the sample utility and then post process the output using Python to compute the averages. Simple and easy to automate.

djh2 March 25, 2014 10:26

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.


All times are GMT -4. The time now is 02:27.