CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Uniform line sampling nonuniform output (http://www.cfd-online.com/Forums/openfoam-pre-processing/61991-uniform-line-sampling-nonuniform-output.html)

woody March 5, 2008 04:00

Hello, i have a problem creat
 
Hello,
i have a problem creating a uniform line sample. I want to read out parameters on a line in radial direction of a axis-symmetric case. Therefore I just copied and adapted the tutorial sampleDict. The sampling process is working, but the radial distances consist of four discontinuities I can't explain. These steps are 2 orders of magnitude larger than the other, equal distances.
My blockMeshDict is:
FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


convertToMeters 1;

vertices
(
(0 0 0) /* 0 */
(0.999048222 -0.043619387 0) /* 1 */
(0.999048222 0.043619387 0) /* 2 */
(0 0 120) /* 3 */
(0.999048222 -0.0436193870 120) /* 4 */
(0.999048222 0.0436193870 120) /* 5 */
);

blocks
(
hex (0 1 2 0 3 4 5 3) (33 1 12000) simpleGrading (0.0005 1 1)
);

edges
(
);

....

and the sample Dict has the following entries:
FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object sampleDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


interpolationScheme cellPoint;

writeFormat raw;

sampleSets
(
uniform
{
name Kq_z100;
axis x;
start (0 0 100);
end (0.99 0 100);
nPoints 100;
}
);

fields
(
T
p
U
);
....

Is there any error in my sample file??? Thanks for your help!

woody February 23, 2009 06:13

Hello Forum, now i found ou
 
Hello Forum,

now i found out how to post a picture. Here is my plot of the sampled Temperaturedistribution:

http://www.cfd-online.com/OpenFOAM_D...es/1/11343.jpg


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