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

some problem about the ultility of sample

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2012, 03:51
Question some problem about the ultility of sample
  #1
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 15
hei@ge is on a distinguished road
I use sample to get some points'value of U.The file of sampledict is as following:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


setFormat raw;


interpolationScheme cellPoint;

fields
(
magU
);

sets
(
somePoints
{
type cloud;
axis distance;
points ( (-2.7930000e+003 8.8481152e+002 1.3003200e+001)
(-2.7697279e+003 8.7943448e+002 1.3007100e+001)
(-3.0252744e+002 3.0986790e+002 4.2658100e+001)
);
}


// ************************************************** ********************* //
when i execute sample ,the output is:
0 8.69387055526;
1 8.74148226095;
2 6.58627288222
I do not get the distance.who can tell me the reason?Thanks a lot.

Last edited by hei@ge; April 11, 2012 at 04:08.
hei@ge is offline   Reply With Quote

Old   April 11, 2012, 22:45
Default
  #2
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 15
hei@ge is on a distinguished road
I do not know why there is not one reply me. Is my question not clear? If so,Please tell me and i will correct it。Thanks in advice.
hei@ge is offline   Reply With Quote

Old   April 19, 2012, 07:41
Default
  #3
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
I suspect you need to have

start (x1, y1, z1)
end (x2, y2, z2)

instead of

points (x1, y1, z1)
(x2, y2, z2)
(x3, y3, z3)

because the numbers probably correspond to each point.

EDIT: you must also change "cloud" to "uniform". Actually, take a look at applications/utilities/postProcessing/sampling/sample/sampleDict, it will help you a lot.

If you need to have the two intervals between the 3 points, you can check the sampleDict of the compressible/rhoCentralFoam/biconic25-55Run35 tutorial and the sampleCone script in the same directory.

I saw your post kind of late, if you had already found the solution ignore this.
anon_a is offline   Reply With Quote

Old   April 19, 2012, 22:44
Default
  #4
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 15
hei@ge is on a distinguished road
First,Thanks for your reply.But my line is curve,not straight line.i think the type of "start end "is used to define straight line.if i was wrong,please not hesitate to correct me.Tanks again.
hei@ge is offline   Reply With Quote

Reply

Tags
sample distance


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
sample utility problem And OpenFOAM Post-Processing 36 May 20, 2014 09:50
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Can I solve this problem by Fluent? Kai_kc FLUENT 1 October 27, 2010 06:29
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


All times are GMT -4. The time now is 23:48.