|
[Sponsors] |
April 11, 2012, 03:51 |
some problem about the ultility of sample
|
#1 |
Member
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 15 |
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. |
|
April 11, 2012, 22:45 |
|
#2 |
Member
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 15 |
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.
|
|
April 19, 2012, 07:41 |
|
#3 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
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. |
|
April 19, 2012, 22:44 |
|
#4 |
Member
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 15 |
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.
|
|
Tags |
sample distance |
|
|
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 |