Problem with circle sampling type, of Sample utility
I am trying to use the sample utility to extract data along a circular line. To do so, I am using the "circle" sampling type. The problem that I have is that in the first column of the output file, where theta should be, I always get zeros. This "circle" type is not listed in the users guide, so the following dictionary that I am using is a result of trial and error, and by looking at the source sampleSet.H. So I am not sure if I am using all the right parameters.
This is the sampleDict that I am using:
Figured it out
I have figured it out after all.
The problem was with the "axis x;" parameter. This parameter defines which coordinates are to be written in the output file for each point. You can select, x, y, z, for a single coordinate, or xyz for all coordinates. Since writing the angle theta is not an option, I used xyz to get the coordinates of each point along the circle, and some awk commands to calculate the angle.
It is also worth notting that this sampling type writes out the data along the circle in a weird order. So before plotting the values of a field versus the angle theta, you need to take a close look in the order in which the points are written.
Circle sampling on boundary patch
i know this thread is a bit older but my question fits in this thread very well.
I try to use the circle sample to get circular distributed values from
a boundary patch (e.g. wallheatflux) from a pipe.
The problem is when I set dTheta=1 for example I do not receive
360 values from 360 points, I just get around 50 values from 50 points.
For the remaining points I get the message:
So how could it be, that OF finds no cells for interpolation
at most points?
Thanks for help.
|All times are GMT -4. The time now is 10:39.|